Learn R Programming

NetworkToolbox (version 1.2.3)

centlist: List of Centrality Measures

Description

Computes centrality measures of the network

Usage

centlist(A, weighted = TRUE)

Arguments

A

An adjacency matrix of network data

weighted

Is the network weighted? Defaults to TRUE. Set to FALSE for unweighted list of centrality measures

Value

Returns a list containing:

BC

betweenness centrality

LC

closeness centrality

k

degree (weighted = FALSE)

Str

strength (weighted = TRUE)

EC

eigenvector centrality

lev

leverage centrality

HC

hybrid centrality (weighted = TRUE)

References

Pozzi, F., Di Matteo, T., & Aste, T. (2013). Spread of risk across financial markets: Better to invest in the peripheries. Scientific Reports, 3(1655), 1-7. doi: 10.1038/srep01665

Rubinov, M., & Sporns, O. (2010). Complex network measures of brain connectivity: Uses and interpretations. Neuroimage, 52, 1059-1069. doi: 10.1016/j.neuroimage.2009.10.003

Examples

Run this code
# NOT RUN {
A <- TMFG(neoOpen)$A

#Weighted
centW <- centlist(A, weighted = TRUE)

#Unweighted
centU <- centlist(A, weighted = FALSE)

# }

Run the code above in your browser using DataLab