Description Usage Arguments Details Value References See Also Examples
This function creates the so-called supra-adjacency matrix
1 |
obj |
An object of class |
The supra-adjacency matrix visualize all the interlayer and intralayer adjacency matrices of the multiplex network into a single large matrix. It is 'filled' with all the intralayer adjacency matrices on its diagonal, and with all the interlayer adjacency matrices elsewhere.
This matrix is obtained contracting the 4th order tensor (rapresenting De Domenico's et al. mathematical formulation in References) into a 2nd order N*L x N*L tensor (matrix
), given N the number of nodes and L the number of (intra)layers of the network. The supra-adjacency matrix is a useful method for 'visualizing' all the multiplex network into a 2-dimensional workframe (a matrix
).
A N*L x N*L matrix
, composed as described in 'Details', where N is the number of nodes and L the number of layers of the network.
De Domenico et al (2014). Mathematical formulation of multilayer networks. Phys. Rev. X 3, 041022.
Kivela, M. et al (2014). Multilayer Networks. J. Complex Network. 2(3): 203-271.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | # Loading Aarhus CS Department dataset.
data(aarhus_mplex)
# Creating the multiplex object using the dataset loaded into aarhus_mplex object.
mplexObj <- create.multiplex(nodes = aarhus_mplex$nodes,
layersNames = aarhus_mplex$layerNames,
layer1 = aarhus_mplex$L1,
type1 = "undirected",
aarhus_mplex$L2,
aarhus_mplex$L3,
aarhus_mplex$L4,
aarhus_mplex$L5
)
# Creating the supra-adjacency matrix of the multiplex network:
supraAdjacency.multiplex(mplexObj)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.