Barycenter centrality is the reciprocal of the total shortest-path distance from a node to the nodes it reaches: $$BC(v) = \frac{1}{\sum_{w \ne v} d(v, w)}.$$ Unreachable nodes are left out of the sum.
Arguments
- x
Network input accepted by
centrality.- mode
For directed networks:
"all"(default),"out"or"in".- ...
Further arguments to
centrality. The measure usesweighted(defaultTRUE),invert_weights(defaultNULL, which isTRUEfor tna input),alpha(inversion exponent, default 1),cutoff(largest path length considered, default -1 for no limit) andnormalized(divide by the maximum, defaultFALSE).
Details
Edge weights are read as path lengths. invert_weights = TRUE uses
\(1/w^\alpha\) as the length, and weighted = FALSE
counts hops. mode sets the direction of the paths. The formula is
the one centrality_closeness computes, and with the default
weighted = TRUE the two agree on every node that reaches another
node. A node that reaches no other node scores 0, where closeness returns
NaN.
