Weighted Closeness Centrality

Machine Learning
Introduced by
Opsahl, T.; Agneessens, F.; Skvoretz, J.
Year
2010
Type
Centrality measure (network analysis)
Family
Network science

What does it do?

Weighted closeness centrality extends classic closeness to networks whose edges carry numerical weights, such as frequency, strength or cost, by building those weights into shortest-path distances.

A node scores highly when it can reach the other nodes quickly along strong or efficient ties. Opsahl, Agneessens and Skvoretz (2010) introduced this generalization, which measures reach efficiency rather than simple topological proximity.

The intuition behind the method

Classic closeness asks how many steps a node needs to reach everyone else and treats every tie as equal. Weighted closeness instead uses each edge weight either as a capacity, where a higher weight means a stronger tie and therefore a shorter distance, or as a cost, where the weight is already a length. A node with a high score is close to others through high-capacity or low-cost paths, not merely through a small number of hops. Opsahl et al. (2010) also introduce a tuning parameter, alpha, that controls how edge weights enter the distances; its exact definition is given in the original paper.

History

Closeness centrality is a long-established measure of how near a node lies to the other nodes in a network. Opsahl, Agneessens and Skvoretz (2010) generalized closeness and degree to weighted networks in Social Networks, and the weighted formulation given in this entry follows that generalization.

When to use it

Choose weighted closeness when edge weights have a clear and comparable meaning, such as collaboration frequency, communication volume or trade flow, and the research question concerns how efficiently a node can reach or be reached by others. It is most useful when the unweighted ranking would change materially once tie strength is taken into account. Do not use it when weights are only ordinal or unreliable, because the distance transformation depends on the relative size of differences between weights. Multiplying all weights by a common positive constant does not change the rankings, since every distance is scaled by the same factor; the rankings do depend on the chosen transformation (1/w versus w) and on the relative differences among weights. The measure is also a poor fit for a disconnected network if there is no decision on how unreachable pairs are handled. If the question concerns control of flows between other nodes, weighted betweenness centrality is the better choice.

Limitations and considerations

  • Every pairwise distance depends on the edge weights, so missing or noisy weights affect every node's score rather than only the tie concerned.
  • Without an explicit rule for unreachable pairs, the sum of distances in the formula is not defined for disconnected networks; alternatives such as harmonic closeness measure a different quantity.
  • The value of alpha has to be justified on theoretical grounds, because the choice can change which nodes rank highest.
  • Computing shortest paths from every node is more expensive than weighted degree, which needs only a single pass over each node's edges.

Source conditions do not replace independent scientific review or validation by an analysis engine.

Strengths

  • Edge weights enter the shortest-path distances, so a node reached through strong ties scores higher than one reached through the same number of weak ties.
  • The alpha parameter introduced by Opsahl et al. (2010) allows the influence of edge weights on distances to be varied, which supports a direct sensitivity check.
  • The formula has the same structure as classic closeness, so weighted and unweighted scores on the same network can be set side by side.
  • For directed networks, in-closeness and out-closeness can be computed separately, distinguishing nodes that are easily reached from nodes that reach others easily.

Applications

  • Ranking researchers in a co-authorship network where repeated collaboration counts serve as edge weights, so that authors close to many others through frequent co-authorship score higher.
  • Ranking hubs in a weighted transport or trade network after converting capacity or cost into the appropriate distance.
  • Repeating the analysis across a range of alpha values, following Opsahl et al. (2010), to see whether a node's position is sensitive to how strongly tie weights are built into the distances.
  • Pairing weighted closeness with weighted betweenness centrality to separate nodes that reach others efficiently from nodes that lie on the paths between other nodes.

How it works

How it works

1

Each edge weight is first converted into a distance. The formula in this entry takes the edge distance as the inverse weight, 1/w, so that stronger ties give shorter distances; this suits frequency, strength or capacity weights. Because 1/w is defined and positive only for strictly positive weights, zero-weight edges must be removed or recoded before the transformation. When weights already measure cost, latency or resistance, they are used directly as distances, a case the formula above does not cover; such weights must also be non-negative. Dijkstra's algorithm then finds the minimum weighted distance d^w(i,j) between each pair of nodes, and it applies because all edge distances are non-negative.

