You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 22, 2020. It is now read-only.
It looks like the DFS algorithm has the maxDepth parameter that includes the max value while the BFS algorithm does not include it. This can be confusing to an end user.
MATCH (s:User{id:'Bridget'})
WITH id(s) as start_id
CALL algo.bfs.stream('User', 'FOLLOW', 'BOTH', start_id,
{maxDepth:2}) YIELD nodeIds
UNWIND nodeIds as nodeId
RETURN algo.asNode(nodeId).id as user
results:
user
"Bridget"
"Alice"
"Michael"
DFS
MATCH (s:User{id:'Bridget'})
WITH id(s) as start_id
CALL algo.dfs.stream('User', 'FOLLOW', 'BOTH', start_id,
{maxDepth:2})
YIELD nodeIds
UNWIND nodeIds as nodeId
RETURN algo.asNode(nodeId).id as user
results:
user
"Bridget"
"Michael"
"Alice"
"Charles"
The text was updated successfully, but these errors were encountered:
It looks like the DFS algorithm has the maxDepth parameter that includes the max value while the BFS algorithm does not include it. This can be confusing to an end user.
Create graph:
BFS
results:
DFS
results:
The text was updated successfully, but these errors were encountered: