Description Usage Arguments Details Value Warnings References See Also Examples
Computes Battiston et al.(2014)'s C1 global clustering coefficient of a multiplex network.
1 | C1Global.multiplex(obj, indexLayer = 1:length(layers.multiplex(obj)))
|
obj |
An object of class |
indexLayer |
A vector of IDs (or labels) for the selected (intra)layers on which to calculate the C1 global clustering coefficient. |
Instead of the classical definition of transitivity and local clustering coefficient, this index accounts for all the possible tradic structures that take form considering interlayers relationships. The index is defined as the ratio between the number of 2-triangles of the multiplex network, and (L - 1) times the number of 1-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.
A vector of length one and value corresponding to the C1 global clustering coefficient.
Note that the C1 global clustering coefficient can be defined for a multiplex network with, at least, 2 (intra)layers. So, if indexLayer
argument has length 1, the function produces an error and halts.
Battiston et al. (2014) Structural measures for multiplex networks. Phys. Rev. E 89, 032804.
create.multiplex
, c1Local.multiplex
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 C1 global clustering index for the nodes of the multiplex network:
C1Global.multiplex(mplexObj)
# It can be useful to select just some layers on which to calculate the
# C1 global clustering index. This can be easily done with 'indexLayer' argument:
C1Global.multiplex(mplexObj, indexLayer = c(2, 4, 5))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.