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 – A MultiGraph or MultiDiGraph.
Return type:NetworkX multigraph

Notes

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