neo4j - 在没有遍历框架的情况下如何在 neo4j 中进行深度优先遍历?
问题描述
如何在没有遍历框架的情况下在 neo4j 中进行深度优先遍历。我没有使用嵌入式 neo4j 数据库。
解决方案
Cypher 可变长度扩展默认应使用 dfs(bfs 仅应在使用shortestPath()
.
否则,在配置映射中使用APOC 路径扩展器( apoc.path.expandConfig() ) 。bfs:false
推荐阅读
- java - 当我搜索值时如何防止表中的重复
- laravel - 在 Laravel 中限制哈希的长度
- javascript - 在 React 组件中渲染脚本标签
- mysql - 无法连接到 Windows 机器上 Docker 上托管的 Mysql
- node.js - 无法读取未定义的属性“错误”。有什么问题?
- python - 使用嵌套列表将 comp 变量作为范围参数列出?
- c# - z轴旋转调试不为0,在inspector中为0
- android - 自定义 RecyclerViewAdapter 的 notifyItemRemoved 给了我一个 java.lang.IndexOutOfBoundsException
- database - 批量更新 postgresql 序列
- python-3.x - 找到对不和谐做出反应时保存图像的功能