summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoraric <none@none>2010-08-21 01:06:02 +0000
committeraric <none@none>2010-08-21 01:06:02 +0000
commit625babe15b86cb8527116498413302850c86655e (patch)
tree8a7e175920bc98e61a14bab05ade20897129609f
parentf45c2d882dc333f5ce92db2794b30a689e407ed2 (diff)
downloadnetworkx-625babe15b86cb8527116498413302850c86655e.tar.gz
Add nx prefix to doctests
--HG-- extra : convert_revision : svn%3A3ed01bd8-26fb-0310-9e4c-ca1a4053419f/networkx/trunk%401931
-rw-r--r--networkx/algorithms/mst.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/networkx/algorithms/mst.py b/networkx/algorithms/mst.py
index 420330d1..c1f299c8 100644
--- a/networkx/algorithms/mst.py
+++ b/networkx/algorithms/mst.py
@@ -100,7 +100,7 @@ def minimum_spanning_tree(G):
--------
>>> G=nx.cycle_graph(4)
>>> G.add_edge(0,3,weight=2) # assign weight 2 to edge 0-3
- >>> T=minimum_spanning_tree(G)
+ >>> T=nx.minimum_spanning_tree(G)
>>> print(sorted(T.edges(data=True)))
[(0, 1, {'weight': 1}), (1, 2, {'weight': 1}), (2, 3, {'weight': 1})]