Click or drag to resize
HopcroftKarpMate Method
Returns the vertex to which the specified vertex is matched in the maximum matching computed by the algorithm.

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

Parameters

v
Type: SystemInt32
the vertex

Return Value

Type: Int32
the vertex to which vertex v is matched in the maximum matching; -1 if the vertex is not matched
Exceptions
ExceptionCondition
ArgumentExceptionunless 0 <= v < V
See Also