Graphs

relationship

A named, directed connection between two nodes. Every relationship has a type, a start node and an end node.

Also written: relationships

Example

One relationship, joining Tom Hanks to a film he acted in.

cypher
CREATE (:Person {name: 'Tom Hanks'})-[:ACTED_IN]->(:Movie {title: 'Toy Story'})

Its relationship type is ACTED_IN. The Tom Hanks node is the start node, and the Toy Story node is the end node. The arrow points from one to the other.

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