Click or drag to resize
EdgeOther Method
Returns the endpoint of this edge that is different from the given vertex.

Namespace: Algs4Net
Assembly: Algs4Net (in Algs4Net.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public int Other(
	int vertex
)

Parameters

vertex
Type: SystemInt32
vertex one endpoint of this edge

Return Value

Type: Int32
the other endpoint of this edge
Exceptions
ExceptionCondition
ArgumentExceptionif the vertex is not one of the endpoints of this edge
See Also