This documents an unmaintained version of NetworkX. Please upgrade to a maintained version and see the current NetworkX documentation.
Return a pygraphviz graph from a NetworkX graph N.
N : NetworkX graph
A graph created with NetworkX
If N has an dict N.graph_attr an attempt will be made first to copy properties attached to the graph (see from_agraph) and then updated with the calling arguments if any.
>>> K5=nx.complete_graph(5) >>> A=nx.to_agraph(K5)