liveBook · Manning

Graph catalog

As explained in Graph Algorithms for Data Science

A graph catalog is a GDS-managed collection of named projected in-memory graphs that can be reused by multiple algorithm executions.

A graph catalog is a GDS-managed collection of named, projected in-memory graphs. Create a graph once, then reuse it across multiple algorithm executions instead of rebuilding it each time. section 5.2

A practical graph-catalog workflow is:

  • Project the required nodes and relationships into memory and assign the graph a name. section 5.2.1
  • Run multiple algorithms against the named graph without creating a separate projection for each execution. section 5.2
  • Use mutate mode to write algorithm results into the projected graph and pass them to another algorithm. section 5.2

Project a follower network

CALL gds.graph.project('follower-network', 'User', 'FOLLOWS') This creates a named in-memory graph containing User nodes and FOLLOWS relationships. Algorithms can access it by the name follower-network. section 5.2.1

Figure 5.8 Graph Data Science library workflow
05-08

Use the workflow figure to connect projection, named-graph storage, and subsequent GDS algorithm execution. section 5.2

Listing 5.4 Native projection syntax to create a named graph in the graph catalog
CALL gds.graph.project(
   graphName,
   nodeProjection,
   relationshipProjection,
   optional configuration
)

Use the syntax listing to identify the graph name, node projection, relationship projection, and optional configuration. section 5.2.1

How Graph Algorithms for Data Science covers it

How deep it goes
Explains catalog reuse, projection parameters, and mutate-mode chaining, while deferring broader projection configuration.
Examples
Uses a follower network containing User nodes and FOLLOWS relationships.
What it assumes
Assumes familiarity with Neo4j nodes, relationships, labels, relationship types, and basic Cypher CALL syntax.
What you can do after
Apply it via the Neo4j GDS procedure gds.graph.project to create and reuse named graphs.
How it connects
Connects graph catalogs with in-memory graphs, native projection, Cypher projection, and graph algorithms.

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.