Learn R Programming

cograph (version 2.0.0)

centrality_power: Bonacich Power Centrality

Description

Measures influence based on connections to other influential nodes. The power parameter controls whether connections to well-connected nodes increase or decrease centrality.

Usage

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

Value

Named numeric vector of power centrality values.

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).

See Also

centrality for computing multiple measures at once, centrality_eigenvector 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_power(adj)

Run the code above in your browser using DataLab