centrality_residual_closeness: Residual Closeness Centrality

View source: R/centrality.R

centrality_residual_closenessR Documentation

Residual Closeness Centrality

Description

Sum of 1/2^d for all nodes, including self. Robust to disconnected graphs.

Usage

centrality_residual_closeness(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 residual closeness values.

See Also

centrality for computing multiple measures at once, centrality_dangalchev (alias).

Examples

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

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