lobby {centiserve}R Documentation

Find the lobby index (centrality)

Description

The l-index or lobby index of a node x is the largest integer k such that x has at least k neighbors with a degree of at least k.

Usage

lobby(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

For more detail at Lobby Index

Value

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

Author(s)

Mahdi Jalili m_jalili@farabi.tums.ac.ir

References

Korn, A., A. Schubert, and A. Telcs. "Lobby index in networks." Physica A: Statistical Mechanics and its Applications 388.11 (2009): 2221-2226.

Examples

g <- random.graph.game(20, 3/10)
lobby(g)

[Package centiserve version 1.0.0 Index]