centrality_diversity: Diversity Centrality

View source: R/centrality.R

centrality_diversityR Documentation

Diversity Centrality

Description

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)

cograph documentation built on May 31, 2026, 5:06 p.m.