(self, other)
Graph union operator.

        @param other: the other graph to take the union with.
        @return: the union graph.
Graph union operator.
Graph union operator .
def __or__(self, other):
        """Graph union operator.

        @param other: the other graph to take the union with.
        @return: the union graph.
        """
        if isinstance(other, Graph):
            return self.union(other)
        else:
            return NotImplemented
def __or__ ( self , other ) : if isinstance ( other , Graph ) : return self . union ( other ) else : return NotImplemented