NetworkX

Previous topic

networkx.write_graphml

Next topic

networkx.write_graphml

networkx.read_graphml

read_graphml(path, node_type=<type 'str'>)

Read graph in GraphML format from path.

Parameters:

path : file or string

File or filename to write. Filenames ending in .gz or .bz2 will be compressed.

Returns:

graph: NetworkX graph :

If no parallel edges are found a Graph or DiGraph is returned. Otherwise a MultiGraph or MultiDiGraph is returned.

Notes

This implementation does not support mixed graphs (directed and unidirected edges together), hypergraphs, nested graphs, or ports.