- Introduced by
- Tang, J. et al.; Holme, P. & Saramäki, J.
- Year
- 2010–2012
- Type
- Centrality measure for temporal networks
- Family
- Network science
What does it do?
Dynamic closeness centrality adapts closeness centrality to temporal networks, in which edges exist only at specific times.
Distances are measured along time-respecting paths, whose edges occur in chronological order, and each node's score is (n−1) divided by the sum of its temporal distances to the other nodes, with unreachable pairs handled by a stated convention. Because edge timing determines which paths are valid, the score can be computed for successive time windows to show how a node's reach changes over time.
The intuition behind the method
In a static network, a node is close to others when short paths connect it to them. In a real-world network, such as a social platform, a contact-tracing log, or a collaboration record, edges occur at particular moments, so a path is valid only if its edges follow the order of time. Dynamic closeness asks which nodes can reach others most efficiently given the actual schedule of interactions. A node whose contacts are timed so that it can pass information on quickly will tend to score higher than it would in a static analysis. A node whose contacts are clustered in a short, isolated period may score lower than its number of contacts would suggest.
History
Closeness centrality is a classical measure of how efficiently a node can reach the others through shortest paths in a static graph. Its extension to temporal networks rests on time-respecting paths. Tang et al. (2010) analysed information flows and key mediators through temporal centrality metrics, using fine-grained temporal data on interactions in online social and technological networks. Holme and Saramäki's 2012 review, Temporal networks, published in Physics Reports, surveys temporal networks as a field, the broader setting in which such measures are studied. Software implementations for empirical work are now available in several languages, as noted in the FAQ.
When to use it
Use dynamic closeness centrality when your network data carries timestamps and the order of interactions matters, for example contact tracing, email or messaging logs, multi-year co-authorship records, or financial transaction networks. It suits questions such as which nodes were most efficiently connected during a particular outbreak phase, or which collaborators linked communities at a key point in a field's development. Do not apply it to aggregated, cross-sectional snapshots where edge timing is unknown, or to networks whose interactions have no meaningful chronological order. It is more expensive to compute than static closeness, so very large event logs generally need approximation or sampling.
Limitations and considerations
- Computationally expensive: scores require a temporal shortest-path search from every node, so total cost grows with the number of nodes multiplied by the cost of one search, which itself grows with the number of events. This limits scalability to large networks.
- Results depend on the time window granularity; fine-grained and coarse-grained windows can produce noticeably different rankings.
- Requires reliable timestamps, since missing or imprecise times bias the estimated temporal distances.
- Interpretation is more involved than for static closeness, which makes it harder to explain to non-specialist audiences.
- Approximate or sampled scores must be validated against exact results on a subset of the data, because sampling source nodes can bias rankings for peripheral nodes.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- Captures the causal structure of real interactions by respecting the chronological order of edges.
- Reveals temporal patterns, such as rising and falling reach, that static closeness cannot show.
- Identifies nodes that are well placed at critical time points, which can inform targeting in diffusion or intervention studies.
- Works directly with timestamped event logs, a common form of digital trace data.
- Reachability-adjusted variants are designed for disconnected or sparse temporal networks.
Applications
- Epidemiology: identifying superspreaders by their temporal reach during an outbreak.
- Organizational research: finding employees who are most efficiently connected across shifts or project phases.
- Information diffusion: pinpointing users whose timing of activity maximizes their reach in social media cascades.
- Collaboration networks: tracking which researchers bridge communities at critical periods in a field's evolution.
- Transportation and logistics: evaluating hub efficiency in networks where service schedules constrain routing.
How it works
How it works
The raw data is represented as a temporal graph: a sequence of timestamped contact events (u, v, t), where each edge is active only at its recorded time. This structure keeps the chronological ordering of interactions, which a static adjacency matrix discards.
Time-respecting shortest paths from each node are found with temporal variants of breadth-first search or Dijkstra's algorithm. A path counts only if its successive edges have non-decreasing timestamps, so information cannot travel backward in time. Because a temporal distance depends on when the search starts, the start time t0 and the distance measure must be fixed and reported. One option is the earliest arrival time at v from u minus t0; another is the number of hops on the earliest-arrival path. Events that share a timestamp can be treated either as allowing a chain of edges at one instant or as requiring strictly sequential use, and this choice should also be stated.
Formula
d_{T}(u,v) = \min_{t} \{\text{arrival time along time-respecting paths}\}The score for node v is (n−1) divided by the sum of its temporal distances to the other nodes. For directed data these are paths leaving v, so the score measures outgoing reach. If v cannot reach some node by a time-respecting path, that distance is infinite and the sum has no finite value, so a convention is needed before scores can be computed. One option is to sum only over reachable nodes and normalise by the number of reachable nodes; another is a reachability-adjusted variant that accounts for unreachable pairs explicitly. Whichever is used, report the convention and the number of unreachable pairs.
Formula
C_{dyn}(v) = \frac{n-1}{\sum_{u \neq v} d_{T}(v,u)}Scores are computed separately for each snapshot or rolling time window, which yields a centrality time series for each node. Comparing rankings across windows shows which nodes gain or lose reach and when connectivity changes most sharply. Scores are relative within a window: they are not directly comparable across windows that contain different node sets or different durations, because both the (n−1) normalisation and the temporal distances depend on these. For cross-window comparison, keep the node set fixed or normalise scores within each window (for example, by rank), and state which approach was used. For directed data the score describes outgoing reach; compute the reverse-direction version separately if incoming reach is of interest.
Common pitfalls
- Aggregating edge timestamps into a static graph before computing centrality, which removes the temporal ordering the method relies on.
- Choosing time windows arbitrarily without a sensitivity analysis, since different window sizes can reverse node rankings.
- Dropping unreachable node pairs from the sum while keeping the (n−1) normalisation, which inflates closeness scores for nodes active in dense but isolated time periods. Apply and report an explicit convention instead.
- Confusing dynamic closeness with dynamic betweenness: closeness measures reach efficiency, not brokerage, and the two can diverge substantially in temporal networks.
- Treating centrality snapshots as independent; rankings across neighbouring windows are correlated and are best analysed as a time series.
Frequently asked questions
How is dynamic closeness centrality different from static closeness centrality?
Static closeness uses shortest paths in a timeless graph where all edges are simultaneously available. Dynamic closeness restricts paths to those that respect edge timestamps, so only time-respecting routes count. This can change rankings substantially: a node with many contacts but poorly timed ones can score lower than a node with fewer, better-timed contacts.
What data format do I need?
You need a timestamped edge list with, at minimum, three columns: source node, target node, and event time. Higher-resolution timestamps generally improve accuracy. Aggregated adjacency matrices without timestamps cannot support this analysis.
How do I choose the time window?
There is no universal rule. Common approaches include using natural breakpoints in the data (for example days, weeks, or semesters), running sensitivity analyses across several window sizes, or using sliding windows of a fixed width. Report which window was used and check whether key findings hold across alternative choices.
Can I use this on very large networks?
Exact computation becomes costly as the number of events grows. For very large logs, approximation algorithms, node sampling, or parallel implementations available in some graph libraries may be needed. Validate approximate scores against exact results on a subset of the data, since sampling can bias rankings, and report the approximation strategy used.
What software implements dynamic closeness centrality?
Several Python and R packages implement temporal network centrality measures, including the Python package Teneto and the R package tsna. Function names and exact definitions differ between packages, so check the documentation to confirm which distance and unreachable-pair convention is used before comparing results. Custom implementations built on NetworkX (Python) are also common.
Related methods
Sources
Tang, J., Musolesi, M., Mascolo, C., Latora, V. & Nicosia, V. (2010). Analysing information flows and key mediators through temporal centrality metrics. Proceedings of the 3rd Workshop on Social Network Systems (SNS '10). ACM.
Open DOI referenceHolme, P. & Saramäki, J. (2012). Temporal networks. Physics Reports, 519(3), 97–125.
Open DOI reference