cancel
Showing results for 
Search instead for 
Did you mean: 

Why I can only get 11 results when using GDS library DFS algorithm?

jayxu688
Node Link
MATCH (a:Artifact{gav:'org.slf4j:slf4j-api:1.7.21'})
WITH id(a) AS startNode
CALL gds.alpha.dfs.stream('myGraph1', {startNode: startNode})
YIELD path
UNWIND [ n in nodes(path) | n.gav ] AS tags
RETURN tags
ORDER BY tags

I run this cypher on my local db.
The result set should be huge, like near 1M.
But I only get 11 results back.
Why like this?

2 REPLIES 2

gabriel_toma
Ninja
Ninja

Can you post the result of "CALL apoc.meta.graph" ?

mark_needham
Neo4j
Neo4j

Also can you show the code that you used to create myGraph1?

Nodes 2022
Nodes
NODES 2022, Neo4j Online Education Summit

On November 16 and 17 for 24 hours across all timezones, you’ll learn about best practices for beginners and experts alike.