Learn R Programming

cograph (version 2.0.0)

centrality_betweenness: 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, ...)

Value

Named numeric vector of betweenness values.

Arguments

x

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

...

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

See Also

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

Examples

Run this code
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)

Run the code above in your browser using DataLab