Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
05-27-2022 10:33 PM
I have the following query. Although I gave maxDepth = 1, the run never ends. When I run this with BFS it instantly returns. Isn't it supposed to be fast with maxDepth = 1? (NOTE: I have a very large graph but I'm not sure if that's relevant when maxDepth = 1)
MATCH (a:Entity{name:'Steve Jobs'}), (d:Entity{name:'Apple Inc.'})
WITH id(a) AS source, [id(e)] AS targetNodes
CALL gds.dfs.stream('myGraph', {
sourceNode: source,
targetNodes: targetNodes,
maxDepth: 1
})
YIELD path
RETURN path
05-29-2022 10:48 AM
A few things to check:
Steve Jobs
)gds.beta.listProgress
or the logs, do you see anything printed there?05-29-2022 12:02 PM
Hi, I'm reimporting my database and it will take a couple of hours then I'll run listProgress to see it's output.
My GDS version is 2.0.4 and the degree of Steve Jobs is about 30.
Thanks.
06-03-2022 02:41 AM - edited 06-03-2022 02:45 AM
.
06-03-2022 02:44 AM
Log says 'Finished' for DFS but neo4j browser stucks at loading screen. And even if I give a larger maxDepth like 10000, it finishes in a short time which is really unexpected this time. Also gds.beta.listprogress outputs 'n/a' for DFS progress.
And 'Steve Jobs' and 'Apple Inc.' are directly connected.
06-03-2022 02:59 AM
I assume it’s a typo, but your target node array has id(e), but your two matched nodes are bound to ‘a’ and ‘d’. Should it be id(d) instead?
06-03-2022 03:42 AM - edited 06-03-2022 03:43 AM
Yes, sorry about that I can't edit the post and in my previous response I already gave it as 'd'.
All the sessions of the conference are now available online