closenesscentrality
Closeness centrality is a measure in network analysis that captures how close a given node is to all other nodes in a graph. It favors nodes that can rapidly interact with the rest of the network and is often interpreted as a proxy for the speed of information or influence dissemination from that node.
For a graph with n nodes, the standard closeness centrality of a node v is defined as
Computation typically relies on shortest-path algorithms. In unweighted graphs, breadth-first search computes d(v, u) efficiently; in
Variants and extensions include normalized closeness, which divides by the maximum possible value for comparability across