Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions doc/source/reference/GetShortPath.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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