(self, other)
return self
In-place subtraction (difference).

        @see: L{__sub__}
In-place subtraction (difference).
In - place subtraction ( difference ) .
def __isub__(self, other):
        """In-place subtraction (difference).

        @see: L{__sub__}"""
        if isinstance(other, int):
            self.delete_vertices([other])
        elif isinstance(other, tuple) and len(other) == 2:
            self.delete_edges([other])
        elif isinstance(other, list):
            if len(other) > 0:
                if isinstance(other[0], tuple):
                    self.delete_edges(other)
                elif isinstance(other[0], (int, str)):
                    self.delete_vertices(other)
                else:
                    return NotImplemented
        elif isinstance(other, Vertex):
            self.delete_vertices(other)
        elif isinstance(other, VertexSeq):
            self.delete_vertices(other)
        elif isinstance(other, Edge):
            self.delete_edges(other)
        elif isinstance(other, EdgeSeq):
            self.delete_edges(other)
        else:
            return NotImplemented
        return self
def __isub__ ( self , other ) : if isinstance ( other , int ) : self . delete_vertices ( [ other ] ) elif isinstance ( other , tuple ) and len ( other ) == 2 : self . delete_edges ( [ other ] ) elif isinstance ( other , list ) : if len ( other ) > 0 : if isinstance ( other [ 0 ] , tuple ) : self . delete_edges ( other ) elif isinstance ( other [ 0 ] , ( int , str ) ) : self . delete_vertices ( other ) else : return NotImplemented elif isinstance ( other , Vertex ) : self . delete_vertices ( other ) elif isinstance ( other , VertexSeq ) : self . delete_vertices ( other ) elif isinstance ( other , Edge ) : self . delete_edges ( other ) elif isinstance ( other , EdgeSeq ) : self . delete_edges ( other ) else : return NotImplemented return self