View source: R/centrality-extended.R
| centralization | R Documentation |
Computes Freeman's centralization for degree, betweenness, closeness, or eigenvector centrality.
centralization(
x,
measure = c("degree", "betweenness", "closeness", "eigenvector"),
directed = NULL,
mode = "all",
...
)
x |
Network input |
measure |
One of "degree", "betweenness", "closeness", "eigenvector" |
directed |
Logical or NULL |
mode |
"all", "in", or "out" |
... |
Additional arguments passed to to_igraph() |
Numeric scalar in [0, 1]
star <- matrix(0, 5, 5)
star[1, 2:5] <- 1; star[2:5, 1] <- 1
cograph::centralization(star, "degree")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.