write_dot

write_dot(G, path)[source]

Write NetworkX graph G to Graphviz dot format on path.

Parameters
Ggraph

A networkx graph

pathfilename

Filename or file handle to write