Warning

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

pydot_layout

pydot_layout(G, prog='neato', root=None, **kwds)[source]

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')