Return the closed triangles in single layers, aggregate and multilayer network, but working directly with tensors

GetMultiplexTriads(SupraAdjacencyMatrix, Layers, Nodes)

Arguments

SupraAdjacencyMatrix

the supra-adajcency sparse matrix

Layers

scalar, number of layers

Nodes

scalar, number of nodes

Value

A dataframe containing the closed triangles in single layers, aggregate and multilayer network

References

De Domenico, M., Set al. (2013). Mathematical formulation of multilayer networks. Physical Review X, 3(4), 041022. doi 10.1103/PhysRevX.3.041022

Cozzo, E.,Kivela, M., De Domenico, M., et al, New J. of Phys. 17, 073029 (2015) doi 10.1088/1367-2630/17/7/073029