Formula
d^w(i,j) = \min_{\text{paths}} \sum_{e \in \text{path}} w_e^{-1}
2

For each node i, the weighted distances to the other nodes it can reach are added together. A node that is far from others in weighted terms, or that has only weak ties to large parts of the network, accumulates a large sum and therefore a low closeness score. The basic formula assumes that every other node can be reached from i. In a disconnected network, pairs with no connecting path have no finite distance, and a separate convention is needed (see the FAQ on disconnected components).

3

The weighted closeness of node i is (n-1) divided by its sum of weighted distances, the same algebraic form as classic closeness with d^w in place of hop counts. Because this equals the reciprocal of the mean weighted distance, it is the quantity to compare across nodes in one network. It does not by itself fix a range for the score, since weighted distances can be smaller or larger than one depending on the weight convention.

Formula
C^w(i) = \frac{n-1}{\sum_{j \neq i} d^w(i,j)}
4

Opsahl et al. (2010) introduce a parameter alpha that controls how edge weights enter the distance. The alpha-dependent distance d^{w,alpha} is defined in that paper, and the alpha value used should be reported with the results.

Formula
C^{w,\alpha}(i) = \frac{n-1}{\sum_{j \neq i} d^{w,\alpha}(i,j)}

Common pitfalls

  • Using frequency or strength weights directly as distances instead of inverting them, which reverses the ranking because strong ties then look long.
  • Inverting a zero-valued weight is undefined, so zero-weight edges must be removed or recoded before the transformation.
  • Applying the measure to a disconnected graph without a rule for unreachable pairs, so that scores for nodes in small components are driven by the rule rather than by the network.
  • Reporting a single alpha value without checking whether the top-ranked nodes change across nearby values.
  • Comparing raw distance sums across networks of different sizes; the normalized score equals the reciprocal of the mean weighted distance and is the quantity to compare.

Frequently asked questions

How should I choose the alpha parameter?

Alpha is the tuning parameter introduced by Opsahl et al. (2010) to control how edge weights enter the distances. Its exact definition and admissible values should be taken from that paper. The choice should be justified on theoretical grounds, and the value used should be reported. Because the top-ranked nodes can change with alpha, it is good practice to check how stable the ranking is across a range of values.

What weight-to-distance transformation should I use?

For frequency, strength or capacity weights (higher = stronger), invert the weight so that distance = 1/w. For cost, latency or resistance weights (higher = weaker), use the weight directly as the distance. Mixing these conventions without care will invert the centrality rankings.

How do I handle disconnected components?

Two common variants define the score differently from the formula above. One restricts the sum to the nodes each node can reach and normalizes by the number of reachable nodes minus one; this is a different index, and results should be reported under that definition. The other, harmonic closeness, sums reciprocal distances so that unreachable pairs contribute zero, and it likewise measures a different quantity.

Is weighted closeness better than unweighted closeness?

When weights carry substantive meaning, such as frequency of contact or volume of trade, weighted closeness gives a more accurate picture of reach efficiency. When weights are unreliable, or weights and topology are nearly uncorrelated, the added complexity may not improve inference.

How does this differ from weighted betweenness centrality?

Weighted closeness measures how efficiently a node can reach others through strong paths. Weighted betweenness measures how often a node lies on the shortest paths between other pairs. A node can be close without being a critical bridge, and vice versa.

Related methods

Sources

  1. Opsahl, T., Agneessens, F. & Skvoretz, J. (2010). Node centrality in weighted networks: Generalizing degree and shortest paths. Social Networks, 32(3), 245–251.

    Open DOI reference
  2. Brandes, U. (2001). A faster algorithm for betweenness centrality. Journal of Mathematical Sociology, 25(2), 163–177.

    Open DOI reference