
Centralize a graph according to the degrees of vertices
Source:R/centralization.R
centralization.degree.Rdcentralization.degree() was renamed to centr_degree() to create a more
consistent API.
Usage
centralization.degree(
graph,
mode = c("all", "out", "in", "total"),
loops = TRUE,
normalized = TRUE
)Arguments
- graph
The input graph.
- mode
This is the same as the
modeargument ofdegree().- loops
Logical scalar, whether to consider loops edges when calculating the degree.
- normalized
Logical scalar. Whether to normalize the graph level centrality score by dividing by the theoretical maximum.