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
Notes
To use a specific graph layout, call
A.layout
prior towrite_dot
. Note that some graphviz layouts are not guaranteed to be deterministic, see graphviz/graphviz#1767 for more info.