Learn R Programming

cograph (version 2.0.0)

supra_adjacency: Supra-Adjacency Matrix

Description

Builds the supra-adjacency matrix for multilayer networks. Diagonal blocks = intra-layer, off-diagonal = inter-layer.

Usage

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 )

Value

Supra-adjacency matrix of dimension (NL) x (NL)

Arguments

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

Examples

Run this code
# 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