Algs4Net Class Library Documentation
Algs4Net Class Library Documentation
Algs4Net
BellmanFordSP Class
BellmanFordSP Constructor
BellmanFordSP Properties
BellmanFordSP Methods
BellmanFordSP Constructor
Computes a shortest paths tree from
s
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#
Copy
public
BellmanFordSP
(
EdgeWeightedDigraph
G
,
int
s
)
Parameters
G
Type:
Algs4Net
EdgeWeightedDigraph
the acyclic digraph
s
Type:
System
Int32
the source vertex
Exceptions
Exception
Condition
ArgumentException
unless 0 <=
s
<=
V
- 1
See Also
Reference
BellmanFordSP Class
Algs4Net Namespace