powered by
Sum of delta^d over all nodes, where d is the shortest path distance. Nodes near many others get higher scores. The decay_parameter controls the distance penalty.
decay_parameter
centrality_decay(x, mode = "all", decay_parameter = 0.5, ...)
Named numeric vector of decay centrality values.
Network input (matrix, igraph, network, cograph_network, tna object).
For directed networks: "all" (default), "in", or "out".
"all"
"in"
"out"
Numeric between 0 and 1. Default 0.5.
Additional arguments passed to centrality.
centrality
centrality for computing multiple measures at once.
adj <- matrix(c(0, 1, 0, 1, 0, 1, 0, 1, 0), 3, 3) rownames(adj) <- colnames(adj) <- c("A", "B", "C") centrality_decay(adj, decay_parameter = 0.5)
Run the code above in your browser using DataLab