/movies

Built in Movie Graph Example

Primary LanguageShell

icon

Movies Graph Example

Description: Small example graph of popular movies and actors

Setup

This is for version: 3.5,4.0

unrendered guide: documentation/guide.adoc

rendered guide available from: :play movies

Model

model

Example

Movie Cast
MATCH (movie:Movie)<-[:ACTED_IN]-(cast)
WHERE movie.title = "Your favorite movie"
RETURN cast
Tom Hanks Movies
MATCH (a:Person {name:"Tom Hanks"})-[:ACTED_IN]->(m:Movie)<-[:DIRECTED]-(d:Person)
RETURN a,m,d LIMIT 10;
example
Figure 1. Tom Hanks Movies

Recommendation

MATCH (movie:Movie)<-[:ACTED_IN]-(actor)-[:ACTED_IN]->(rec:Movie)
WHERE movie.title IN $favorites
RETURN rec, count(*) as freq
ORDER BY freq DESC LIMIT 5