NetworkX

Previous topic

to_agraph

Next topic

read_dot

write_dot

write_dot(G, path)[source]

Write NetworkX graph G to Graphviz dot format on path.

Parameters :

G : graph

A networkx graph

path : filename

Filename or file handle to write.