【问题标题】:How to do depth-first traversal in neo4j without the traversal framework?在没有遍历框架的情况下如何在 neo4j 中进行深度优先遍历?
【发布时间】:2018-12-26 10:24:24
【问题描述】:

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

【问题讨论】:

    标签: neo4j


    【解决方案1】:

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

    否则,在配置映射中使用APOC path expanders (apoc.path.expandConfig()) 和bfs:false

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2019-08-10
      • 1970-01-01
      • 2019-01-08
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多