centrality_closeness_vitality: Closeness Vitality

View source: R/centrality.R

centrality_closeness_vitalityR Documentation

Closeness Vitality

Description

Drop in the Wiener index when a node is removed. Higher values indicate more critical nodes for overall connectivity.

Usage

centrality_closeness_vitality(x, mode = "all", ...)

Arguments

x

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

mode

For directed networks: "all" (default), "in", or "out".

...

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

Value

Named numeric vector of closeness vitality values.

See Also

centrality for computing multiple measures at once.

Examples

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

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