(self, other)
return NotImplemented
Copies exact replicas of the original graph an arbitrary number of
        times.

        @param other: if it is an integer, multiplies the graph by creating the
          given number of identical copies and taking the disjoint union of
          them.
Copies exact replicas of the original graph an arbitrary number of
        times.
Copies exact replicas of the original graph an arbitrary number of times .
def __mul__(self, other):
        """Copies exact replicas of the original graph an arbitrary number of
        times.

        @param other: if it is an integer, multiplies the graph by creating the
          given number of identical copies and taking the disjoint union of
          them.
        """
        if isinstance(other, int):
            if other == 0:
                return Graph()
            elif other == 1:
                return self
            elif other > 1:
                return self.disjoint_union([self] * (other - 1))
            else:
                return NotImplemented

        return NotImplemented
def __mul__ ( self , other ) : if isinstance ( other , int ) : if other == 0 : return Graph ( ) elif other == 1 : return self elif other > 1 : return self . disjoint_union ( [ self ] * ( other - 1 ) ) else : return NotImplemented return NotImplemented