[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/session.php on line 583: sizeof(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/session.php on line 639: sizeof(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4516: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3262)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4516: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3262)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4516: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3262)
Gephi forums •Dynamic scaling of Node size
Page 1 of 1

Dynamic scaling of Node size

Posted: 03 Jul 2014 17:34
by jimkenn
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>

Re: Dynamic scaling of Node size

Posted: 08 Jul 2014 23:40
by seinecle
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

Re: Dynamic scaling of Node size

Posted: 10 Jul 2014 11:05
by jimkenn
Clement - thanks for the direction, I will follow this trail...
regards
jim