Skip to content

Instantly share code, notes, and snippets.

@cihangir
Created July 1, 2013 16:53
Show Gist options
  • Save cihangir/5902557 to your computer and use it in GitHub Desktop.
Save cihangir/5902557 to your computer and use it in GitHub Desktop.
Co-favorited places — users who like x also like y Find places that people also like who favorite this place: Determine who has favorited place x. What else have they favorited that is not place x.
START place=node:node_auto_index(name = "CoffeeShop1")
MATCH place<-[:favorite]-person-[:favorite]->stuff
RETURN stuff.name, count(*)
ORDER BY count(*) DESC, stuff.name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment