centrality_centroid: Centroid Value

View source: R/centrality.R

centrality_centroidR Documentation

Centroid Value

Description

Minimum difference between own and competitor's closer-node count. Measures how much a node is at the center of the graph.

Usage

centrality_centroid(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 centroid values.

See Also

centrality for computing multiple measures at once.

Examples

adj <- matrix(c(0, 1, 0, 0, 1, 0, 1, 0, 0, 1, 0, 1, 0, 0, 1, 0), 4, 4)
rownames(adj) <- colnames(adj) <- c("A", "B", "C", "D")
centrality_centroid(adj)

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