Created
September 14, 2016 21:36
-
-
Save nicysneiros/46e2d74be970ecec0ad79acd668c9739 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 (c:Character) | |
WITH collect(c) AS characters | |
CALL apoc.algo.betweenness(["INTERACTS"], characters, "BOTH") YIELD node, score | |
SET node.betweenness = score | |
RETURN node.name AS name, score ORDER BY score DESC |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment