Centralization
returns the centralization GLI (graph-level index) for a given graph in dat
, given a (node) centrality measure FUN
. Centralization
follows Freeman's (1979) generalized definition of network centralization, and can be used with any properly defined centrality measure. This measure must be implemented separately; see the references below for examples.centralization(dat, FUN, g=1, mode="digraph", diag=FALSE,
normalize=TRUE, ...)
FUN
is well-behaved, this can be an n x n matrix if only one graph is involved.g
=1.mode
is set to "digraph" by default.diag
is FALSE
by default.FUN
to return this value when called with tmaxdev==TRUE
.) By default, tmaxdev=
FUN
.$$C^*(G) = \sum_{i \in V(G)} \left|\max_{v \in V(G)}(C(v))-C(i)\right|$$
Or, equivalently, the absolute deviation from the maximum of C on G. Generally, this value is normalized by the theoretical maximum centralization score, conditional on $|V(G)|$. (Here, this functionality is activated by normalize
.) Centralization
depends on the function specified by FUN
to return the vector of nodal centralities when called with dat
and g
, and to return the theoretical maximum value when called with the above and tmaxdev==TRUE
. For an example of such a centrality routine, see degree
.
Wasserman, S., and Faust, K. (1994). Social Network Analysis: Methods and Applications. Cambridge: Cambridge University Press.
cugtest
#Generate some random graphs
dat<-rgraph(5,10)
#How centralized is the third one on indegree?
centralization(dat,g=3,degree,cmode="indegree")
#How about on total (Freeman) degree?
centralization(dat,g=3,degree)
Run the code above in your browser using DataLab