Description Usage Arguments Value Warning References See Also Examples
The function allows a user-friendly method for extracting the interlayer adjacency between two different layers in the multiplex network.
1 | interlayer.multiplex(obj, level1, level2)
|
obj |
An object of class |
level1 |
The ID (or name) of the first layer. |
level2 |
The ID (or name) of the second layer. |
A N*N matrix
with the interlayer (adjacency) matrix between the selected levels, where N is the number of nodes of the multiplex network.
If arguments level1
= level2
, the function can't perform. In fact, the interlayer matrix between the same level is called intralayer matrix and it can be extracted with the adjacency.multiplex
function.
De Domenico et al (2014). Mathematical formulation of multilayer networks. Phys. Rev. X 3, 041022.
Kivela, M. et al (2014). Multilayer Networks. J. Complex Network. 2(3): 203-271.
create.multiplex
, adjacency.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 27 | # 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
)
# Extracting the interlayer adjacency matrix referred to the interlayer
# relationship between (for example) layer 1 and layer 4.
# Note that all the entries outside the diagonal are 0s (that's consistent
# with the definition of multiplex network) and that not all the entries of the diagonal are 1s.
interlayer.multiplex(mplexObj, level1 = 1, level2 = 4)
diag(interlayer.multiplex(mplexObj, level1 = 1, level2 = 4))
# Example of warning if 'level1' and 'level2' are equals (remove # for running):
# interlayer.multiplex(mplexObj, 3, 3)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.