Algs4Net Class Library Documentation
Algs4Net Class Library Documentation
Algs4Net
Edge Class
Edge Constructor
Edge Constructor (Int32, Int32)
Edge Constructor (Int32, Int32, Double)
Edge Constructor (Int32, Int32, Double)
Initializes an edge between vertices
v
and
w
of an undirected graph with the given
weight
.
Namespace:
Algs4Net
Assembly:
Algs4Net (in Algs4Net.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
Copy
public
Edge
(
int
v
,
int
w
,
double
weight
)
Parameters
v
Type:
System
Int32
v one vertex
w
Type:
System
Int32
w the other vertex
weight
Type:
System
Double
weight the weight of this edge
Exceptions
Exception
Condition
IndexOutOfRangeException
if either
v
or
w
is a negative integer
ArgumentException
if
weight
is
NaN
See Also
Reference
Edge Class
Edge Overload
Algs4Net Namespace