Algs4Net Class Library Documentation
Algs4Net Class Library Documentation
Algs4Net
DirectedEdge Class
DirectedEdge Constructor
DirectedEdge Properties
DirectedEdge Methods
DirectedEdge Constructor
Initializes a directed edge from vertex
v
to vertex
w
with the given
weight
.
Namespace:
Algs4Net
Assembly:
Algs4Net (in Algs4Net.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
Copy
public
DirectedEdge
(
int
v
,
int
w
,
double
weight
)
Parameters
v
Type:
System
Int32
the tail vertex
w
Type:
System
Int32
the head vertex
weight
Type:
System
Double
the weight of the directed edge
Exceptions
Exception
Condition
IndexOutOfRangeException
if either
v
or
w
is a negative integer
ArgumentException
if
weight
is
NaN
See Also
Reference
DirectedEdge Class
Algs4Net Namespace