DijkstraAllPairsSPPath Method |
Returns a shortest path from vertex s to vertex t.
Namespace: Algs4NetAssembly: Algs4Net (in Algs4Net.dll) Version: 1.0.0.0 (1.0.0.0)
Syntaxpublic IEnumerable<DirectedEdge> Path(
int s,
int t
)
Parameters
- s
- Type: SystemInt32
the source vertex - t
- Type: SystemInt32
the destination vertex
Return Value
Type:
IEnumerableDirectedEdgea shortest path from vertex
s to vertex
t
as an iterable of edges, and
null if no such path
See Also