Computes the average local efficiency across all nodes with
igraph::average_local_efficiency(). For each node, igraph removes
the node and measures the distances between its neighbors through the rest
of the network. The value can therefore exceed the Latora and Marchiori
(2001) form, which restricts those distances to the subgraph induced on the
neighbors. centrality(x, measures = "local_efficiency") reports the
induced-subgraph form. The two agree when the neighbors have no path
outside their induced subgraph.
Arguments
- x
Network input: matrix, igraph, network, cograph_network, or tna object
- weights
Numeric vector of edge weights. Default NULL uses the graph's
weightattribute when present. NA ignores weights, so every edge has length 1, whateverinvert_weightsis.- invert_weights
Logical or NULL. If TRUE, weights are converted to distances as \(1/w^{\alpha}\), so stronger ties give shorter paths. If FALSE, weights are used as distances. Default NULL uses TRUE for tna objects and FALSE otherwise.
- alpha
Numeric. Exponent for weight inversion. Default 1.
- ...
Passed to
to_igraph, whose only other argument isdirected; anything else raises an "unused argument" error.
