NetworkX

Previous topic

networkx.drawing.nx_pydot.from_pydot

Next topic

networkx.drawing.nx_pydot.write_dot

networkx.drawing.nx_pydot.to_pydot

networkx.drawing.nx_pydot.to_pydot(N, strict=True)

Return 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.to_pydot(K5)