我有一个在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
我希望找到一种与图形数据科学库等效的方法,它运行查询并在我的节点中写入一个新的属性partition。
任何帮助都将不胜感激!
发布于 2021-01-20 18:45:42
在新的GDS库中,该算法已重命名为gds.wcc.write。
https://stackoverflow.com/questions/65799737
复制相似问题