compute.adjacency.matrix {RandomWalkRestartMH} | R Documentation

## Computes the adjacency matrix of a multiplex network

### Description

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

### Usage

    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

    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(m1,m2)
    compute.adjacency.matrix(multiObject)

[Package RandomWalkRestartMH version 1.0.0 Index]