Graph Data Science

Cypher projection

A projection built from the rows a Cypher query returns, so it can hold nodes and relationships 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