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
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
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.