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

Parameters

v
Type: SystemInt32
one vertex in the edge
w
Type: SystemInt32
the other vertex in the edge
Exceptions
ExceptionCondition
IndexOutOfRangeExceptionunless both 0 <= v < V and 0 <= w < V
See Also