create.multiplexNetwork.topResults {RandomWalkRestartMH}R Documentation

Creates a Network with the top results of the Random Walk with restart on a Multiplex Network

Description

create.multiplexNetwork.topResults is a function to create a network from the top results of the Random Walk with Restart on Multiplex networks algorithm (a RWRM_Results object).

Usage

create.multiplexNetwork.topResults(RWRM_Result_Object,
    MultiplexObject,k=25)

Arguments

RWRM_Result_Object

A RWRM_Results object generated by the function Random.Walk.Restart.Multiplex representing the results of the Random Ralk with restart on the multiplex network described in the following argument.

MultiplexObject

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

k

A numeric value between 1 and 200. It is the number of top ranked nodes to be included in the resulting multiplex network.

Value

An igraph object containing the top k ranked multiplex nodes in the Random Walk with Restart on a Multiplex network algorithm. We include all the possible types of interactions between pairs of nodes according to the different layers of the multiplex network.

Author(s)

Alberto Valdeolivas Urbelz alvaldeolivas@gmail.com

See Also

create.multiplex, Random.Walk.Restart.Multiplex isRWRM_Results, create.multiplexHetNetwork.topResults

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)
AdjMatrix <- compute.adjacency.matrix(multiObject)
AdjMatrixNorm <- normalize.multiplex.adjacency(AdjMatrix)
Seed <- c(1)
RWR_MultiResults <- 
    Random.Walk.Restart.Multiplex(AdjMatrixNorm, multiObject, Seed)
create.multiplexNetwork.topResults(RWR_MultiResults,multiObject)


[Package RandomWalkRestartMH version 1.4.0 Index]