Lin centrality divides the squared number of nodes a node reaches by the sum of its distances to them: $$L(i) = \frac{r_i^2}{\sum_{j \in R_i} d_{ij}},$$ where \(R_i\) is the set of \(r_i\) nodes reachable from \(i\). The score is defined on disconnected networks.
Arguments
- x
Network input accepted by
centrality.- mode
Direction for directed networks:
"all"(default),"out"or"in".- ...
Further arguments to
centrality. The measure usesweighted(defaultTRUE),invert_weights(defaultNULL, which inverts for tna input only),alpha(inversion exponent, default 1) andcutoff(largest distance counted, default -1 for no limit).
Details
Edge weights are read as distances. weighted = FALSE uses hop
counts, and invert_weights = TRUE converts a weight \(w\) to the
distance \(1/w^\alpha\). mode = "all" treats edges as
undirected, "out" uses distances from the node and "in"
distances to it. A node that reaches no other node scores 0, and a
single-node network gives NA. On undirected networks the values
equal centiserve::lincent().
