ShortestPathFunction
ShortestPathFunction[type,data]
represents a function that gives the shortest path from a source vertex s to target vertex t in a graph.
Details

- ShortestPathFunction[…] is generated by FindShortestPath.
- ShortestPathFunction[{s,All},…][t] gives the shortest path from s to t.
- ShortestPathFunction[{All,t},…][s] gives the shortest path from s to t.
- ShortestPathFunction[{All,All},…][s,t] gives the shortest path from s to t.
Examples
open allclose allSee Also
Related Guides
Introduced in 2010
(8.0)