create.multiplexNetwork.topResults {RandomWalkRestartMH} | R Documentation |
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).
create.multiplexNetwork.topResults(RWRM_Result_Object, MultiplexObject,k=25)
RWRM_Result_Object |
A |
MultiplexObject |
A |
k |
A numeric value between 1 and 200. It is the number of top ranked nodes to be included in the resulting multiplex network. |
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.
Alberto Valdeolivas Urbelz alvaldeolivas@gmail.com
create.multiplex, Random.Walk.Restart.Multiplex
isRWRM_Results, create.multiplexHetNetwork.topResults
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)