powered by
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 )
supra( layers, omega = 1, coupling = c("diagonal", "full", "custom"), interlayer_matrices = NULL )
Supra-adjacency matrix of dimension (NL) x (NL)
List of adjacency matrices (same dimensions)
Inter-layer coupling coefficient (scalar or L x L matrix)
Coupling type: "diagonal", "full", or "custom"
For coupling="custom", list of inter-layer matrices
# layers <- list(L1 = mat1, L2 = mat2) # S <- supra_adjacency(layers, omega = 0.5) # dim(S) # (2*n) x (2*n)
Run the code above in your browser using DataLab