NetworkX

Previous topic

networkx.drawing.nx_pydot.graphviz_layout

Next topic

networkx.drawing.layout.circular_layout

networkx.drawing.nx_pydot.pydot_layout

networkx.drawing.nx_pydot.pydot_layout(G, prog='neato', root=None, **kwds)

Create node positions using Pydot and Graphviz.

Returns a dictionary of positions keyed by node.

Examples

>>> G=nx.complete_graph(4)
>>> pos=nx.pydot_layout(G)
>>> pos=nx.pydot_layout(G,prog='dot')