Learn R Programming

NetworkToolbox (version 1.1.2)

gateway: Gateway Coefficient

Description

Computes the gateway coefficient for each node. The gateway coefficient measures a node's connections between its community and other communities. Nodes that are solely responsible for inter-community connectivity will have higher gateway coefficient values. Positive and negative signed weights for gateway coefficients are computed separately.

Usage

gateway(A, factors = c("walktrap", "louvain"), cent = c("strength",
  "betweenness"))

Arguments

A

Network adjacency matrix

factors

A vector of corresponding to each item's factor. Defaults to "walktrap" for the walktrap community detection algorithm. Set to "louvain" for the louvain community detection algorithm. Can also be set to user-specified factors (see examples)

cent

Centrality to community gateway coefficient. Defaults to "strength". Set to "betweenness" to use the betweenness centrality

Value

Returns a list of overall (signs not considered; overall), negative (negative), and positive (positive) gateway coefficients

References

Rubinov, M., & Sporns, O. (2010). Complex network measures of brain connectivity: Uses and interpretations. Neuroimage, 52(3), 1059-1069.

Vargas, E. R., & Wahl, L. M. (2014). The gateway coefficient: A novel metric for identifying critical connections in modular networks. The European Physical Journal B, 87(161), 1-10.

Examples

Run this code
# NOT RUN {
#theoretical factors
factors <- c(rep(1,8), rep(2,8), rep(3,8), rep(4,8), rep(5,8), rep(6,8))

A <- TMFG(neoOpen)$A

gw <- gateway(A, factors = factors)

#walktrap factors
wgw <- gateway(A, factors = "walktrap")
# }

Run the code above in your browser using DataLab