cancel
Showing results for 
Search instead for 
Did you mean: 

Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.

Color Graph according to the value between centrality

How to make a graph according to Betweenness Centrality. color chart only for some of the highest Betweenness Centrality values?

CREATE
(alice:User {name: 'Alice'}),
(bob:User {name: 'Bob'}),
(carol:User {name: 'Carol'}),
(dan:User {name: 'Dan'}),
(eve:User {name: 'Eve'}),
(frank:User {name: 'Frank'}),
(gale:User {name: 'Gale'}),

(alice)-[:FOLLOWS]->(carol),
(bob)-[:FOLLOWS]->(carol),
(carol)-[:FOLLOWS]->(dan),
(carol)-[:FOLLOWS]->(eve),
(dan)-[:FOLLOWS]->(frank),
(eve)-[:FOLLOWS]->(frank),
(frank)-[:FOLLOWS]->(gale);

CALL gds.graph.project('myGraph', 'User', 'FOLLOWS')

CALL gds.betweenness.stream('myGraph') YIELD nodeId, score RETURN gds.util.asNode(nodeId).name AS name, score ORDER BY name ASC

1 REPLY 1

I haven't found this reference method, except using bloom. it's easy to make