Temporal Closeness Centrality

Machine Learning
Introduced by
Pan, R. K. & Saramaki, J.
Year
2011
Type
Centrality measure (temporal)
Family
Network science

What does it do?

Temporal closeness centrality extends closeness to time-varying networks by measuring distances along time-respecting paths, in which each hop must occur after the previous one.

A node scores highly when it can reach the other nodes quickly under the actual timing of contacts. Because it depends on timestamps, its ranking can differ substantially from static closeness computed on the same contacts.

The intuition behind the method

In a static network, a node is central if it is topologically close to all others. Interactions, however, have timestamps: a contact that occurred yesterday cannot carry a message that is sent today. Temporal closeness asks how quickly a node's influence could spread if it starts at a given time and can use only later contacts. A node that reaches others through chronologically ordered contacts scores highly, even if its static distances are not especially short. Pan and Saramaki's empirical comparisons showed that nodes close in the static network can be connected only through slow temporal paths, which is the gap this measure makes visible.

History

Pan and Saramaki (2011) built on a definition of average temporal distance between nodes and used it to study temporal paths and temporal closeness centrality in empirical human communication and air transport networks. Holme and Saramaki (2012) provide a review of temporal networks as a field of study.

When to use it

Use temporal closeness when your data contain explicit interaction timestamps and the question concerns how quickly a node can reach others given the order of contacts, for example in contact tracing, message diffusion, or transaction flows. It is suitable for event data at a resolution fine enough that the order of contacts matters. Do not use it when timestamps are missing or unreliable, when contacts are aggregated so coarsely that the order within a period is lost, or when the network is effectively static over the study period. In these cases, classical closeness centrality on the aggregated network is simpler and sufficient for the question.

Limitations and considerations

  • Computing foremost paths from every departure time is expensive, and the cost grows with both the number of nodes and the number of timestamped events.
  • Scores depend on the window: the set of valid time-respecting paths changes with its start and end, so rankings can shift between windows.
  • Accuracy depends on timestamp resolution. Coarse binning makes distinct contacts simultaneous, which removes the ordering that the measure relies on.
  • Because unreachable pairs contribute zero, the score mixes how many nodes are reached with how fast they are reached. Interpreting a score therefore requires the reachability information.

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

Strengths

  • Respects the chronological order of contacts, so a path counts only if its hops occur in valid sequence; static closeness ignores this constraint.
  • Because unreachable pairs contribute zero to the average of inverse distances, the score remains defined on networks that are not fully connected within the window.
  • Can reveal nodes that are structurally peripheral in the static graph but temporally well placed, a contrast that Pan and Saramaki's comparisons with static distances were designed to examine.
  • Can be computed for different time windows on the same event data, which allows comparison of activity periods.

Applications

  • Identifying nodes that could reach others quickly in contact-tracing data for infectious disease.
  • Ranking members of organisational communication networks by how quickly they can reach others through time-ordered messages.
  • Locating temporally central accounts in timestamped social media interaction data.
  • Examining how quickly influence or funds could travel through timestamped financial transaction networks.
  • Assessing how quickly nodes can be reached through time-stamped flows in transport or logistics networks.

How it works

How it works

1

The network is represented as a set of timestamped contact events (u, v, t), each treated as a directed interaction available only at its recorded time. The analyst defines a time window, and only events inside that window are considered active.

2

For each ordered pair (u, v) and a departure time t0, the algorithm finds the foremost time-respecting path: the route that reaches v earliest. Its duration is the arrival time minus t0. Such a path must use contacts in time order, so a topologically short route can be invalid if its contacts occur in the wrong sequence. Following Pan and Saramaki, the temporal distance between u and v is the average of these durations over the departure times t0 in the analysis window. Pairs with no time-respecting path have no finite distance. The convention for contacts with identical timestamps (strictly increasing versus non-decreasing order) must be fixed and reported, because it changes which paths are valid and therefore the scores.

Formula
d_{\text{temp}}(u,v) = \frac{1}{|T|} \sum_{t_0 \in T} \left[ t_{\text{arrival}}(u \to v, t_0) - t_0 \right]
3

The score is the average of the reciprocals of the temporal distances from u to the other n-1 nodes. This is the reciprocal-distance form of closeness. When all nodes are reachable, the score equals the reciprocal of the harmonic mean of the temporal distances; unreachable nodes contribute zero to the sum.

Formula
C_{\text{temp}}(u) = \frac{1}{n-1} \sum_{v \neq u} \frac{1}{d_{\text{temp}}(u,v)}
4

A node pair with no time-respecting path within the window has no finite distance and contributes zero to the sum. The score is therefore low for nodes that reach few others, even if the nodes they do reach are reached quickly. The fraction of reachable nodes should be reported alongside the score.

5

Nodes are ranked by their temporal closeness scores. High-ranking nodes can reach many others through chronologically valid contacts within the window. Comparing the ranking with static closeness shows which nodes are favoured or penalised by the timing of their contacts.

Common pitfalls

  • Reporting temporal closeness scores without the fraction of reachable nodes, which can make a low-reach node look as central as a broadly reaching one.
  • Comparing scores across networks of different sizes or across windows of different length. Always state the window start, end and length, and report the fraction of reachable nodes alongside the scores.
  • Treating temporal closeness as interchangeable with static closeness when contact timing does not constrain spread in the study context, for example when all contacts in a period are effectively simultaneous.
  • Coarsening timestamps to a level where events within one bin are treated as simultaneous, which removes the time ordering and collapses the measure toward a static snapshot.
  • Using the arithmetic mean of raw temporal distances instead of the reciprocal form, because unreachable pairs have no finite distance to average.

Frequently asked questions

How does temporal closeness differ from static closeness centrality?

Static closeness uses topological shortest paths and ignores when edges exist. Temporal closeness uses foremost time-respecting paths, in which each hop must occur after the previous one. This constraint can make some nodes unreachable and can change the centrality ranking.

Why does the formula handle unreachable pairs by giving them zero contribution?

The score averages the reciprocals of temporal distances, and a reciprocal of an infinite distance is zero. Unreachable pairs therefore lower the score rather than making it undefined, which is necessary when many pairs cannot reach each other within a finite window.

How should I choose the time window for the analysis?

The window should match the time scale of the process you are studying. Report its start, end and length, and check results across several windows, because rankings can change with the window; this sensitivity is a known limitation of the measure.

Can temporal closeness centrality be computed on large networks?

All-pairs foremost-path computation becomes expensive as the number of nodes and events grows. Approximation or sampling approaches may be needed for large data; they add uncertainty, which should be reported. The feasible size depends on the implementation and hardware.

Is temporal closeness centrality appropriate for aggregated daily contact data?

Its advantage over static closeness depends on resolution. If all contacts within a day are treated as simultaneous, the ordering that defines temporal paths disappears and the analysis becomes a static snapshot for that day. Finer timestamps give more meaningful temporal estimates.

Related methods

Sources

  1. Pan, R. K., & Saramaki, J. (2011). Path lengths, correlations, and centrality in temporal networks. Physical Review E, 84(1), 016105.

    Open DOI reference
  2. Holme, P., & Saramaki, J. (2012). Temporal networks. Physics Reports, 519(3), 97–125.

    Open DOI reference