Dynamics
GEXF provides a way to add a lifetime to nodes, edges and data.
Time in GEXF is encoded in two ways. Continuous by default, it is encoded as an international standard date (yyyy-mm-dd). Discrete, it is an integer. Both network topology and data have a lifetime. The whole graph, each node, each edge and their respective data values may have time limits, beginning with an XML-attribute start and ending with end. Attributes declared as dynamic are allowed to exist during a time scope.
This graph represents a dynamic graph of websites and hyperlinks:
http://gexf.net/data/dynamics.gexf
<?xml version="1.0" encoding="UTF-8"?>
<gexf xmlns="http://www.gexf.net/1.1draft" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.gexf.net/1.1draft http://www.gexf.net/1.1draft/gexf.xsd" version="1.1">
<meta lastmodifieddate="2009-03-20">
<creator>Gexf.net</creator>
<description>A Web network changing over time</description>
</meta>
<graph mode="dynamic" defaultedgetype="directed" start="2009-01-01" end="2009-03-20">
<attributes class="node" mode="static">
<attribute id="0" title="url" type="string"/>
<attribute id="1" title="frog" type="boolean">
<default>true</default>
</attribute>
<attributes class="node" mode="dynamic">
<attribute id="2" title="indegree" type="float"/>
</attributes>
<nodes>
<node id="0" label="Gephi" start="2009-03-01">
<attvalues>
<attvalue for="0" value="http://gephi.org"/>
<attvalue for="2" value="1"/>
</attvalues>
</node>
<node id="1" label="Webatlas">
<attvalues>
<attvalue for="0" value="http://webatlas.fr"/>
<attvalue for="2" value="1" end="2009-03-01"/>
<attvalue for="2" value="2" start="2009-03-01" end="2009-03-10"/>
<attvalue for="2" value="1" start="2009-03-10"/>
</attvalues>
</node>
<node id="2" label="RTGI">
<attvalues>
<attvalue for="0" value="http://rtgi.fr"/>
<attvalue for="2" value="0" end="2009-03-01"/>
<attvalue for="2" value="1" start="2009-03-01"/>
</attvalues>
<slices>
<slice end="2009-03-01">
<slice start="2009-03-05" end="2009-03-10">
</slices>
</node>
<node id="2" label="BarabasiLab">
<attvalues>
<attvalue for="0" value="http://barabasilab.com"/>
<attvalue for="1" value="false"/>
<attvalue for="2" value="0" end="2009-03-01"/>
<attvalue for="2" value="1" start="2009-03-01"/>
</attvalues>
</node>
</nodes>
<edges>
<edge id="0" source="0" target="1" start="2009-03-01"/>
<edge id="1" source="0" target="2" start="2009-03-01" end="2009-03-10"/>
<edge id="2" source="1" target="0" start="2009-03-01"/>
<edge id="3" source="2" target="1" end="2009-03-10"/>
<edge id="4" source="0" target="3" start="2009-03-01"/>
</edges>
</graph>
</gexf>
Get more details on how to write a network evolution in the Primer.
See how to set a hierarchy structure on your graphs in the next example.
-
Overview
-
Specifications
-
Examples
-
Communication
-
Tools
- libgexf: an open source C++ library and validator
- gexfExplorer: an open source Flash visualizer
-
Graph Drawing Links
-
File Format Links