cancel
Showing results for 
Search instead for 
Did you mean: 

Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.

Merging/Integrating two graphs in Neo4j database

y-pankaj
Node Link

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

2 REPLIES 2

Hello,

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

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