Warning

This documents an unmaintained version of NetworkX. Please upgrade to a maintained version and see the current NetworkX documentation.

read_dot

read_dot(path)[source]

Return a NetworkX MultiGraph or MultiDiGraph from a dot file on path.

Parameters :

path : filename or file handle

Returns :

G : NetworkX multigraph

A MultiGraph or MultiDiGraph.

Notes

Use G=nx.Graph(nx.read_dot(path)) to return a Graph instead of a MultiGraph.