Graph
Find places that people also like who favorite this place:
Query
START place=node:node_auto_index(name = "CoffeeShop1") MATCH place<-[:favorite]-person-[:favorite]->stuff RETURN stuff.name, count(*) ORDER BY count(*) DESC, stuff.name
The list of places that are favorited by people that favorited the start place.
Find places that are tagged with the same tags:
Query
START place=node:node_auto_index(name = "CoffeeShop1") MATCH place-[:tagged]->tag<-[:tagged]-otherPlace RETURN otherPlace.name, collect(tag.name) ORDER By otherPlace.name DESC
The list of possible friends ranked by them liking similar stuff that are not yet friends.
Result
otherPlace.name | collect(tag.name) |
---|---|
3 rows, 3 ms | |
|
|
|
|
|
|
Copyright © 2012 Neo Technology