Warning

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

write_dot

write_dot(G, path)[source]

Write NetworkX graph G to Graphviz dot format on path.

Path can be a string or a file handle.