Click or drag to resize
DijkstraAllPairsSP Constructor
Computes a shortest paths tree from each vertex to to every other vertex in the edge-weighted digraph G.

Namespace: Algs4Net
Assembly: Algs4Net (in Algs4Net.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public DijkstraAllPairsSP(
	EdgeWeightedDigraph G
)

Parameters

G
Type: Algs4NetEdgeWeightedDigraph
the edge-weighted digraph
Exceptions
ExceptionCondition
ArgumentExceptionif an edge weight is negative
ArgumentExceptionunless 0 <= s <= V - 1
See Also