powered by
Sum of scaled degrees of a node and its neighbors, measuring the node's potential for spreading information through the network.
centrality_diffusion(x, mode = "all", lambda = 1, ...)
Named numeric vector of diffusion centrality values.
Network input (matrix, igraph, network, cograph_network, tna object).
For directed networks: "all" (default), "in", or "out".
"all"
"in"
"out"
Scaling factor for neighbor contributions. Default 1.
Additional arguments passed to centrality (e.g., weighted, directed).
centrality
weighted
directed
centrality for computing multiple measures at once.
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)
Run the code above in your browser using DataLab