Click or drag to resize
DigraphAddEdge 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#
public void AddEdge(
	int v,
	int w
)

Parameters

v
Type: SystemInt32
the tail vertex
w
Type: SystemInt32
the head vertex
Exceptions
ExceptionCondition
IndexOutOfRangeExceptionunless both 0 <= v < V and 0 <= w < V
See Also