Description Usage Arguments Value Author(s) See Also Examples
View source: R/InduceNetworks.R
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).
1 2 | 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
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 <- create.multiplex(list(m1=m1,m2=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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.