adjacency.multiplex: Extraction of the adjacency matrices of the selected...

Description Usage Arguments Value See Also Examples

Description

Extracts the adjacency matrices of selected layers in the multiplex network.

Usage

1
adjacency.multiplex(obj, index = 1:length(obj$adjacency))

Arguments

obj

An object of class multiplex.

index

A vector of layer positions whose adjacency has to be computed. Default is all the layers.

Value

A list having the adjacency matrices of the selected layers as components.

See Also

create.multiplex

Examples

 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")

Achab94/mplex documentation built on May 5, 2019, 11:46 a.m.