aggregatedOverlapping.multiplex: Overlapped adjacency matrix of the multiplex network

Description Usage Arguments Details Value References See Also Examples

Description

Creates the overlapped adjacency matrix

Usage

1
2
3
4
aggregatedOverlapping.multiplex(obj,
                                indexNode = 1:length(nodes.multiplex(obj)),
                                indexLayer = 1:length(layers.multiplex(obj)),
                                verbose = FALSE)

Arguments

obj

An object of class multiplex.

indexNode

A vector of IDs (or labels) for the selected nodes on which to calculate the overlapped adjacency matrix. Default selects all the nodes of the network.

indexLayer

A vector of IDs (or labels) for the selected (intra)layers on which to calculate the overlapped adjacency matrix. Default selects all the (intra)layers of the network.

verbose

Default is FALSE. If TRUE, the functions prints on console the names of the layers used to create the overlapped adjacency matrix.

Details

The adjacency matrix of the overlay monoplex network based on a specific multiplex network. It is mostly useful for detecting how many times two different nodes are linked each other on the (intra)layers of the multiplex network (eventually selected with the indexLayer argument), see References.

Value

A N x N matrix, the so-called overlapped adjacency matrix, where N is the number of nodes of the network. It is simply obtained summing all the adjacency matrices of the selected (intra)layers of the multiplex network.

References

De Domenico et al (2014). Mathematical formulation of multilayer networks. Phys. Rev. X 3, 041022.

See Also

create.multiplex

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# 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 overlapped adjacency matrix of the multiplex network:

aggregatedOverlapping.multiplex(mplexObj)

# Creating the overlapped adjacency matrix, casually selecting some nodes (employees) and
# 3 layers (relationships) between the 5 of the multiplex network.
# The command also prints on console (with option 'verbose = TRUE') the name of the layers
# used (and selected) for the construction of the aggregated topological matrix:

aggregatedOverlapping.multiplex(mplexObj,
                                indexNode = sample(1:length(nodes.multiplex(mplexObj)), 10),
                                indexLayer = c(1, 2, 3),
                                verbose = TRUE
                                )

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