supra_interlayer: Extract Inter-Layer Block

View source: R/cluster-metrics.R

supra_interlayerR Documentation

Extract Inter-Layer Block

Description

Extract Inter-Layer Block

Usage

supra_interlayer(x, from, to)

extract_interlayer(x, from, to)

Arguments

x

Supra-adjacency matrix from supra_adjacency

from

Integer index of the source layer

to

Integer index of the target layer

Value

The N x N inter-layer block, with the supra-matrix labels ("<layer>_<node>") as dimnames. An index outside 1:L raises an error.

Examples

layers <- list(forward = regulation_net, backward = t(regulation_net))
supra <- supra_adjacency(layers, omega = 0.5)
supra_interlayer(supra, from = 1, to = 2)

cograph documentation built on Nov. 19, 2026, 5:07 p.m.