NetworkX

Previous topic

networkx.drawing.nx_pydot.write_dot

Next topic

networkx.drawing.nx_pydot.graphviz_layout

networkx.drawing.nx_pydot.read_dot

networkx.drawing.nx_pydot.read_dot(path)

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.