Hi, I have two graphs, and I would like to merge them, but in a way that differs a bit from graph.union.
In my case, if there is a common node (defined as the name attribute being equal) I'd like the two nodes to be added to the final graph and an edge created between them. This way the edges for the common node in g1 are distinct from the edges of that node in g2, in the final graph.
I started by manually adding nodes from one graph to another, but I was wondering if there was a more elegant way to do this.