- write_dot(G, path)[source]#
Write NetworkX graph G to Graphviz dot format on path.
A networkx graph
Filename or file handle to write
To use a specific graph layout, call
write_dot. Note that some graphviz layouts are not guaranteed to be deterministic, see graphviz/graphviz#1767 for more info.