(self, vertex)
return self._matching[vertex] >= 0
Returns whether the given vertex is matched to another one.
Returns whether the given vertex is matched to another one.
Returns whether the given vertex is matched to another one .
def is_matched(self, vertex):
        """Returns whether the given vertex is matched to another one."""
        if isinstance(vertex, Vertex):
            vertex = vertex.index
        return self._matching[vertex] >= 0
def is_matched ( self , vertex ) : if isinstance ( vertex , Vertex ) : vertex = vertex . index return self . _matching [ vertex ] >= 0