semilocal {centiserve}R Documentation

Find the semi local centrality (or local centrality)


The local centrality CL(v) of node v is defined as:

C_L(v)=sum(Q(u), u in Gamma(v))


Q(u)=sum(N(w), w in Gamma(u))

and Gamma (u) is the set of the nearest neighbors of node u and N(w) is the number of the nearest and the next nearest neighbors of node w.


semilocal(graph, vids = V(graph), mode = c("all", "out", "in"))



The input graph as igraph object


Vertex sequence, the vertices for which the centrality values are returned. Default is all vertices.


Character constatnt, it specifies how to use the direction of the edges if a directed graph is analyzed. For 'out' only the outgoing edges are followed. For 'in' all vertices from which the source vertex is reachable in at most order steps are counted. 'all' ignores the direction of the edges. This argument is ignored for undirected graphs.


The local centrality is proposed aiming at identifying the influencers in undirected network, it can be applied to directed network as well with a modified definition of N(w). Of course, for directed network, N(w) should be the number of the nearest and next nearest upstream nodes of node w.
Local centrality measure is likely to be more effective to identify influential nodes than degree centrality measure as it utilizes more information, while it has much lower computational complexity than the betweenness and closeness centralities.
More detail at Semi_Local Centrality


A numeric vector contaning the centrality scores for the selected vertices.


Mahdi Jalili


Chen, Duanbing, et al. "Identifying influential nodes in complex networks." Physica a: Statistical mechanics and its applications 391.4 (2012): 1777-1787.


g <-

[Package centiserve version 1.0.0 Index]