In my graph model, nodes have relationships with each other and can have loops. I want to find the nodes in paths of length 2 with distinct nodes in the paths and for a list of beginning nodes:
WITH ['begin1', 'begin2', 'begin3'] as names
MATCH pathl...