Learn R Programming

brainGraph (version 3.1.0)

s_core: Calculate the s-core of a network

Description

Calculates the s-core decomposition of a network. This is analogous to the k-core decomposition, but takes into account the strength of vertices (i.e., in weighted networks). If an unweighted network is supplied, then the output of the function coreness is returned.

Usage

s_core(g, W = NULL)

Value

Integer vector of the vertices' s-core membership

Arguments

g

An igraph graph object

W

Numeric matrix of edge weights (default: NULL)

Author

Christopher G. Watson, cgwatson@bu.edu

Details

The s-core consists of all vertices \(i\) with \(s_i > s\), where \(s\) is some threshold value. The \(s_0\) core is the entire network, and the threshold value of the \(s_{n}\) core is $$s_{n-1} = min_i s_i$$ for all vertices \(i\) in the \(s_{n-1}\) core.

Note that in networks with a wide distribution of vertex strengths, in which there are almost as many unique values as there are vertices, then several separate cores will have a single vertex. See the reference provided below.

References

Eidsaa, M and Almaas, E. (2013) s-core network decomposition: a generalization of k-core analysis to weighted networks. Physical Review E, 88, 062819. tools:::Rd_expr_doi("10.1103/PhysRevE.88.062819")

See Also