cancel
Showing results for 
Search instead for 
Did you mean: 

Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.

Find all downstream nodes recursively

Totally new to Neo4j so I'm a little bit lost.

From a subset of nodes that are not necessarily connected, I want to trace all the nodes that they have a TO connection with recursively until I reach the end of the trees. I've got a query that returns all the nodes I'm interested as my starting seeds, but I'm not sure how to recursively follow their relationships.

Also, is there a way to run a pagerank based only on the resulting nodes that I have rather than running it offline for all nodes?

Thanks so much for the help!

1 ACCEPTED SOLUTION
2 REPLIES 2

You should read up on variable-length pattern matching, that is probably what you're after:

https://neo4j.com/docs/cypher-manual/current/syntax/patterns/#cypher-pattern-varlength

Thanks so much @andrew.bowman ! That's perfect!