Install
Tutorial
Reference
Releases
Developer
Gallery
Guides
Home Page
GitHub
v2.7.1
devel (latest)
current (stable)
Introduction
Graph types
Algorithms
Functions
Graph generators
Linear algebra
Converting to and from other data formats
Relabeling nodes
Reading and writing graphs
Drawing
draw
draw_networkx
draw_networkx_nodes
draw_networkx_edges
draw_networkx_labels
draw_networkx_edge_labels
draw_circular
draw_kamada_kawai
draw_planar
draw_random
draw_spectral
draw_spring
draw_shell
from_agraph
to_agraph
write_dot
read_dot
graphviz_layout
pygraphviz_layout
from_pydot
to_pydot
write_dot
read_dot
graphviz_layout
pydot_layout
bipartite_layout
circular_layout
kamada_kawai_layout
planar_layout
random_layout
rescale_layout
rescale_layout_dict
shell_layout
spring_layout
spectral_layout
spiral_layout
multipartite_layout
Randomness
Exceptions
Utilities
Glossary
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.