Dynamic scaling of Node size

Evolution and dynamics on networks in Gephi: UI, data formats, algorithms...
Post Reply
Posts: 1
Joined: 03 Jul 2014 17:16

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

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"
<meta lastmodifieddate="2009 03 20">
<description>A hello world! file</description>
<graph mode="dynamic" defaultedgetype="directed" timeformat="date" start="2009-01-01" end="2009-03-20">

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

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

Re: Dynamic scaling of Node size

Post by seinecle » 08 Jul 2014 23:40

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:

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,


Posts: 1
Joined: 03 Jul 2014 17:16

Re: Dynamic scaling of Node size

Post by jimkenn » 10 Jul 2014 11:05

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

Post Reply