NetworkX

Previous topic

write_dot

Next topic

graphviz_layout

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.