Write mode runs a Graph Data Science algorithm on a projected in-memory graph, stores its results in the Neo4j database, and returns summary statistics. A mandatory writeProperty parameter names the node property receiving each result. section 5.3.1 section 5.6
A write-mode procedure typically requires these steps:
- Choose the projected graph and algorithm procedure. section 5.3.1
- Set writeProperty to the node property that will store algorithm results. section 5.3.1
- Yield summary values to inspect result size and distribution. section 5.3.1 section 7.3.2
Persisting weakly connected components
CALL gds.wcc.write('follower-network', {writeProperty:'followerWcc'}) YIELD componentCount, componentDistribution. This stores each node's component ID as followerWcc while returning high-level connectivity statistics. section 5.3.1
