supraAdjacency.multiplex: Supra-adjacency matrix of the multiplex network

Description Usage Arguments Details Value References See Also Examples

Description

This function creates the so-called supra-adjacency matrix

Usage

1

Arguments

obj

An object of class multiplex.

Details

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).

Value

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.

References

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.

See Also

create.multiplex

Examples

 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)

Achab94/mplex documentation built on May 5, 2019, 11:46 a.m.