NetworkX

Previous topic

read_dot

Next topic

pydot_layout

graphviz_layout

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

Create node positions using Pydot and Graphviz.

Returns a dictionary of positions keyed by node.

Notes

This is a wrapper for pydot_layout.

Examples

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