Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在 neo4j 数据库中有一个图表。我想提取给定特定节点和特定深度的子图。 我尝试使用遍历框架,但它只返回一组路径。它提供了到达特定深度的路径。如何根据获得的路径集构建子图?有没有其他方法可以获得所需的结果?
如果通过子图,您的意思是节点列表,并且您已经从遍历中获得了 Path 对象,您可以只收集列表中每个路径的结束节点。