From 9013caaaa55690706bb5854e50d83ecc9159de6d Mon Sep 17 00:00:00 2001 From: Sadjad Fouladi Date: Wed, 30 Sep 2015 15:06:19 -0700 Subject: [PATCH] Added the missing snap package name. --- doc/source/reference/GetShortPath.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/source/reference/GetShortPath.rst b/doc/source/reference/GetShortPath.rst index f4c1811c..0fd8b83b 100644 --- a/doc/source/reference/GetShortPath.rst +++ b/doc/source/reference/GetShortPath.rst @@ -31,14 +31,14 @@ The following example shows how to find shortest path for nodes in import snap Graph = snap.GenRndGnm(snap.PNGraph, 100, 1000) - Length = GetShortPath(Graph, 1, 100) + Length = snap.GetShortPath(Graph, 1, 100) print "Shortest Path from node 1 to node 100 is %d edges" % Length UGraph = snap.GenRndGnm(snap.PUNGraph, 100, 1000) - Length = GetShortPath(UGraph, 1, 100) + Length = snap.GetShortPath(UGraph, 1, 100) print "Shortest Path from node 1 to node 100 is %d edges" % Length Network = snap.GenRndGnm(snap.PNEANet, 100, 1000) - Length = GetShortPath(Network, 1, 100) + Length = snap.GetShortPath(Network, 1, 100) print "Shortest Path from node 1 to node 100 is %d edges" % Length