get_k_stages_adjacency_tensor function

Computes a list of r-stage adjacency matrices.

Computes a list of r-stage adjacency matrices.

Computes a list of r-stage adjacency matrices, each matrix in the list inidicates whether or not nodes ii and jj are r-stage neighbours in the underlying network. Essentially [Sr]ij=1[\mathbf{S}_r]_{ij} = 1 if and only if d(i,j)=rd(i, j) = r

get_k_stages_adjacency_tensor(St_1, r)

Arguments

  • St_1: One-stage adjacency matrix (i.e., the adjacency matrix of the underlying network).
  • r: Maximum r-stage for which one wishes to compute the r-stage adjacency matrix.

Returns

List containing the adjacency matrices in ascending order.

  • {Sq}q=1q=r\{ \mathbf{S}_q \}_{q=1}^{q = r}: Each entry is the r-stage adjacency matrix at depth rr.

Author(s)

Daniel Salnikov and Guy Nason

References

Nason, G.P., Salnikov, D. and Cortina-Borja, M. (2023) New tools for network time series with an application to COVID-19 hospitalisations. https://arxiv.org/abs/2312.00530

Examples

# # Produce the r-stage adjacency tensors for the fiveNet network. # get_k_stages_adjacency_tensor(as.matrix(GNARtoigraph(fiveNet)), 3) #
  • Maintainer: Matt Nunes
  • License: GPL-2
  • Last published: 2024-10-02

Useful links