Hi!
I have the following scenario: I have a bunch of nodes and I want to find all paths between them with certain conditions. I am thinking I should be able to use apoc.subgraphAll to do so, and use the same list of nodes as startnodes and endNodes. But I get nothing back.
I tried the following:
match (a:Alabel {id: 1}), (b:Alabel {id: 2})
call apoc.path.subgraphAll(a, {minLevel: 1, maxLevel: 3, endNodes: [a,b]})
I get one path which is expected. As I have a list of possible nodes to start with and subgraphAll accepts a list as startNodes I figured I should be able to do:
match (a:Alabel {id: 1}), (b:Alabel {id: 2})
call apoc.path.subgraphAll([a,b], {minLevel: 1, maxLevel: 3, endNodes: [a,b]})
and still get the same result, but I get nothing.
In reality I want to match a couple of hundred nodes and add nodeFilters and labelFilters..
Why doesnt the subgraphAll query above give me the paths between a and b?
Thanks..