Algs4Net Class Library Documentation
Algs4Net Class Library Documentation
Algs4Net
Digraph Class
Digraph Methods
AddEdge Method
AddEdge Method (Edge)
AddEdge Method (Int32, Int32)
Digraph
AddEdge Method (Int32, Int32)
Adds the directed edge v->w to this digraph.
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
the tail vertex
w
Type:
System
Int32
the head vertex
Exceptions
Exception
Condition
IndexOutOfRangeException
unless both 0 <= v < V and 0 <= w < V
See Also
Reference
Digraph Class
AddEdge Overload
Algs4Net Namespace