Click or drag to resize
FlowEdgeOther Method
Returns the endpoint of the edge that is different from the given vertex (unless the edge represents a self-loop in which case it returns the same 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
one endpoint of the edge

Return Value

Type: Int32
the endpoint of the edge that is different from the given vertex (unless the edge represents a self-loop in which case it returns the same vertex)
Exceptions
ExceptionCondition
ArgumentExceptionif vertex is not one of the endpoints
See Also