Skip to content

Instantly share code, notes, and snippets.

@jajeffries
Created February 19, 2015 13:20
Show Gist options
  • Save jajeffries/65a7f0c09d1d525704ad to your computer and use it in GitHub Desktop.
Save jajeffries/65a7f0c09d1d525704ad to your computer and use it in GitHub Desktop.
Friends Graph
create
(Joey:Man:Character {name:'Joey'}),
(Chandler:Man:Character {name: 'Chandler'}),
(Ross:Man:Character {name: 'Ross'}),
(Rachel:Woman:Character {name: 'Rachel'}),
(Phoebe:Woman:Character {name: 'Phoebe'}),
(Monica:Woman:Character {name:'Monica'}),
(DavidSchwimmer:Actor {name:'David Schwimmer'}),
(CourtneyCox:Actor {name:'Courtney Cox'}),
(MattLeBlanc:Actor {name:'Matt Le Blanc'}),
(MatthewPerry:Actor {name:'Matthew Perry'}),
(JenniferAniston:Actor {name:'Jennifer Aniston'}),
(LisaKudrow:Actor {name:'Lisa Kudrow'}),
(Joey)-[:LIVED_WITH]->(Chandler),
(Joey)-[:LIVED_WITH]->(Ross),
(Joey)-[:LIVED_WITH]->(Rachel),
(Joey)-[:LIVED_WITH]->(Phoebe),
(Chandler)-[:LIVED_WITH]->(Joey),
(Chandler)-[:LIVED_WITH]->(Monica),
(Chandler)-[:LIVED_WITH]->(Ross),
(Chandler)-[:MARRIED]->(Monica),
(Ross)-[:MARRIED]->(Rachel),
(Rachel)-[:LIVED_WITH]->(Phoebe),
(Rachel)-[:LIVED_WITH]->(Monica),
(Rachel)-[:LIVED_WITH]->(Ross),
(DavidSchwimmer)-[:PLAYED]->(Ross),
(MattLeBlanc)-[:PLAYED]->(Joey),
(MatthewPerry)-[:PLAYED]->(Chandler),
(CourtneyCox)-[:PLAYED]->(Monica),
(JenniferAniston)-[:PLAYED]->(Rachel),
(LisaKudrow)-[:PLAYED]->(Phoebe)
@jajeffries
Copy link
Author

TODO:

  • Add episodes and directors
  • Think of some queries

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment