Neo4j algo.unionFind等效于新的图形数据科学库

2024-09-26 17:52:12 发布

您现在位置:Python中文网/ 问答频道 /正文

我有一个使用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

任何帮助都将不胜感激


Tags: 算法idreturnvalueasmatchcallwhere

热门问题