Skip to content
akollegger edited this page Oct 16, 2012 · 5 revisions

Graph challenges, to be composed in Cypher. Answer these questions:

  1. Find yourself in the graph
    • hint: use the users index
  2. Find your friends
    • hint: use the match clause
  3. Find the friends of your friends
    • hint: extended match
  4. Find people in your extended network (up to 3 away) looking for a job
    • hint: use a variable length path and the where clause
  5. Make a recommendation to yourself for a new person to follow
    • hint: remember the graph patterns
  6. Find another workshop partcipant in the graph
  7. Find the shortest path from you to another workshop participant
  8. Find the most popular user in the graph
  9. Find the most popular project in the graph
  10. Create a node for your location, then relate all users at that location to the node

To submit, create a gist and list it on Graph Query Gists (NO PEEKING at other people's answers!)

References

Clone this wiki locally