Build supra-adjacency matrix from edge-colored matrices

BuildSupraAdjacencyMatrixFromEdgeColoredMatrices(
  NodesTensor,
  LayerTensor,
  Layers,
  Nodes
)

Arguments

NodesTensor

list of adjacency matrices, expected to be aligned (a node hassame index in any layer)

LayerTensor

matrix

Layers

scalar, number of layers

Nodes

scalar, number of nodes

Value

a list of matrices. Let us call AdjMatrix the output of the function, AdjMatrix (that here would play the role of NodesTensor) is vectorlist with Layers + 1 entries. Use AdjMatrix[1:Layers] to obtain the expected result.