cancel
Showing results for 
Search instead for 
Did you mean: 

Color Graph according to the value between centrality

IchsanALi
Node Link

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

IchsanALi
Node Link

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