Dynamic scaling of Node size

Evolution and dynamics on networks in Gephi: UI, data formats, algorithms...
Post Reply [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable
jimkenn
Posts:1
Joined:03 Jul 2014 17:16
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable
Dynamic scaling of Node size

Post by jimkenn » 03 Jul 2014 17:34

Hi, I am trying to modify the simple GEXF code below, so that node (ID=0) would increase in size (twice over its original size) over this same period. I am consulting the GEXF primer PDF, but am struggling as I am a relative XML/GEXF novice. Any guidance (even code) on how to write this node behaviour is greatly appreciated.
Kind regards
Jim

Code: Select all

<?xml version="1.0" encoding="UTF 8"?>
<gexf xmlns="http://www.gexf.net/1.2draft"
xmlns:xsi="http://www.w3.org/2001/XMLSchema instance"
xsi:schemaLocation="http://www.gexf.net/1.2draft
http://www.gexf.net/1.2draft/gexf.xsd"
version="1.2">
<meta lastmodifieddate="2009 03 20">
<creator>Gephi.org</creator>
<description>A hello world! file</description>
</meta>
<graph mode="dynamic" defaultedgetype="directed" timeformat="date" start="2009-01-01" end="2009-03-20">

 <nodes>
<node id="0" label="Hello" start="2009-01-01">
</node>
<node id="1" label="Word" start="2009-03-01">
</node>
</nodes>
<edges>
<edge id="0" source="0" target="1" weight="2.4" />
</edges>
</graph>
</gexf>

User avatar
seinecle
Gephi Community Support
Posts:546
Joined:08 Feb 2010 16:55
Location:Lyon, France
Contact:

Re: Dynamic scaling of Node size

Post by seinecle » 08 Jul 2014 23:40

Hi,
You should add an attribute to your nodes (adding attributes is easy, it is explained in details in the primer).
Then, you could check my tutorial on dynamic scaling to see how this dynamic attribute translates visually in nodes of different sizes through time:
http://clementlevallois.net/training.html

Also, to get a better idea of how dynamic gexf with attributes are written, you can check an example this way:
- in Gephi, do File -> Generate -> Dynamic graph
- Then save it on your computer by doing File -> Export -> Graph -> then choose the gexf file format (not csv as suggested by default)
- Open this gexf file with a text editor and study how dynamic attributes are specified.

Hope this helps,

Clement

jimkenn
Posts:1
Joined:03 Jul 2014 17:16
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable

Re: Dynamic scaling of Node size

Post by jimkenn » 10 Jul 2014 11:05

Clement - thanks for the direction, I will follow this trail...
regards
jim

Post Reply
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable