centrality_gateway: Gateway Coefficient

View source: R/centrality.R

centrality_gatewayR Documentation

Gateway Coefficient

Description

Inter-community brokerage weighted by centrality. Combines participation with degree information. Requires community membership.

Usage

centrality_gateway(x, membership = NULL, mode = "all", ...)

Arguments

x

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

membership

Integer vector of community assignments (one per node).

mode

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

...

Additional arguments passed to centrality.

Value

Named numeric vector of gateway coefficient values (0-1).

See Also

centrality for computing multiple measures at once, centrality_participation for the simpler participation coefficient.

Examples

adj <- matrix(c(0,1,1,0,0, 1,0,1,0,0, 1,1,0,1,0, 0,0,1,0,1, 0,0,0,1,0), 5, 5)
rownames(adj) <- colnames(adj) <- LETTERS[1:5]
centrality_gateway(adj, membership = c(1, 1, 1, 2, 2))

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