I have currently the problem, that I want to find an exactly same subgraph under one other node.
To make it more specific. I have multiple repair guides which have multiple repair steps. The repair steps can exist also inside another repair guide. Now I want to find similar repair guides which have the exact same repair steps.
MATCH (mp1:Maintenance{name:'13 Years (325000 km)'})-[:HAS]->(ws:WorkStep)
WHERE id(mp1)=49214
with collect(ws) as workingssteps, mp1
MATCH (mp2:Maintenance)
Now I'm stuck, how to proceed further to iterate over mp2 to find the same working steps from mp1.
Thanks for any help or tips. Christian
Here is one way of finding other
Maintenancenodes connected to the same set ofWorkStepnodes as a givenMaintenancenode:I assume above that the
nameproperty ofMaintenancenodes is unique. It is not generally a reliable practice to find a node/relationship by its the native ID, as the native ID can be reused after entity deletion. Also, the ID() function is now deprecated.