leverage: Find the leverage centrality

Description Usage Arguments Details Value Author(s) References Examples

View source: R/leverage.R

Description

Leverage centrality considers the degree of a node relative to its neighbors and operates under the principle that a node in a network is central if its immediate neighbors rely on that node for information.

Usage

1
2
leverage(graph, vids = V(graph), mode = c("all", "out", "in"),
  loops = TRUE)

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.

loops

Logical; whether the loop edges are also counted.

Details

Leverage centrality of vertex i defined as:

l_{i}=\frac{1}{k_{i}}∑_{N_{i}}\frac{k_{i}-k_{j}}{k_{i}+k_{j}}

where k(i) is degree of a given node i, k(j) is degree of each of its neighbors and N(i) is all neighbors.
A node with negative leverage centrality is influenced by its neighbors, as the neighbors connect and interact with far more nodes. A node with positive leverage centrality, on the other hand, influences its neighbors since the neighbors tend to have far fewer connections.
More detail at Leverage Centrality

Value

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

Author(s)

Mahdi Jalili m_jalili@farabi.tums.ac.ir

References

Joyce, Karen E., et al. "A new measure of centrality for brain networks." PLoS One 5.8 (2010): e12200.

Examples

1
2
g <- graph(c(1,2,2,3,3,4,4,2))
leverage(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] -0.5  0.3 -0.1 -0.1

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