I'm using neo4j 2.1.2 community edition.
I want to replicate the nodes and relationships to a new path from the existing old path. Consider i have one hierarchy.
Company:Google Street : 5760 W 96th Street City:Marco State : FL Country : US
For the first time i will create a hierarchy with 4nodes with some relationships. The relationship looks like as below:
Create (Google)-[:located_at]->(Marco)-[:belongs_to]->(FL)-[:present_in]->(US)
And then I will create one more company node called as Yahoo and this company is having different street name and same city, state and country name as same as Google.
So now i want to create a yahoo node and street node , and wanted to copy the city, state and country node along with their relationships to this node.So here I wanted to copy the existing nodes into my new path.
How can i do it?
My new node looks like this :
Company: Yahoo
Street : 199 Grandview Road
City : Marco
Sate : FL
Country : US
I do not want to attach the yahoo node with the Google node's city, state, country nodes. (These two paths present in a same database )