我是neo4j的新手。我试图使用来自https://github.com/neo4j-contrib/neo4j-graph-algorithms/releases的algo.louvain在Person(节点)和KNOWS(关系)数据上在neo4j bolt中运行louvain算法,但出现以下错误:
Neo.ClientError.Procedure.ProcedureCallFailed: Failed to invoke procedure `algo.louvain`:
Caused by: java.lang.NoSuchMethodError: org.neo4j.kernel.api.Statement.readOperations()Lorg/neo4j/kernel/api/ReadOperations;
这是我要运行的查询:
CALL algo.louvain(
'MATCH (p:Person) RETURN id(p) as id',
'MATCH (p1:Person)-[rel:KNOWS]->(p2:Person) RETURN id(p1) as source, id(p2) as target, count(*) as weight',
{graph:'cypher', iterations:5, write: true})
我正在使用neo4j 3.4.4版本,这是最新版本。查询是否存在问题或是否存在导入问题?有人遇到过类似的问题吗?
谢谢!