Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
10-04-2022 02:42 AM
Hi all,
My question is very simple : Is there anyway to obtain the node depths from the results produced by BFS/DFS algorithms.
I appears that these algos only produce the path they used to visit the graph.
Thank you in advanvce
Best,
Augustin
Solved! Go to Solution.
10-04-2022 09:25 AM
Use apoc.path.spanningTree with bfs filter setting to 'false' to get DFS results. Default value for bfs is 'true' and thus gives BFS results.
10-04-2022 09:25 AM
Use apoc.path.spanningTree with bfs filter setting to 'false' to get DFS results. Default value for bfs is 'true' and thus gives BFS results.
All the sessions of the conference are now available online