(self, vertex)
return matched
Returns the vertex a given vertex is matched to.

        @param vertex: the vertex we are interested in; either an integer index
          or an instance of L{Vertex}.
        @return: the index of the vertex matched to the given vertex, either as
          an integer index (if I{vertex} was integer) or as an instance of
          L{Vertex}. When the vertex is unmatched, returns C{None}.
Returns the vertex a given vertex is matched to.
Returns the vertex a given vertex is matched to .
def match_of(self, vertex):
        """Returns the vertex a given vertex is matched to.

        @param vertex: the vertex we are interested in; either an integer index
          or an instance of L{Vertex}.
        @return: the index of the vertex matched to the given vertex, either as
          an integer index (if I{vertex} was integer) or as an instance of
          L{Vertex}. When the vertex is unmatched, returns C{None}.
        """
        if isinstance(vertex, Vertex):
            matched = self._matching[vertex.index]
            if matched < 0:
                return None
            return self._graph.vs[matched]

        matched = self._matching[vertex]
        if matched < 0:
            return None
        return matched
def match_of ( self , vertex ) : if isinstance ( vertex , Vertex ) : matched = self . _matching [ vertex . index ] if matched < 0 : return None return self . _graph . vs [ matched ] matched = self . _matching [ vertex ] if matched < 0 : return None return matched