无法调用过程`netscan.find_communities`:引起:java.lang.NoSuchMethodError:'org.neo4j.graphdb.Result org.neo4j.graphdb.GraphDataba

问题描述

我从 https://github.com/vitorhorta/netscan-neo4j 找到了社区检测的语法 我发现了这个语法 CALL netscan.find_communities('Person','LIKES','id','weight','INCOMING',true,0.5,5,1);

当我尝试运行这个算法时,出现了这样的问题:

Neo.ClientError.Procedure.ProcedureCallFailed

调用过程 netscan.find_communities 失败:导致:java.lang.NoSuchMethodError: 'org.neo4j.graphdb.Result org.neo4j.graphdb.GraphDatabaseService.execute(java.lang.String)'

我已经安装了插件 netscan-1.0.0 并将其放在 neo4j 的 plugins 文件夹中,但该问题总是出现。 有什么提示吗?

解决方法

该插件的 pom 显示它是为 Neo4j 3.1.1 https://github.com/vitorhorta/netscan-neo4j/blob/master/pom.xml#L15 构建的,您必须运行相同版本的 Neo4j 实例。

如果你想做社区检测,GDS(Graph Datascience Library)涵盖了这样的算法:https://neo4j.com/docs/graph-data-science/current/algorithms/community/