Warning

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

networkx.drawing.nx_agraph.read_dot

read_dot(path)[source]

Returns a NetworkX graph from a dot file on path.

Parameters:path (file or string) – File name or file handle to read.