NetworkX

Previous topic

networkx.pygraphviz_layout

Next topic

networkx.to_pydot

networkx.from_pydot

from_pydot(P)

Return a NetworkX graph from a Pydot graph.

Parameters:

P : Pydot graph

A graph created with Pydot

Examples

>>> K5=nx.complete_graph(5)
>>> A=nx.to_pydot(K5)
>>> G=nx.from_pydot(A)