semilocal {centiserve} R Documentation

## Find the semi local centrality (or local centrality)

### Description

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

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

where

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.

### Usage

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

### Arguments

 `graph` The input graph as igraph object `vids` Vertex sequence, the vertices for which the centrality values are returned. Default is all vertices. `mode` 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.

### Details

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

### Value

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

### Author(s)

Mahdi Jalili m_jalili@farabi.tums.ac.ir

### References

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

### Examples

```g <- barabasi.game(10)
semilocal(g)
```

[Package centiserve version 1.0.0 Index]