Graphs

path

A sequence of nodes joined by relationships.

Example

Ava follows Ben. Ben follows Cleo.

cypher
MATCH path = (:Person {name: 'Ava'})-[:FOLLOWS]->()-[:FOLLOWS]->()
RETURN path

The path variable holds Ava, Ben and Cleo with the two [:FOLLOWS] relationships between them. Nothing joins Ava to Cleo directly, so the sequence runs through Ben.

Lessons that use this term

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

No published lesson uses this term yet.

All glossary terms