Description Usage Arguments Value Author(s) References Examples
Calculate multiplex PageRank following defination by Halu et al.
1 | multiplex_page_rank(graph, ..., beta = 1, gamma = 1, damping = 0.85)
|
graph |
(igraph) The base graph with pagerank and name as vertex attributes. |
... |
(igraph) Supporter graphs with pagerank and name as vertex attributes. |
beta |
(numeric) Parameters for adjusting supporter graph PageRank values. For the same nodes, PageRank values from different supporter graphs will first be multiplicated. The products will then be exponentiate by beta and gamma, as outgoing edge weights and personalizations of the base graph. Four special multiplex PageRank forms are defined by varying (beta, gamma), including additive (0, 1), multiplicative (1, 0), combined (1, 1) and neutral (0, 0). |
gamma |
(numeric) Parameters for adjusting supporter graph PageRank values. For the same nodes, PageRank values from different supporter graphs will first be multiplicated. The products will then be exponentiate by beta and gamma, as outgoing edge weights and personalizations of the base graph. Four special multiplex PageRank forms are defined by varying (beta, gamma), including additive (0, 1), multiplicative (1, 0), combined (1, 1) and neutral (0, 0). |
damping |
(numeric) Damping factor. |
(numeric) Multiplex PageRank values.
DING, HONGXU (hd2326@columbia.edu)
Halu, Arda, et al. "Multiplex pagerank." PloS one 8.10 (2013).
1 2 3 4 5 6 7 8 9 10 | library(igraph)
set.seed(1)
graph1 <- igraph::erdos.renyi.game(100, 0.01, directed = TRUE)
igraph::V(graph1)$name <- 1:100
igraph::V(graph1)$pagerank <- igraph::page_rank(graph1)$vector
set.seed(2)
graph2 <- igraph::erdos.renyi.game(100, 0.01, directed = TRUE)
igraph::V(graph2)$name <- 1:100
igraph::V(graph2)$pagerank <- igraph::page_rank(graph2)$vector
multiplex_page_rank(graph1, graph2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.