NetworkX

Previous topic

networkx.write_edgelist

Next topic

networkx.read_gml

GMLΒΆ

Read graphs in GML format. See http://www.infosun.fim.uni-passau.de/Graphlet/GML/gml-tr.html for format specification.

Example graphs in GML format: http://www-personal.umich.edu/~mejn/netdata/

Requires pyparsing: http://pyparsing.wikispaces.com/

read_gml(path) Read graph in GML format from path.
write_gml(G, path) Write the graph G in GML format to the file or file handle path.
parse_gml(lines) Parse GML graph from a string or iterable.