Created
June 15, 2015 19:58
-
-
Save jonaslund/a3c622023890a4779452 to your computer and use it in GitHub Desktop.
Friends of Friends
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MATCH (j:Artist {name:""})-[:`WORKED_WITH`]->()<-[:`WORKED_WITH`]-(c), | |
(c)-[:`WORKED_WITH`]->()<-[:`WORKED_WITH`]-(coc) | |
WHERE coc <> j AND NOT((j)-[:`WORKED_WITH`]->()<-[:`WORKED_WITH`]-(coc)) | |
RETURN coc.name, count(coc) | |
ORDER BY count(coc) DESC | |
LIMIT 10; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment