GraphML and GEXF
GraphML and GEXF helpers from annnet.io.GraphML_io.
annnet.io.GraphML_io
Classes
Functions
to_graphml(graph, path, *, directed=True, hyperedge_mode='reify', public_only=False)
Export via NetworkX with reified hyperedges; sanitize attrs for GraphML. Also writes a sidecar manifest for lossless re-import.
from_graphml(path, *, hyperedge='reified')
Import via NetworkX; if a sidecar manifest is present, use it as SSOT. Otherwise, fall back to from_nx_only with type restoration.