Description Usage Arguments Details Value Author(s) See Also Examples
View source: R/RWRandMatrices.R
compute.adjacency.matrix
is a function to compute the adjacency
matrix of a multiplex network provided as a Multiplex
object.
1 | compute.adjacency.matrix(x,delta = 0.5)
|
x |
A |
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. |
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.
A square sparse adjacency matrix created with the Matrix
package.
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(m1,m2)
compute.adjacency.matrix(multiObject)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.