Generalized closeness, as in the tidygraph package, sums a decay factor \(\alpha\) raised to the distance from the node to every node: $$GC(v) = \sum_{w} \alpha^{d(v, w)}.$$ The sum includes the node itself, which adds one to every score, and unreachable nodes contribute 0.
Arguments
- x
Network input accepted by
centrality.- mode
For directed networks:
"all"(default),"out"or"in".- decay_parameter
Decay factor \(\alpha\) of the formula. Default 0.5.
- ...
Further arguments to
centrality. The measure usesweighted(defaultTRUE),invert_weights(defaultNULL, which isTRUEfor tna input),alpha(inversion exponent, default 1) andcutoff(largest path length considered, default -1 for no limit).
Details
Edge weights are read as path lengths. invert_weights = TRUE uses
\(1/w^\alpha\) as the length, with the inversion exponent
alpha of centrality, and weighted = FALSE
counts hops. mode sets the direction of the paths. The values equal
those of centrality_decay with the same
decay_parameter, which must lie strictly between 0 and 1; other
values raise a cograph_bad_parameter error.
