Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Combinatorica Package >

ShortestPath

ShortestPath[g, start, end]
finds a shortest path between vertices start and end in graph g.
  • The default is Algorithm->Automatic. In this case, depending on whether edges have negative weights and depending on the density of the graph, the algorithm chooses between BellmanFord and Dijkstra.
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team