【问题标题】:Embedded Neo4j with Graph Data Science - BFS Procedure appears to be missing具有图形数据科学的嵌入式 Neo4j - BFS 程序似乎缺失
【发布时间】:2021-06-05 04:45:50
【问题描述】:

https://neo4j.com/docs/graph-data-science/1.1/algorithms/bfs/#algorithms-bfs 此处的文档描述了一个可调用的“gds.alpha.bfs.stream”。

为了调用它,据我所知,它需要在嵌入式数据库中注册。类似于

Procedures proceduresService = ((GraphDatabaseAPI) graphDb).getDependencyResolver().resolveDependency(Procedures.class);
proceduresService.registerProcedure(AllShortestPathsProc.class, true);

否则neo4j会抛出异常,通知我们我们的错误行为:

没有为此数据库实例注册名称为gds.alpha.bfs.stream 的过程。请确保您已正确拼写过程名称并且已正确部署过程。

但是,我似乎找不到任何要包含用于 BFS 或 BreadthFirstSearch 的 *Proc.class。

此文档不正确吗? 我需要不同的 jar 来使用描述的 bfs 算法吗?

OT:我正在链接到旧版本的文档,因为它支持遍历关系的 maxCost 条件。较新的版本缺少这一点(实际上似乎也没有有 BFSProc)

【问题讨论】:

    标签: java neo4j neo4j-embedded graph-data-science


    【解决方案1】:

    所需的过程方便地称为“TraverseProc”,并允许使用 BFS 和 DFS。

    该文件也不包含可调用对象的名称。通过搜索我所有的 neo4j 依赖项发现它

    find . -name "*.jar" -exec zipgrep "gds.alpha" '{}' \;
    

    (来自How to search for a string in JAR files

    【讨论】:

    • 附注:不推荐。在无向投影上工作很慢
    猜你喜欢
    • 2021-04-24
    • 1970-01-01
    • 1970-01-01
    • 2014-07-18
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-09-22
    • 1970-01-01
    相关资源
    最近更新 更多