Warning

This documents an unmaintained version of NetworkX. Please upgrade to a maintained version and see the current NetworkX documentation.

networkx.drawing.nx_pydot.to_pydot

to_pydot(N)[source]

Returns a pydot graph from a NetworkX graph N.

Parameters:N (NetworkX graph) – A graph created with NetworkX

Examples

>>> K5 = nx.complete_graph(5)
>>> P = nx.nx_pydot.to_pydot(K5)

Notes