C2Global.multiplex: C2 global clustering coefficients for multiplex networks

Description Usage Arguments Details Value Warnings References See Also Examples

Description

Computes Battiston et al. (2014)'s C2 global clustering coefficient of a multiplex network.

Usage

1
C2Global.multiplex(obj, indexLayer = 1:length(layers.multiplex(obj)))

Arguments

obj

An object of class multiplex.

indexLayer

A vector of IDs (or labels) for the selected (intra)layers on which to calculate the C2 global clustering coefficient.

Details

Instead of the classical definition of transitivity and local clustering coefficient, this index takes into consideration all the possible tradics structures that takes form even considering interlayers relationships. The index is defined as the ratio between the number of 3-triangles of the multiplex network, and (L - 2) times the number of 2-triads of the multiplex network, where L is the number of layers.

Function use permutations() function from gtools package. More informations available at https://cran.r-project.org/web/packages/gtools/index.html.

Value

A vector of length one and value corresponding to the C2 global clustering coefficient.

Warnings

Note that the C2 global clustering coefficient can be defined for a multiplex network with, at least, 3 (intra)layers. So, if indexLayer argument has length < 3, the function produces an error and halts.

References

Battiston et al. (2014) Structural measures for multiplex networks. Phys. Rev. E 89, 032804.

See Also

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

# Computing the so-called C2 global clustering index for the nodes of the multiplex network:

C2Global.multiplex(mplexObj)

# It can be useful to select just some layers on which to calculate the
# C2 global clustering index. This can be easily done with 'indexLayer' argument:

C2Global.multiplex(mplexObj, indexLayer = c(1, 2, 3))

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