semilocal: Find the semi local centrality (or local centrality)

Description Usage Arguments Details Value Author(s) References Examples

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

1
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

1
2
g <- barabasi.game(10)
semilocal(g)

Example output

Loading required package: igraph

Attaching package: 'igraph'

The following objects are masked from 'package:stats':

    decompose, spectrum

The following object is masked from 'package:base':

    union

Loading required package: Matrix
 [1] 35 25 35 13 25 15 15 13 13 13

centiserve documentation built on May 2, 2019, 6:01 a.m.