(self, *args, **kwds)
Returns the first edge of the edge sequence that matches some
        criteria.

        The selection criteria are equal to the ones allowed by L{VertexSeq.select}.
        See L{VertexSeq.select} for more details.

        For instance, to find the first edge with weight larger than 5 in graph C{g}:

            >>> g.es.find(weight_gt=5)           #doctest:+SKIP
Returns the first edge of the edge sequence that matches some
        criteria.
Returns the first edge of the edge sequence that matches some criteria .
def find(self, *args, **kwds):
        """Returns the first edge of the edge sequence that matches some
        criteria.

        The selection criteria are equal to the ones allowed by L{VertexSeq.select}.
        See L{VertexSeq.select} for more details.

        For instance, to find the first edge with weight larger than 5 in graph C{g}:

            >>> g.es.find(weight_gt=5)           #doctest:+SKIP
        """
        if args:
            # Selecting first based on positional arguments, then checking
            # the criteria specified by the keyword arguments
            edge = _EdgeSeq.find(self, *args)
            if not kwds:
                return edge
            es = self.graph.es.select(edge.index)
        else:
            es = self

        # Selecting based on positional arguments
        es = es.select(**kwds)
        if es:
            return es[0]
        raise ValueError("no such edge")
def find ( self , * args , * * kwds ) : if args : # Selecting first based on positional arguments, then checking # the criteria specified by the keyword arguments edge = _EdgeSeq . find ( self , * args ) if not kwds : return edge es = self . graph . es . select ( edge . index ) else : es = self # Selecting based on positional arguments es = es . select ( * * kwds ) if es : return es [ 0 ] raise ValueError ( "no such edge" )