Mathematically, the ClusterRank score
clusterrank(graph, vids = V(graph), directed = TRUE, loops = TRUE)
The input graph as igraph object
Vertex sequence, the vertices for which the centrality values are returned. Default is all vertices.
Logical scalar, whether to directed graph is analyzed. This argument is ignored for undirected graphs.
Logical; whether the loop edges are also counted.
A numeric vector contaning the centrality scores for the selected vertices.
ClusterRank is a local ranking algorithm which takes into account not only the number of neighbors and the neighbors' influences, but also the clustering coefficient. ClusterRank can also be applied to undirected networks where the superiority of ClusterRank is significant compared with degree centrality and k-core decomposition. More detail at ClusterRank
Chen, Duan-Bing, et al. "Identifying influential nodes in large-scale directed networks: the role of clustering." PloS one 8.10 (2013): e77455.
# NOT RUN {
g <- graph(c(1,2,2,3,3,4,4,2,2,5,5,3,4,1,4,3,1,6,6,3,3,6,2,6,5,6))
clusterrank(g)
# }
Run the code above in your browser using DataLab