Algs4Net Class Library Documentation
Algs4Net Class Library Documentation
Algs4Net
Graph Class
Graph Methods
AddEdge Method
AddEdge Method (Edge)
AddEdge Method (Int32, Int32)
Graph
AddEdge Method (Int32, Int32)
Adds the undirected edge v-w to this graph.
Namespace:
Algs4Net
Assembly:
Algs4Net (in Algs4Net.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
Copy
public
void
AddEdge
(
int
v
,
int
w
)
Parameters
v
Type:
System
Int32
one vertex in the edge
w
Type:
System
Int32
the other vertex in the edge
Exceptions
Exception
Condition
IndexOutOfRangeException
unless both 0 <= v < V and 0 <= w < V
See Also
Reference
Graph Class
AddEdge Overload
Algs4Net Namespace