Description Usage Arguments Value See Also Examples
Extracts the adjacency matrices of selected layers in the multiplex network.
1 | adjacency.multiplex(obj, index = 1:length(obj$adjacency))
|
obj |
An object of class multiplex. |
index |
A vector of layer positions whose adjacency has to be computed. Default is all the layers. |
A list having the adjacency matrices of the selected layers as components.
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 | # 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 a list of the adjacency matrices of the layers (relationships):
adjacency.multiplex(mplexObj)
# Adjacency matrices can be extracted even for some specific layers (for example,
# the first), selected with the 'index' argument:
adjacency.multiplex(mplexObj, index = 1)
# or, easily, referring to their names:
adjacency.multiplex(mplexObj, index = "lunch")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.