Description Usage Arguments Value Note References See Also Examples
Creates the so-called aggregated topological matrix of the multiplex network (see References for further information). This matrix is mostly used to see if one tie exists between two different nodes ( selected possibly by the indexNode
argument) in at least one (intra)layer of the multiplex network (selected possibly by indexLayer
argument).
1 2 3 4 | aggregatedTopological.multiplex(obj,
indexNode = 1:length(nodes.multiplex(obj)),
indexLayer = 1:length(layers.multiplex(obj)),
verbose = FALSE)
|
obj |
An object of class |
indexNode |
A vector of IDs (or labels) for the selected nodes on which to calculate the aggregated topological matrix. 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 aggregated topological matrix. Default selects all the (intra)layers of the network. |
verbose |
Default is |
A N x N matrix
, the so-called aggregated topological matrix, where N is the number of nodes of the network.
This function could also be used to dichotomize a weighted adjacency matrix referred to a particular layer with weighted relationship: select the interested layer with its ID in the indexLayer argument.
Battiston et al. (2014) Structural measures for multiplex networks. Phys. Rev. E 89, 032804.
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 29 30 | # 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
)
# Creating the aggregated topological matrix of the multiplex network:
aggregatedTopological.multiplex(mplexObj)
# Creating the aggregated topological matrix, selecting some nodes (employees) and
# 3 layers (relationships) between the 5 of the multiplex network.
# The command also prints on console (with option 'verbose = TRUE') the name of the layers
# used (and selected) for the construction of the aggregated topological matrix:
aggregatedTopological.multiplex(mplexObj,
indexNode = 1:10,
indexLayer = c(1, 3, 5),
verbose = TRUE
)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.