| centrality_generalized_closeness | R Documentation |
Sum of alpha^d over all nodes. Generalization of decay centrality matching tidygraph's implementation.
centrality_generalized_closeness(x, mode = "all", decay_parameter = 0.5, ...)
x |
Network input (matrix, igraph, network, cograph_network, tna object). |
mode |
For directed networks: |
decay_parameter |
Numeric between 0 and 1 (the alpha parameter). Default 0.5. |
... |
Additional arguments passed to |
Named numeric vector of generalized closeness values.
centrality for computing multiple measures at once,
centrality_decay (equivalent formulation).
adj <- matrix(c(0, 1, 0, 1, 0, 1, 0, 1, 0), 3, 3)
rownames(adj) <- colnames(adj) <- c("A", "B", "C")
centrality_generalized_closeness(adj)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.