Click or drag to resize
DijkstraSPPathTo Method
Returns a shortest path from the source vertex s to vertex v.

Namespace: Algs4Net
Assembly: Algs4Net (in Algs4Net.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public IEnumerable<DirectedEdge> PathTo(
	int v
)

Parameters

v
Type: SystemInt32
the destination vertex

Return Value

Type: IEnumerableDirectedEdge
a shortest path from the source vertex s to vertex v as an iterable of edges, and null if no such path
See Also