powered by
Sum of edge weights connected to each node. For directed networks, centrality_instrength sums incoming weights and centrality_outstrength sums outgoing weights.
centrality_instrength
centrality_outstrength
centrality_strength(x, mode = "all", ...)centrality_instrength(x, ...)centrality_outstrength(x, ...)
centrality_instrength(x, ...)
centrality_outstrength(x, ...)
Named numeric vector of strength values.
Network input (matrix, igraph, network, cograph_network, tna object).
For directed networks: "all" (default), "in", or "out".
"all"
"in"
"out"
Additional arguments passed to centrality (e.g., normalized, weighted, directed).
centrality
normalized
weighted
directed
centrality for computing multiple measures at once, centrality_degree for the unweighted version.
centrality_degree
mat <- matrix(c(0, .5, .3, .5, 0, .8, .3, .8, 0), 3, 3) rownames(mat) <- colnames(mat) <- c("A", "B", "C") centrality_strength(mat)
Run the code above in your browser using DataLab