Skip to contents

PageRank variant with a ground node connected to all nodes. Requires a directed graph.

Usage

centrality_leaderrank(x, ...)

Arguments

x

Network input (matrix, igraph, network, cograph_network, tna object). Must be directed.

...

Additional arguments passed to centrality.

Value

Named numeric vector of LeaderRank values.

See also

centrality for computing multiple measures at once, centrality_pagerank for standard PageRank.

Examples

adj <- matrix(c(0, 1, 0, 0, 0, 1, 1, 1, 0), 3, 3)
rownames(adj) <- colnames(adj) <- c("A", "B", "C")
centrality_leaderrank(adj)
#>         A         B         C 
#> 0.8522725 1.0227230 1.1250045