degreeCentrality.multiplex: Multiplex degree centrality indexes of the multiplex network

Description Usage Arguments Details Value References See Also Examples

Description

Calculates the multiplex degree centrality coefficients of the nodes (possibly selected by indexNode argument) of the multiplex network, defined by De Domenico et al. (see References for further information).

Usage

1

Arguments

obj

An object of class multiplex.

indexNode

A vector of IDs (or labels) for the selected nodes on which to calculate the multiplex degree centrality coefficients.

Details

The single index referred to a generic node v is defined as its degree on the projected monoplex network, whose adjacency matrix is obtained as a sum of all the (intra)layer adjacency matrices (i.e., the aggregated overlapping multiplex obtainable with aggregated.overlapping.multiplex) and the interlayer adjacency matrices.

Value

A numerical vector with all the multiplex degree centrality index for the nodes of the network (eventually selected with indexNode argument).

References

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

See Also

create.multiplex, aggregatedOverlapping.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
# 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
                            )

# Calculating the degree centrality coefficient of the multiplex network:

degreeCentrality.multiplex(mplexObj)

# It could be useful to calculate this coefficient only on some selected nodes of the network.
# It can be done using the 'indexNode' argument and selecting the appropriate ID of the nodes:

degreeCentrality.multiplex(mplexObj,
                          indexNode = sample(1:length(nodes.multiplex(mplexObj)), 10)
                          )

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