I have a large dense graph with millions of relationships. I want to get all possible paths of length 3 starting from a specific node. However, this results in thousands of possible paths, and it takes a lot of time. So I want to filter the intermediate nodes that I want to expand based on the weight of the node.
The beginning of the request is:
MATCH p=(e1:LabeledExperience { name: 'software developer'})-[n:NextExp *1..3]->(e2:LabeledExperience)
And then UNWIND the nodes n and apply conditions. The problem with this is that it first matchs all possible paths, unwind them and after that applies the condition. Is there a way to do it at each step ?