Hello all,
i need to clone a subgraph and link the individual nodes of the cloned subgraph back to the original nodes.
Example
(n1:A)-[r:demorel]->(n2:B)
(n1)-[r:demorel]->(n3:C)
(n2)-[r:demorel]->(n4:D)
(n2)-[r:demorel]->(n5:E)
now clone this subgraph to (can be done with apoc...)
(n11:A1)-[r:demorel]->(n21:B1)
(n11)-[r:demorel]->(n31:C1)
(n21)-[r:demorel]->(n41:D1)
(n21)-[r:demorel]->(n51:E1)
and create rels
(n11)-[r:original]->(n1)
(n21)-[r:original]->(n2)
(n31)-[r:original]->(n3)
(n41)-[r:original]->(n4)
(n51)-[r:original]->(n5)
or like so
regards
Thomas