Graph Data Science

Cypher projection

A Full definition for projection (opens in a new tab)An in-memory copy of part of your database that graph algorithms run against. You choose which nodes and relationships it holds. built from the rows a Full definition for Cypher (opens in a new tab)Neo4j's implementation of GQL, the ISO standard query language for graph databases. It is declarative: you describe the pattern to find, and the database decides how to find it. query returns, so it can hold Full definition for node (opens in a new tab)A vertex in a graph. In a property graph it can carry labels and properties. and Full definition for relationship (opens in a new tab)A named, directed connection between two nodes. Every relationship has a type, a start node and an end node. that are derived rather than stored.

Example

People and the films they acted in.

cypher
MATCH (source:Person)-[:ACTED_IN]->(target:Movie)
WITH gds.graph.project('people-movies', source, target) AS g
RETURN g.graphName, g.nodeCount, g.relationshipCount

Every row the query returns puts its source node, its target node and a relationship between the two into the projection. A query returning a person and a genre, with only films between them in the database, would project a relationship from one to the other just the same.

Lessons that use this term

The lesson and course links below open in a new tab.

13 lessons use this term. Results are ordered by term density.

Analyze Graph Data with Python6 mentions

Graph Data Science in Practice8 mentions

  • The GDS WorkflowGDS Foundations-> Run -> Write workflow to any GDS analysis Create graph projections using Cypher projection syntax Run algorithms in different execution modes (stats, stream, mutate, write) Manage in-memory projections by7 mentions
  • Graph Projections and StructureGDS Foundationsmost basic Cypher projection command looks like1 mention

Aura Graph Analytics fundamentals7 mentions

  • Aura Graph Analytics workflowAura Graph Analytics in the Aura WorkspaceHow to project a graph from your AuraDB into the session with a Native or Cypher projection How to run an algorithm and write results back to AuraDB How to reuse a session across multiple3 mentions
  • Drive AGA from the neo4j driverFrom the Python clientCypher projection is the same one you used in Module 2 Lesson1 mention
  • Implicit sessionsAura Graph Analytics in the Aura WorkspaceCypher projection spins up an implicit session the same way — the config map goes in the fifth argument1 mention
  • The AGA workflow end to endFrom the Python clientyou need to transform the graph — like deriving new relationships — stick with Cypher projection2 mentions

Get started with Graph Data Science6 mentions

All glossary terms