compute.adjacency.matrix: Computes the adjacency matrix of a multiplex network

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/RWRandMatrices.R

Description

compute.adjacency.matrix is a function to compute the adjacency matrix of a multiplex network provided as a Multiplex object.

Usage

1
compute.adjacency.matrix(x,delta = 0.5)

Arguments

x

A Multiplex object describing a multiplex network generated by the function create.multiplex.

delta

A numeric value between 0 and 1. It sets the probability of performing inter-layer versus intra-layer transitions. It is set by default to 0.5. See more details below.

Details

The parameter delta sets the probability to change between layers at the next step. If delta = 0, the particle will always remain in the same layer after a non-restart iteration. On the other hand, if delta = 1, the particle will always change between layers, therefore not following the specific edges of each layer.

Value

A square sparse adjacency matrix created with the Matrix package.

Author(s)

Alberto Valdeolivas Urbelz alvaldeolivas@gmail.com

See Also

create.multiplex,normalize.multiplex.adjacency, compute.transition.matrix

Examples

1
2
3
4
m1 <- igraph::graph(c(1,2,1,3,2,3), directed = FALSE)
m2 <- igraph::graph(c(1,3,2,3,3,4,1,4), directed = FALSE)
multiObject <- create.multiplex(list(m1=m1,m2=m2))
compute.adjacency.matrix(multiObject)

alberto-valdeolivas/RandomWalkRestartMH documentation built on Sept. 7, 2020, 2:19 p.m.