Description Usage Arguments Details Value References See Also Examples
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.
1 | localClustering.multiplex(obj, indexNode = 1:length(nodes.multiplex(obj)))
|
obj |
An object of class |
indexNode |
A vector of IDs (or labels) for the selected nodes on which to calculate the local clustering coefficient. |
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.
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.
Wassermann and Faust (1994), Social network analysis. Cambridge University Press.
create.multiplex
, transitivity
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
)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.