(self, other)
return NotImplemented
In-place addition (disjoint union).

        @see: L{__add__}
In-place addition (disjoint union).
In - place addition ( disjoint union ) .
def __iadd__(self, other):
        """In-place addition (disjoint union).

        @see: L{__add__}
        """
        if isinstance(other, (int, str)):
            self.add_vertices(other)
            return self
        elif isinstance(other, tuple) and len(other) == 2:
            self.add_edges([other])
            return self
        elif isinstance(other, list):
            if not other:
                return self
            if isinstance(other[0], tuple):
                self.add_edges(other)
                return self
            if isinstance(other[0], str):
                self.add_vertices(other)
                return self
        return NotImplemented
def __iadd__ ( self , other ) : if isinstance ( other , ( int , str ) ) : self . add_vertices ( other ) return self elif isinstance ( other , tuple ) and len ( other ) == 2 : self . add_edges ( [ other ] ) return self elif isinstance ( other , list ) : if not other : return self if isinstance ( other [ 0 ] , tuple ) : self . add_edges ( other ) return self if isinstance ( other [ 0 ] , str ) : self . add_vertices ( other ) return self return NotImplemented