NetworkX

Previous topic

networkx.graphviz_layout

Next topic

networkx.from_pydot

Quick search

networkx.pygraphviz_layout

pygraphviz_layout(G, prog='neato', root=None, args='')

Create layout using pygraphviz and graphviz. Returns a dictionary of positions keyed by node.

>>> G=nx.petersen_graph()
>>> pos=nx.pygraphviz_layout(G)
>>> pos=nx.pygraphviz_layout(G,prog='dot')