Skip to content
Novus Examples
gexf717 B

Disconnected Directed Graph - GEXF 1.3

A directed graph with two linked islands and one isolated node, designed for weak-component and isolated-node tests. This GEXF 1.3 member carries the same node IDs, edge IDs, directions and weights as its two format twins.

Preview — first 20 linesgexf
<?xml version="1.0" encoding="UTF-8"?>
<gexf xmlns="http://gexf.net/1.3" version="1.3">
  <meta lastmodifieddate="2026-07-31"><creator>Novus Examples</creator></meta>
  <graph mode="static" defaultedgetype="directed">
    <nodes>
      <node id="alpha" label="alpha"/>
      <node id="beta" label="beta"/>
      <node id="gamma" label="gamma"/>
      <node id="delta" label="delta"/>
      <node id="epsilon" label="epsilon"/>
      <node id="zeta" label="zeta"/>
    </nodes>
    <edges>
      <edge id="e0" source="alpha" target="beta" weight="1.0"/>
      <edge id="e1" source="gamma" target="delta" weight="1.0"/>
      <edge id="e2" source="delta" target="epsilon" weight="1.0"/>
    </edges>
  </graph>
</gexf>

Specifications

Graph Format
GEXF 1.3
Nodes
6
Edges
3
Directed
true
Multigraph
false
Weak Components
3
Contains Cycle
false
Weight Sum
3
Topological Order
alpha -> gamma -> zeta -> beta -> delta -> epsilon

Testing contract

Expected to pass
Scenario
Import the GEXF 1.3 member and compare graph algorithms and edge identity with the other two representations.
Expected result
Import 6 nodes and 3 edges; preserve 3 weak component(s), cycle=false, weight sum=3.0, topological result=alpha -> gamma -> zeta -> beta -> delta -> epsilon.

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.

How to use this file for testing

“Disconnected Directed Graph - GEXF 1.3” is a deterministic Novus Examples fixture for Graph data, Conversion testing, Data import. Node/edge datasets in GraphML and GEXF (directed and undirected, with attributes and weights) — for testing network importers, layout tools, and graph converters.

Documented properties for this file: 6 nodes · 3 edges. Compare results against paired or grouped companions on this page when present (clean↔damaged, searchable↔scanned, or format twins) so scores stay reproducible across runs.

Download the file once, keep the path stable in CI or local scripts, and treat the spec table as the contract: dimensions, seeds, field lists, and roles are intentional. Corrupt or invalid samples are labelled as such — expect parsers to fail loudly rather than silently accept them.

Data fixtures document their exact quirks — delimiters, encodings, null handling, schema, and row counts — in the spec table. Point your parser or importer at the file and assert it handles the documented edge cases; clean and deliberately-messy siblings make before/after diffs straightforward.

Code examples

import networkx as nx  # pip install networkx

G = nx.read_gexf("disconnected.gexf")
print(G.number_of_nodes(), "nodes", G.number_of_edges(), "edges")

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