| centrality_pagerank | R Documentation |
Random walk centrality measuring node importance. Simulates a random
walker that follows edges with probability damping and jumps to a
random node with probability 1 - damping.
centrality_pagerank(x, damping = 0.85, personalized = NULL, ...)
x |
Network input (matrix, igraph, network, cograph_network, tna object). |
damping |
Damping factor (probability of following an edge). Default 0.85. |
personalized |
Named numeric vector for personalized PageRank.
Values should sum to 1. Default |
... |
Additional arguments passed to |
Named numeric vector of PageRank values.
centrality for computing multiple measures at once,
centrality_eigenvector for a related measure.
adj <- matrix(c(0, 1, 1, 1, 0, 1, 1, 1, 0), 3, 3)
rownames(adj) <- colnames(adj) <- c("A", "B", "C")
centrality_pagerank(adj)
centrality_pagerank(adj, damping = 0.9)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.