NetworkX

Table Of Contents

Previous topic

networkx.readwrite.edgelist.parse_edgelist

Next topic

networkx.readwrite.gexf.read_gexf

GEXF

Read and write graphs in GEXF format.

GEXF (Graph Exchange XML Format) is a language for describing complex network structures, their associated data and dynamics.

This implementation does not support mixed graphs (directed and unidirected edges together).

Format

GEXF is an XML format. See http://gexf.net/format/schema.html for the specification and http://gexf.net/format/basic.html for examples.

read_gexf(path[, node_type, relabel]) Read graph in GEXF format from path.
write_gexf(G, path[, encoding, prettyprint]) Write G in GEXF format to path.
relabel_gexf_graph(G) Relabel graph using “label” node keyword for node label.