Merging/Integrating two graphs in Neo4j database

I have two separate graphs in a Neo4j instance. These two graphs have some identical nodes and relationships. I wish to take the union of these two graphs such that it merges into a single graph with unique nodes and relationships ( initially each graph has unique nodes and relationships ).

I tried searching the internet but couldn't find a suitable answer. Can anyone suggest any resource/algorithm/pseudo-code to merge the two graphs?

Thanks

Hello,

Never tried that, but maybe have a look at the mergeNodes procedure in the APOC library ? Doc here : Merge Nodes - APOC Documentation

1 Like

Thanks for the answer. Will have a look at it and see what I can achieve using the methods.