如何在没有遍历框架的情况下在neo4j中进行深度优先遍历?

问题描述 投票:0回答:1

如何在没有遍历框架的情况下在neo4j中进行深度优先遍历。我没有使用嵌入式neo4j数据库。

neo4j
1个回答
0
投票

Cypher variable-length expansions默认情况下应该使用dfs(bfs只应在使用shortestPath()时使用。

否则,在配置图中使用APOC path expandersapoc.path.expandConfig())和bfs:false

© www.soinside.com 2019 - 2024. All rights reserved.