NetworkX

Previous topic

networkx.read_dot

Next topic

networkx.pydot_layout

Quick search

networkx.graphviz_layout

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

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

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

This is a wrapper for pygraphviz_layout.