Graph creation - Named Graph

Table 1. Changes in the YIELD fields
Graph Algorithms v3.5 Graph Data Science v1.0

name

graphName

graph

-

direction

-

undirected

-

sorted

-

nodes

nodesCount

loadMillis

createMillis

alreadyLoaded

-

nodeProperties

-

relationshipProperties

relationshipCount

relationshipWeight

-

loadNodes

-

loadRelationships

-

-

nodeProjection

-

relationshipProjection

Table 2. Loading a named graph in the default way:
Graph Algorithms v3.5 Graph Data Science v1.0

Minimal Native Projection:

CALL algo.graph.load(
  'myGraph',
  'MyLabel',
  'MY_RELATIONSHIP_TYPE'
)
CALL gds.graph.create(
  'myGraph',
  'MyLabel',
  'MY_RELATIONSHIP_TYPE'
)

Native Projection with additional properties:

CALL algo.graph.load(
  'myGraph',
  'MyLabel',
  'MY_RELATIONSHIP_TYPE',
  {
    concurrency: 4,
    graph: 'huge',
    direction: 'INCOMING'
  }
)
CALL gds.graph.create(
  'myGraph',
  'MyLabel',
  {
    MY_RELATIONSHIP_TYPE: {
      orientation: 'REVERSE'
    }
  },
  {
    readConcurrency: 4
  }
)

Native Projection with direction: 'BOTH':

CALL algo.graph.load(
  'myGraph',
  'MyLabel',
  'MY_RELATIONSHIP_TYPE',
  {
    graph: 'huge',
    direction: 'BOTH'
  }
)
CALL gds.graph.create(
  'myGraph',
  'MyLabel',
  {
    MY_RELATIONSHIP_TYPE_NATURAL: {
      type: 'MY_RELATIONSHIP_TYPE',
      orientation: 'NATURAL'
    },
    MY_RELATIONSHIP_TYPE_REVERSE: {
      type: 'MY_RELATIONSHIP_TYPE',
      orientation: 'REVERSE'
    }
  }
)

Undirected Native Projection:

CALL algo.graph.load(
  'myGraph',
  'MyLabel',
  'MY_RELATIONSHIP_TYPE',
  {
    graph: 'huge',
    undirected: true
  }
)
CALL gds.graph.create(
  'myGraph',
  'MyLabel',
  {
    MY_RELATIONSHIP_TYPE: {
      orientation: 'UNDIRECTED'
    }
  }
)