# compute.adjacency.matrix: Computes the adjacency matrix of a multiplex network In alberto-valdeolivas/RandomWalkRestartMH: Random walk with restart on multiplex and heterogeneous Networks

## 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

```create.multiplex,normalize.multiplex.adjacency, compute.transition.matrix```
 ```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) ```