neo4j 密码过滤器节点 apoc dijkstra
neo4j cypher filter nodes apoc dijkstra
我有一个图表,我想在上面使用 apoc dijkstra 算法,到目前为止一切正常。但是我想从可能的路径中排除某些节点或节点属性,以便 dijkstra 算法不会 return 包含这些排除的节点或属性的路径。
是否有可能,例如,在调用 apoc.dijkstra 算法之前过滤所有现有节点?
我知道是否可以在算法之后过滤找到的路径,但是图中可能存在未找到的可能路径,因为节点的过滤发生在之后..
Apoc dijkstra 是一个旧的已弃用的 Dijkstra 算法实现。您应该在 https://neo4j.com/docs/graph-data-science/current/. It supports shortest weighted path algorithm or otherwise known as dijkstra algorithm, https://neo4j.com/docs/graph-data-science/current/alpha-algorithms/shortest-path/ 查看 Graph Data Science 插件。您可以定义在投影图形时要遍历的节点和关系。
希望对您有所帮助!
我有一个图表,我想在上面使用 apoc dijkstra 算法,到目前为止一切正常。但是我想从可能的路径中排除某些节点或节点属性,以便 dijkstra 算法不会 return 包含这些排除的节点或属性的路径。
是否有可能,例如,在调用 apoc.dijkstra 算法之前过滤所有现有节点?
我知道是否可以在算法之后过滤找到的路径,但是图中可能存在未找到的可能路径,因为节点的过滤发生在之后..
Apoc dijkstra 是一个旧的已弃用的 Dijkstra 算法实现。您应该在 https://neo4j.com/docs/graph-data-science/current/. It supports shortest weighted path algorithm or otherwise known as dijkstra algorithm, https://neo4j.com/docs/graph-data-science/current/alpha-algorithms/shortest-path/ 查看 Graph Data Science 插件。您可以定义在投影图形时要遍历的节点和关系。
希望对您有所帮助!