Description Usage Arguments Details Value References See Also Examples
Calculates the multiplex degree centrality coefficients of the nodes (possibly selected by indexNode
argument) of the multiplex network, defined by De Domenico et al. (see References for further information).
1 | degreeCentrality.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 multiplex degree centrality coefficients. |
The single index referred to a generic node v is defined as its degree on the projected monoplex network, whose adjacency matrix is obtained as a sum of all the (intra)layer adjacency matrices (i.e., the aggregated overlapping multiplex obtainable with aggregated.overlapping.multiplex
) and the interlayer adjacency matrices.
A numerical vector
with all the multiplex degree centrality index for the nodes of the network (eventually selected with indexNode
argument).
De Domenico et al (2014). Mathematical formulation of multilayer networks. Phys. Rev. X 3, 041022.
create.multiplex
, aggregatedOverlapping.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 25 26 | # 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 degree centrality coefficient of the multiplex network:
degreeCentrality.multiplex(mplexObj)
# It could be useful to calculate this coefficient only on some selected nodes of the network.
# It can be done using the 'indexNode' argument and selecting the appropriate ID of the nodes:
degreeCentrality.multiplex(mplexObj,
indexNode = sample(1:length(nodes.multiplex(mplexObj)), 10)
)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.