Click or drag to resize
BellmanFordSPDistTo Method
Returns the length of 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 double DistTo(
	int v
)

Parameters

v
Type: SystemInt32
he destination vertex

Return Value

Type: Double
the length of a shortest path from the source vertex s to vertex v; double.PositiveInfinity if no such path
Exceptions
ExceptionCondition
InvalidOperationExceptionif there is a negative cost cycle reachable
See Also