Neo4j, Data Science, Graph Algorithms, Community Detection, Centrality.
nodeQuery, 'MATCH (s:Country)-[:SIMILAR]->(t:Country) RETURN id(s) as source, id(t) as target' as relQuery MATCH (c:Country) WITH distinct c.louvain[-1] as community, nodeQuery, relQuery CALL gds.pageRank.stream({nodeQuery:nodeQuery, relationshipQuery:relQuery, parameters:{community:community},