

def add_graph(self, other):
    '\n        Add other graph to this graph.\n        \n        @attention: Attributes and labels are not preserved.\n        \n        @type  other: graph\n        @param other: Graph\n        '
    self.add_nodes((n for n in other.nodes() if (not (n in self.nodes()))))
    for each_node in other.nodes():
        for each_edge in other.neighbors(each_node):
            if (not self.has_edge((each_node, each_edge))):
                self.add_edge((each_node, each_edge))

dataset/ETHPy150Open nerdvegas/rez/src/rez/vendor/pygraph/mixins/common.py common.add_graph/original