centrality_diffusion: Diffusion Centrality

View source: R/centrality.R

centrality_diffusionR Documentation

Diffusion Centrality

Description

Sum of scaled degrees of a node and its neighbors, measuring the node's potential for spreading information through the network.

Usage

centrality_diffusion(x, mode = "all", lambda = 1, ...)

Arguments

x

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

mode

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

lambda

Scaling factor for neighbor contributions. Default 1.

...

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

Value

Named numeric vector of diffusion centrality values.

See Also

centrality for computing multiple measures at once.

Examples

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

cograph documentation built on April 1, 2026, 1:07 a.m.