centrality_betweenness: Betweenness Centrality

View source: R/centrality.R

centrality_betweennessR Documentation

Betweenness Centrality

Description

Fraction of shortest paths passing through each node. Nodes with high betweenness act as bridges connecting different parts of the network.

Usage

centrality_betweenness(x, ...)

Arguments

x

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

...

Additional arguments passed to centrality (e.g., normalized, weighted, directed, cutoff, invert_weights).

Value

Named numeric vector of betweenness values.

See Also

centrality for computing multiple measures at once, centrality_load for a related measure.

Examples

adj <- matrix(c(0, 1, 1, 1, 0, 1, 1, 1, 0), 3, 3)
rownames(adj) <- colnames(adj) <- c("A", "B", "C")
centrality_betweenness(adj)

cograph documentation built on April 1, 2026, 1:07 a.m.