Skip to content
Novus Examples
gexf3.9 KB

Social Network Graph (GEXF)

The same 12-person social network in GEXF 1.3 (Gephi's native format) — node attributes and weighted edges. The format twin of the GraphML file, for testing Gephi imports and GraphML↔GEXF conversion.

Preview — first 50 linesgexf
<?xml version="1.0" encoding="UTF-8"?>
<gexf xmlns="http://gexf.net/1.3" version="1.3">
  <meta lastmodifieddate="2026-01-01">
    <creator>Novus Examples</creator>
    <description>Synthetic social network — 12 people, two communities</description>
  </meta>
  <graph mode="static" defaultedgetype="undirected">
    <attributes class="node">
      <attribute id="age" title="age" type="integer"/>
      <attribute id="community" title="community" type="string"/>
    </attributes>
    <nodes>
      <node id="0" label="Ada">
        <attvalues>
          <attvalue for="age" value="29"/>
          <attvalue for="community" value="A"/>
        </attvalues>
      </node>
      <node id="1" label="Ben">
        <attvalues>
          <attvalue for="age" value="34"/>
          <attvalue for="community" value="A"/>
        </attvalues>
      </node>
      <node id="2" label="Chen">
        <attvalues>
          <attvalue for="age" value="41"/>
          <attvalue for="community" value="A"/>
        </attvalues>
      </node>
      <node id="3" label="Dara">
        <attvalues>
          <attvalue for="age" value="26"/>
          <attvalue for="community" value="A"/>
        </attvalues>
      </node>
      <node id="4" label="Ede">
        <attvalues>
          <attvalue for="age" value="38"/>
          <attvalue for="community" value="A"/>
        </attvalues>
      </node>
      <node id="5" label="Faye">
        <attvalues>
          <attvalue for="age" value="31"/>
          <attvalue for="community" value="B"/>
        </attvalues>
      </node>
      <node id="6" label="Gus">
        <attvalues>
111 lines total — download for the full file.

Specifications

Nodes
12
Edges
21
Directed
false
Format
GEXF 1.3 (Gephi)

What is a .gexf file?

GEXF (Graph Exchange XML Format) is an XML format for graphs created for the Gephi network-analysis tool. It describes nodes and edges with attributes and also supports dynamic (time-evolving) graphs and visual properties like position and colour. It is a common interchange format alongside GraphML.

How to use this file

Use an example GEXF file to test network importers and visualisers (especially Gephi), and converters between GEXF and GraphML, or to check that node/edge attributes and weights are parsed correctly.

Generated by generation/data_graphs.py. Free for any use, no attribution required — license.