Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
08-09-2022 06:49 PM
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
08-10-2022 04:27 AM
I haven't found this reference method, except using bloom. it's easy to make
All the sessions of the conference are now available online