This function calculates the ClusterRank of input vertices and works with both directed and undirected networks. This function and all of its descriptions have been adapted from the centiserve package with some minor modifications. 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(graph, vids = V(graph), directed = FALSE, 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 ClusterRank centrality scores for the selected vertices.