我有一个使用Neo4j中的algo.unionFind的cypher投影。然而,该算法已被弃用。我的问题是:
CALL algo.unionFind('MATCH (n) WHERE n.dtype=\"VALUE\" RETURN id(n) AS id','MATCH p=(n)-[]-(m) WHERE n.dtype=\"VALUE\" AND m.dtype=\"VALUE\" RETURN id(n) AS source, id(m) AS target', {write:true, partitionProperty:\"partition\", graph:'cypher'}) YIELD nodes, setCount, loadMillis, computeMillis, writeMillis
我希望找到一种与Graph Data Science Library相当的方法来运行查询并在我的节点中写入一个新属性partition
任何帮助都将不胜感激
在新的GDS库中,该算法已重命名为
gds.wcc.write
相关问题 更多 >
编程相关推荐