liveBook · Manning

Write mode

As explained in Graph Algorithms for Data Science

Write mode is an algorithm execution mode that persists computed results as properties or other data in the target graph database.

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:

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

How Graph Algorithms for Data Science covers it

How deep it goes
Explains required parameters, procedure syntax, stored properties, and returned statistics, but does not detail algorithm internals.
Examples
Demonstrates WCC on follower and hashtag co-occurrence networks, storing followerWcc or tcWcc and reviewing component distributions.
What it assumes
Assumes a projected graph and a callable GDS algorithm, while specifying writeProperty and result interpretation explicitly.
What you can do after
Operate/configure GDS algorithms with write mode and query the persisted node results alongside returned summary statistics.
How it connects
Connects projected in-memory graphs, Graph Data Science algorithms, node properties, stream mode, stats mode, and mutate mode.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Graph Algorithms for Data Science. The section links point to the parts of the book it draws on.