如何在没有遍历框架的情况下在neo4j中进行深度优先遍历。我没有使用嵌入式neo4j数据库。
Cypher variable-length expansions默认情况下应该使用dfs(bfs只应在使用shortestPath()时使用。
shortestPath()
否则,在配置图中使用APOC path expanders(apoc.path.expandConfig())和bfs:false。
bfs:false