Basic topology

A GEXF file aims to represent one and only one graph.

This is a minimal file for a static graph containing 2 nodes and 1 edge between them:

http://gexf.net/data/basic.gexf
<?xml version="1.0" encoding="UTF-8"?>
<gexf xmlns="http://gexf.net/1.3" version="1.3">
    <graph mode="static" defaultedgetype="directed">
        <nodes>
            <node id="0" label="Hello" />
            <node id="1" label="Word" />
        </nodes>
        <edges>
            <edge source="0" target="1" />
        </edges>
    </graph>
</gexf>

See how to add data to your graphs in the next example.