Neo4j, Data Science, Graph Algorithms, Community Detection, Centrality.
the PageRank algorithm for each community separately and consider only nodes and relationships within the given community. This can be easily achieved with cypher projection without any additional transformations. WITH 'MATCH (c:Country) WHERE c.louvain[-1] = $community RETURN id(c) as id' as