View source: R/cluster-metrics.R
| supra_adjacency | R Documentation |
Builds the supra-adjacency matrix for multilayer networks. Diagonal blocks = intra-layer, off-diagonal = inter-layer.
supra_adjacency(
layers,
omega = 1,
coupling = c("diagonal", "full", "custom"),
interlayer_matrices = NULL
)
supra(
layers,
omega = 1,
coupling = c("diagonal", "full", "custom"),
interlayer_matrices = NULL
)
layers |
List of adjacency matrices (same dimensions) |
omega |
Inter-layer coupling coefficient (scalar or L x L matrix) |
coupling |
Coupling type: "diagonal", "full", or "custom" |
interlayer_matrices |
For coupling="custom", list of inter-layer matrices |
Supra-adjacency matrix of dimension (NL) x (NL)
# layers <- list(L1 = mat1, L2 = mat2)
# S <- supra_adjacency(layers, omega = 0.5)
# dim(S) # (2*n) x (2*n)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.