Graph info

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

name

graphName

nodes

nodeCount

relationships

relationshipCount

exists

-

removed

-

type

-

direction

-

-

nodeProjection [1]

-

relationshipProjection [1]

-

nodeQuery [2]

-

relationshipQuery [2]

-

degreeDistribution [3]

min, max, mean, p50, p75, p90, p95, p99, p999 [4]

-

1. Field will be null if a Cypher projection was used

2. Field will be null unless a Cypher projection was used

3. Graph statistics map, i.e. min, max, percentiles, etc.

4. Inlined into degreeDistribution

Table 2. Viewing information about a specific named graph:
Graph Algorithms v3.5 Graph Data Science v1.0

View information for a Named graph:

CALL algo.graph.info('myGraph')
CALL gds.graph.list('myGraph')

Check graph existence:

CALL algo.graph.info('myGraph') YIELD exists
CALL gds.graph.exists('myGraph') YIELD exists

View graph statistics:

CALL algo.graph.info('myGraph', true)
YIELD min, max, mean, p50
CALL gds.graph.list('myGraph')
YIELD degreeDistribution AS dd
RETURN dd.min, dd.max, dd.mean, dd.p50