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)
Initializes an edge between vertices
v
and
w
of an undirected graph when weight is immaterial.
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
)
Parameters
v
Type:
System
Int32
v one vertex
w
Type:
System
Int32
w the other vertex
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