compute.transition.matrix: Computes the transition matrix of a multiplex and...

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

View source: R/RWRandMatrices.R

Description

compute.transition.matrix is a function to compute the transition matrix of a multiplex heterogeneous network provided as a MultiplexHet object.

Usage

1
compute.transition.matrix(x,lambda = 0.5, delta1=0.5, delta2=0.5)

Arguments

x

A MultiplexHet object describing a multiplex and heterogeneous network generated by the function create.multiplexHet.

lambda

A numeric value between 0 and 1. It sets the probability of jumping within a network or change to the other network of the heterogeneous system. It is set by default to 0.5. See more details below.

delta1

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

delta2

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

Details

We clarify the role of the different parameters in this point:

Value

A square sparse transition matrix created with the Matrix package. It is the transition matrix for the Random Walk with Restart on Multiplex and Heterogeneous networks algorithm.

Author(s)

Alberto Valdeolivas Urbelz alvaldeolivas@gmail.com

See Also

create.multiplexHet, compute.adjacency.matrix

Examples

1
2
3
4
5
6
7
8
9
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_1 <- create.multiplex(list(m1=m1,m2=m2))
h1 <- igraph::graph(c("A","C","B","E","E","D","E","C"), directed = FALSE)
bipartite_relations <- data.frame(m=c(1,3),h=c("A","E"))
multiObject_2 <- create.multiplex(list(h1=h1))
multiHetObject <- create.multiplexHet(multiObject_1, multiObject_2,
    bipartite_relations)
compute.transition.matrix(multiHetObject)

alberto-valdeolivas/RandomWalkRestartMH documentation built on Aug. 12, 2021, 8:49 p.m.