Skip to contents

Shannon entropy of the edge weight distribution per node. Measures how evenly a node distributes its connections.

Usage

centrality_diversity(x, ...)

Arguments

x

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

...

Additional arguments passed to centrality.

Value

Named numeric vector of diversity centrality values.

See also

centrality for computing multiple measures at once.

Examples

mat <- matrix(c(0, .5, .3, .5, 0, .8, .3, .8, 0), 3, 3)
rownames(mat) <- colnames(mat) <- c("A", "B", "C")
centrality_diversity(mat)
#>         A         B         C 
#> 0.9544340 0.9612366 0.8453509