›Finding Paths
2.7 · Lesson
Finding Paths
The SHORTEST keyword finds the shortest path between two nodesA vertex in a graph. In a property graph it can carry labels and properties., however many relationshipsA named, directed connection between two nodes. Every relationship has a type, a start node and an end node. and nodes lie between them.
Paths are useful for queries about connections, friendships, or travel routes.
Predict the number of relationships in the path between Tom Hanks and Meg Ryan, then run the query.
Join GraphAcademy to keep learning
Create your account to unlock 80+ hours of hands-on Neo4j courses, track your progress, and earn a certificate when you complete the course.
Sign in or register