This is more of a "how to" question, there can be different ways but trying to find the most performant and effective way of solving this requirement.
I have a graph where there are nodes that act as fork nodes i.e. they spawn into two paths and these paths later meet at some other node, I know the node id and properties of the fork node (Node A in example below) and would like to know the node (Node B in ex below) at which the two paths meet.
Note - these paths can be of variable length i.e. one may have 6 nodes and the other only 2 nodes for e.g.
NodeA -[]-> Node 1 -[]-> Node 2 -[]-> Node 3 -[]-> Node 4 -[]-> Node 5 -[]-> Node 6 -[]-> Node B -[]-> Node C -[]-> Node D -[]-> Node E
NodeA -[]-> Node 7 -[]-> Node 8 -[]-> Node B -[]-> Node C -[]-> Node D -[]-> Node E
So if you see Node A spawns into two paths which finally meet again at Node B, so I want to get the Node B knowing Node A, pls suggest how we can do this in Cypher.
Thanks, Deepesh