0

I have a cypher projection that used algo.unionFind in Neo4j. However, that algorithim has been deprecated. My query was:

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

I was hoping to find an equivalent approach with the Graph Data Science Library that runs the query and writes a new property partition in my nodes.

Any help would be greatly appreciated!

Noel
  • 23
  • 7

1 Answers1

1

The algorithm has been renamed to gds.wcc.write in the new GDS library.

Tomaž Bratanič
  • 6,319
  • 2
  • 18
  • 31
  • Thanks! I was wondering how to incorporate the cypher projection as well? In ```gds.wcc.write``` I only see the parameters for writing the property. – Noel Jan 21 '21 at 23:39
  • You can use nodeQuery and relationshipQuery parameters – Tomaž Bratanič Jan 22 '21 at 07:13
  • Thanks! I used ```gds.graph.create.cypher``` and passed in nodeQuery and relationshipQuery parameters. Then ```gds.wcc.write``` for writing in the new property – Noel Jan 22 '21 at 23:47