Returns the endpoint of this edge that is different from the given vertex.
Namespace: Algs4NetAssembly: Algs4Net (in Algs4Net.dll) Version: 1.0.0.0 (1.0.0.0)
Syntaxpublic int Other(
int vertex
)
Parameters
- vertex
- Type: SystemInt32
vertex one endpoint of this edge
Return Value
Type:
Int32the other endpoint of this edge
ExceptionsException | Condition |
---|
ArgumentException | if the vertex is not one of the
endpoints of this edge |
See Also