Skip to main content

GEXF Format

Read GEXF graphs as node records followed by edge records (via NetworkX).

Overview

PropertyValue
Format idgexf
ClassGEXFIterable
Extensions.gexf
ReadYes
WriteNo
Extragraph (networkx)
Maturitystable

Record shape

{"_type": "node", "id": "n0", "label": "A"}
{"_type": "edge", "source": "n0", "target": "n1", "weight": 1.0}

Node/edge attributes from the file are merged into each record.

Usage

from iterable import open_iterable

with open_iterable("network.gexf") as source:
for rec in source:
print(rec["_type"], rec)

Install with pip install iterabledata[graph].

See also