def add_graph(self, other):
self.add_nodes( n for n in other.nodes() if not n in self.nodes() )<EOL>for each_node in other.nodes():<EOL><INDENT>for each_edge in other.neighbors(each_node):<EOL><INDENT>if (not self.has_edge((each_node, each_edge))):<EOL><INDENT>self.add_edge((each_node, each_edge))<EOL><DEDENT><DEDENT><DEDENT>
Add other graph to this graph.

@attention: Attributes and labels are not preserved.

@type  other: graph
@param other: Graph