centralize.scores (scores, theoretical.max, normalized = TRUE)centralization.degree (graph, mode = c("all", "out", "in", "total"),
loops = TRUE, normalized = TRUE)
centralization.closeness (graph, mode = c("out", "in", "all", "total"),
normalized = TRUE)
centralization.betweenness (graph, directed = TRUE, nobigint = TRUE,
normalized = TRUE)
centralization.evcent (graph, directed = FALSE, scale = TRUE,
options = igraph.arpack.default, normalized = TRUE)
centralization.degree.tmax (graph = NULL, nodes = 0,
mode = c("all", "out", "in", "total"), loops = FALSE)
centralization.closeness.tmax (graph = NULL, nodes = 0,
mode = c("out", "in", "all", "total"))
centralization.betweenness.tmax (graph = NULL, nodes = 0,
directed = TRUE)
centralization.evcent.tmax (graph = NULL, nodes = 0,
directed = FALSE, scale = TRUE)
normalized
argument is set to TRUE
.NULL
, see the details below.mode
argument of
degree
and closeness
.betweenness
function.evcent
, the options for
the ARPACK eigensolver.centralize.scores
a real scalar. For centralization.degree
, centralization.closeness
and
centralization.betweenness
a named list with the following
components:
normalized
argument was
TRUE
, then the result was divided by this number.centralization.evcent
a named list with the following
components:evcent
for details.centralization.degree.tmax
,
centralization.closeness.tmax
,
centralization.betweenness.tmax
and
centralization.evcent.tmax
a real scalar.$$C(G)=\sum_v (\max_w c_w - c_v),$$ where $c_v$ is the centrality of vertex $v$.
The graph-level centrality score can be normalized by dividing by the maximum theoretical score for a graph with the same number of vertices, using the same parameters, e.g. directedness, whether we consider loop edges, etc.
For degree, closeness and betweenness the most centralized structure is some version of the star graph, in-star, out-star or undirected star.
For eigenvector centrality the most centralized structure is the graph with a single edge (and potentially many isolates).
centralize.scores
using the general centralization formula to
calculate a graph-level score from vertex-level scores.
centralization.degree
, centralization.closeness
,
centralization.betweenness
calculate both the vertex-level and
the graph-level indices.
centralization.degree.tmax
,
centralization.closeness.tmax
,
centralization.betweenness.tmax
and
centralization.evcent.tmax
return the theoretical maximum
scores. They operate in two modes. In the first mode, a graph is given
and the maximum score is calculated based on that. E.g. the number of
vertices and directedness is taken from this graph.
The other way to call these functions is to omit the
graph
argument, but explicitly specify the rest of the
arguments.
Wasserman, S., and Faust, K. (1994). Social Network Analysis: Methods and Applications. Cambridge University Press.
# A BA graph is quite centralized
g <- ba.game(1000, m=4)
centralization.degree(g)$centralization
centralization.closeness(g, mode="all")$centralization
centralization.evcent(g, directed=FALSE)$centralization
# The most centralized graph according to eigenvector centrality
g0 <- graph( c(2,1), n=10, dir=FALSE )
g1 <- graph.star(10, mode="undirected")
centralization.evcent(g0)$centralization
centralization.evcent(g1)$centralization
Run the code above in your browser using DataLab