localClustering.multiplex: Layers' local clustering index of the multiplex network

Description Usage Arguments Details Value References See Also Examples

Description

The function calculates the local clustering index (sometimes called transitivity measure, see References) of the nodes (eventually selected with indexNode argument) for each (intra)layer of the multiplex network.

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 local clustering coefficient.

Details

Local clustering index calculated layer by layer is a good measure for studying the transitivity of a certain node in a specific (intra)layer, but it doesn't take into consideration the triadic structures that take form considering the intralayer relationships (those between two same nodes belonging to different layers). In this case, c1Local.multiplex and c2Local.multiplex functions are indicated for a multiplex analysis of the network.

Value

A list of numerical vectors, each with the local clustering coefficients of the nodes (eventually selecte with indexNode argument) on a certain (intra)layer of the multiplex network.

References

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

See Also

create.multiplex, transitivity

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
# 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 local clustering index for the nodes of the multiplex network:

localClustering.multiplex(mplexObj)

# Nodes can be eventually selected using the 'indexNode' argument:

localClustering.multiplex(mplexObj,
                          indexNode = 1:10
                          )

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