diff options
author | swart <none@none> | 2006-03-07 22:35:55 +0000 |
---|---|---|
committer | swart <none@none> | 2006-03-07 22:35:55 +0000 |
commit | b6d25e52e27696e5001f9f4a2197b3db3846ed92 (patch) | |
tree | 36ec2b62cfa42191ce438fa9353063e6eec8707a | |
parent | e77bddbbaa188204b94494b383e1a98db6d94c8e (diff) | |
download | networkx-b6d25e52e27696e5001f9f4a2197b3db3846ed92.tar.gz |
fixed doctest failures
--HG--
extra : convert_revision : svn%3A3ed01bd8-26fb-0310-9e4c-ca1a4053419f/networkx/trunk%40190
-rwxr-xr-x | networkx/drawing/nx_pygraphviz.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/networkx/drawing/nx_pygraphviz.py b/networkx/drawing/nx_pygraphviz.py index ecf920ee..19f80715 100755 --- a/networkx/drawing/nx_pygraphviz.py +++ b/networkx/drawing/nx_pygraphviz.py @@ -11,6 +11,11 @@ Provides: - pygraphviz_from_networkx() - networkx_from_pygraphviz() +and the graph layout methods: + + - graphviz_layout() + - pygraphviz_layout() + Either this module or nx_pydot can be used to interface with graphviz. References: @@ -127,6 +132,8 @@ def graphviz_layout(G,prog='neato',root=None, args=''): Create layout using graphviz. Returns a dictionary of positions keyed by node. + >>> from networkx import * + >>> G=petersen_graph() >>> pos=graphviz_layout(G) >>> pos=graphviz_layout(G,prog='dot') @@ -140,6 +147,8 @@ def pygraphviz_layout(G,prog='neato',root=None, args=''): Create layout using pygraphviz and graphviz. Returns a dictionary of positions keyed by node. + >>> from networkx import * + >>> G=petersen_graph() >>> pos=pygraphviz_layout(G) >>> pos=pygraphviz_layout(G,prog='dot') |