Click or drag to resize
FloydWarshallDist Method
Returns the length of a shortest path from vertex s to vertex t.

Namespace: Algs4Net
Assembly: Algs4Net (in Algs4Net.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public double Dist(
	int s,
	int t
)

Parameters

s
Type: SystemInt32
the source vertex
t
Type: SystemInt32
the destination vertex

Return Value

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