Graph projection

Table 1. Changes in the YIELD fields
1.x 2.x

createMillis

projectMillis

-

configuration

nodeProjection

configuration.nodeProjection

relationshipProjection

configuration.relationshipProjection

nodeQuery

configuration.nodeQuery

relationshipQuery

configuration.relationshipQuery

nodeFilter

configuration.nodeFilter

relationshipFilter

configuration.relationshipFilter

Table 2. Projecting a graph
1.x 2.x

Native Projection:

CALL gds.graph.create(
  'myGraph',
  NODE_PROJECTION,
  RELATIONSHIP_PROJECTION,
  ADDITIONAL_CONFIGURATION
)
CALL gds.graph.project(
  'myGraph',
  NODE_PROJECTION,
  RELATIONSHIP_PROJECTION,
  ADDITIONAL_CONFIGURATION
)

Cypher Projection:

CALL gds.graph.create.cypher(
  'myGraph',
  NODE_QUERY,
  RELATIONSHIP_QUERY
  ADDITIONAL_CONFIGURATION
)
CALL gds.graph.project.cypher(
  'myGraph',
  NODE_QUERY,
  RELATIONSHIP_QUERY
  ADDITIONAL_CONFIGURATION
)

Projecting subgraphs:

CALL gds.graph.create.subgraph(
  'myGraph',
  NODE_QUERY,
  RELATIONSHIP_QUERY
  ADDITIONAL_CONFIGURATION
)
CALL gds.graph.project.cypher(
  'myGraph',
  NODE_QUERY,
  RELATIONSHIP_QUERY
  ADDITIONAL_CONFIGURATION
)