totalDegree.multiplex: Total degrees of the multiplex network

Description Usage Arguments Value References See Also Examples

Description

This function calculates the total degrees (as a sum of the degrees on the single layers) of the multiplex network.

Usage

1
2
3
4
5
  totalDegree.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 total degree. 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 total degree. Default selects all the (intra)layers of the network.

verbose

Default is FALSE. If TRUE, the function prints on console the name of the selected layers on which the sum is evaluated.

Value

A numeric vector: each cell contains the total degree for a specific node of the multiplex network.

References

Wassermann and Faust (1994), Social network analysis. Cambridge University Press.

See Also

create.multiplex, degree.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
# 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 total degrees for the 61 employees of the multiplex network:

totalDegree.multiplex(mplexObj)

# Calculating the total degrees for the first 10 employees. Note the 'verbose = TRUE'
# option that prints on console the names of the layers used (they can eventually be selected
# with the 'indexLayer' argument):

totalDegree.multiplex(mplexObj,
                      indexNode = 1:10,
                      verbose = TRUE
                      )

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