Common changes

This section describes changes between Graph Algorithms library and Graph Data Science library that are common to all procedures.

Table 1. Namespace
Graph Algorithms v3.5 Graph Data Science v1.0

algo.*

gds.*

Table 2. Changes in Parameters
Graph Algorithms v3.5 Graph Data Science v1.0 Named Graph Graph Data Science v1.0 Anonymous Graph

-

graphName

graphConfiguration

node label [1]

-

-

relationship type [2]

-

-

direction

-

-

config

configuration

-

1. Moved to graphConfiguration as nodeProjection

2. Moved to graphConfiguration as relationshipProjection

Table 3. Changes in configuration parameter map
Graph Algorithms v3.5 Graph Data Science v1.0

write: true

Replaced by dedicated write mode

graph: 'cypher'|'huge'

Removed. Always using huge graph [3]

direction

Replaced by projection parameter of relationshipProjection

direction: 'OUTGOING'

orientation: 'NATURAL'

direction: 'INCOMING'

orientation: 'REVERSE'

direction: 'BOTH'

Removed [4]

undirected: true

Replaced by orientation: 'UNDIRECTED' parameter of relationshipProjection

duplicateRelationships

Replaced by aggregation parameter of relationshipProjection

duplicateRelationships: 'SKIP'

aggregation: 'SINGLE'

iterations

maxIterations

3. Graph creation with cypher queries has dedicate gds.graph.create.cypher procedure. There are parameters nodeQuery and relationshipQuery for anonymous graphs

4. This behaviour can be achieved by creating two relationship projections - one with orientation: 'NATURAL' and one with orientation: 'REVERSE'