Abstract
Population structure is a key determinant in fostering cooperation among naturally self-interested individuals in microbial populations, social insect groups, and human societies. Traditional research has focused on static structures, and yet most real interactions are finite in duration and changing in time, forming a temporal network. This raises the question of whether cooperation can emerge and persist despite an intrinsically fragmented population structure. Here we develop a framework to study the evolution of cooperation on temporal networks. Surprisingly, we find that network temporality actually enhances the evolution of cooperation relative to comparable static networks, despite the fact that bursty interaction patterns generally impede cooperation. We resolve this tension by proposing a measure to quantify the amount of temporality in a network, revealing an intermediate level that maximally boosts cooperation. Our results open a new avenue for investigating the evolution of cooperation and other emergent behaviours in more realistic structured populations.
Subject terms: Applied mathematics, Complex networks
Population structure enables emergence of cooperation among individuals, but the impact of the dynamic nature of real interaction networks is not understood. Here, the authors study the evolution of cooperation on temporal networks and find that temporality enhances the evolution of cooperation.
Introduction
Explaining the evolution of durable, widespread cooperative behaviour in groups of self-interested individuals has been a challenge since the time of Darwin1–8. In response, researchers have turned to the critical role played by the underlying interaction networks, in which nodes represent individuals and links represent interactions9,10. It has been shown that the nontrivial population structures represented by both homogeneous2–4,9,11–13 and heterogeneous10,14,15 networks permit the formation of stable clusters of cooperators (altruists), which achieve higher individual payoffs while also resisting exploitation from defectors (egoists). As such, both theoretical analysis4,9,10,15–20 and behavioural experiments21–28 point to network structure as a key ingredient for the emergence of cooperation.
However, these and other deep insights about the evolution of cooperation generally rely on a key assumption that the underlying interaction network (contact graph) of individuals is time-invariant (i.e., static). In practice, this assumption is often violated, especially in social networks, which tend to be formed from an ever-changing amalgam of short-lived interactions. For example, emails and text messages represent near-instantaneous and hence ephemeral links in the corresponding temporal network29. Even in cases where interactions have non-negligible durations—such as phone calls, or the face-to-face interactions between inpatients in the same hospital ward—the network structure is in constant flux.
Recently, it has been shown that the temporality of edge activations can noticeably affect various dynamical processes, ranging from the information or epidemic spreading30–33 to network accessibility34 to controllability35. It is natural to expect that temporality will have a similarly profound effect in social systems, in which the relevant dynamical laws are strongly tied to the presence (or absence) of network links. There is a large body of work studying coevolutionary dynamics—in which the changes to the network structure are a direct result of the underlying dynamics (e.g., players strategically switching partners to shun defectors)36–41. Yet these mechanisms, though important, are just a few among many that influence the structure of real social networks, stressing the importance of studying temporality exogenous to the social dynamics. On this front, we mention one notable work that explored the impact of temporal social contacts on the evolution of cooperation, and claimed that the temporal dynamics of social ties favours selfish behaviour42. And yet, given some profound advantages of temporal networks recently discovered in the context of dynamics and control35, we are compelled to ask whether, under certain circumstances, temporality might actually enhance cooperation.
Here we study the evolution of cooperation on empirical and synthetic temporal networks first, and surprisingly, we find that temporal networks can facilitate the evolution of cooperation. We further investigate the impacts of bursty behaviour (namely, short timeframes of intense activity followed by long windows of relative silence)—a hallmark of many real social interaction patterns43,44. We find that this facet of temporality is actually detrimental to the emergence of cooperation, instead facilitating the spread of egoists. Finally, we rationalise the previous findings by introducing a measure of temporality in networks, and show analytically that an intermediate level most favours cooperation. We confirm the generality of our results over different types of synthetic networks, varying interaction time scales, updating rules (both synchronous and asynchronous), and game dynamics.
Results
Modelling framework
We conduct our investigation in the setting of classic evolutionary game theory9,11,14, in which two players interact by each choosing a strategy of cooperation (C) or defection (D). When their strategies agree, each player receives a payoff () for mutual cooperation (defection). When the players’ strategies disagree, the defector receives a payoff while the cooperator receives . These outcomes can be encoded in the payoff matrix
whose entries give the payoff under all possible combinations of strategies. For simplicity, we shall first focus on the widely-studied case of the (weak) Prisoner’s Dilemma9,14,45,46, which without loss of generality corresponds to the setting and . This leaves a single temptation parameter, , which captures the potential advantage of defecting over cooperating9.
Figure 1 illustrates the essence of our modelling framework. We consider the above game played out between pairs of adjacent nodes on a time-varying network, which we represent by a sequence of separate networks (snapshots) on the same set of nodes. Starting from empirical contact sequences (i.e. timestamped interactions), these snapshots are constructed by aggregating social contacts over successive, non-overlapping windows of (Fig. 1a and b), which determines the set of links active in a given snapshot. As a point of comparison, we also create a corresponding static network by aggregating all social contacts in the dataset.
Fig. 1. Construction of temporal networks from intermittent social interactions.
a Social interactions between individuals indicated by solid circles with different colours. Along the whole time from to , each individual is depicted by the same colour line, over which the corresponding circles will be given and connected with each other at time provided two players interact with each other during the time interval . Here for the simplicity of visualisations, and normally in the real data collected by SocioPatterns (see Methods), s. b Four different temporal networks that arise from aggregating the interactions shown in a into snapshots using different time windows . When , all interactions are captured in a single snapshot, corresponding to the static network that is the typical object of study in social network data. In general, when , we have snapshots. c The definition of evolutionary process on temporal networks. Taking the temporal network corresponding to in (b) as an example, we perform rounds of evolution in each snapshot before changing the network structure to the next one, and totally we run rounds. If , we repeat the sequence of snapshots from the beginning.
To capture the interactions occurring on these networks, we initially set an equal probability for each individual (node) to choose C or D in the population on the first snapshot. In each round, every individual plays the above game with each of its neighbours, accumulating a total payoff . Afterwards, the player may change his or her strategy by randomly imitating that of a neighbour. In our simulations, we employ a commonly used updating rule that models a tendency to imitate success14. Specifically, each player may pick a neighbour (having payoff ) from its neighbours, and then imitate ’s strategy with probability provided . Otherwise, player keeps his/her current strategy. Here and is the larger of and . We repeat this procedure a total of times before changing the network structure to the next snapshot (Fig. 1c). In this way, is a parameter that controls the timescale difference between the dynamics on the network versus the dynamics of the network. We continue running the game for a total of rounds, and then measure the average fraction of cooperators () over another 2,000 rounds, similar to the canonical procedure used in static networks14,15. Note that, in a departure from previous studies36–41, here the time-varying nature of the networks is completely exogenous, not being coupled to the game dynamics (by, for example, players changing whom they interact with to shun defectors). This allows us to independently study the effect of network temporality on the dynamics of the game.
Temporal networks facilitate the evolution of cooperation
Our principal result is that temporal networks generally enhance cooperation relative to their static counterparts. What’s more, they allow it to persist at higher levels of temptation, . Figure 2 shows the equilibrium fraction of cooperators for temporal networks formed from social contacts in four empirical datasets: attendees at a scientific conference (ACM conference)47, students at a high school in Marseilles, France in two different years48,49 (Student 2012, and Student 2013), and workers in an office building in France (Office 2013)50. In each of these systems we observe a broad range of over which is greater in the temporal network than in its static counterpart, at almost all values of . Strikingly, this is true even for small ; in this case the network’s links are distributed over a large number of snapshots, leaving little network scaffolding on which to build stable clusters of cooperators. Nonetheless, there exists a range of that can compensate for this sparsity, again giving temporal networks the victory in terms of enhancing cooperation. Indeed, we find that the only scenario in which temporal networks result in less cooperation than static networks is when is small. In this limit, the evolutionary timescale is comparable to the dynamical timescale, and patterns of cooperation have no time to stabilise before being disrupted by the next change in network structure. This squares our results with the previously-mentioned conclusion that temporality inhibits cooperation (Supplementary Fig. 1), which was obtained from the regime of a single game per snapshot () with comparatively infrequent strategy updates42. Interestingly, regardless of the value of , our simulations show a rapid and on-average monotonic convergence of the cooperator fraction toward equilibrium (Supplementary Fig. 2)—similar to the temporal profile previously found in co-evolving random networks51.
Fig. 2. Temporal networks generally promote the evolution of cooperation in real social systems.
For four empirical datasets: a the ACM conference, b Student 2012, c Student 2013, and d Office 2013, we show the frequency of cooperation () on both temporal (coloured lines) and static (black dashed lines) networks with different values of the aggregation time windows . We choose h from left to right in a to c and h in d, respectively. After letting the population evolve rounds on each snapshot, we average over another rounds after a transient time of rounds on each temporal network, to obtain the equilibrium frequency of cooperators. The statistics of each dataset are given in Supplementary Table 1.
As there are many factors that might affect evolutionary outcomes15,52,53, we have studied numerous alternative setups as well. These include: (i) using the original time scale of network edges (Supplementary Fig. 1), (ii) asynchronous updating of strategies (Supplementary Fig. 3), (iii) alternative social dilemmas like the canonical Stag-Hunt () and Snowdrift () games, and the general Prisoner’s Dilemma with (Supplementary Figs. 4 and 5), and finally (iv) a different strategy update rule that allows players to imitate worse-performing neighbours54 (Supplementary Fig. 6). None of these modifications alter our main finding that time-varying network structure generally enhances the evolution of cooperation.
To test whether this result depends on idiosyncrasies of the temporal patterns in real social systems, we have also simulated games on synthetic temporal versions of Erdős-Rényi (ER)55 and scale-free (SF)56 networks (see Methods). Here too we find that with almost any level of temporality, cooperators have an easier time gaining footholds in the population (Fig. 3). Interestingly, we find that temporal versions of SF networks yield a higher , all other things being equal, than the temporal ER networks (Fig. 3 and Supplementary Fig. 7). As such, the well-known result that heterogeneous degree distributions enhance cooperation in static networks also holds in temporal networks14. Note that our results here are robust to changes in the size and average connectivity of the networks under consideration (Supplementary Figs. 7 and 8).
Fig. 3. Evolution of cooperation on temporal networks generated from synthetic data.

Here we generate sparse snapshots based on: a a base Erdős-Rényi (ER) random network55; and b a base scale-free (SF) network with degree exponent constructed by the static model70, choosing a fraction of edges to be active within each snapshot. Note that when is bigger, there are more links being active in each snapshot, which reduces the gap of the results obtained from temporal and static networks, while large does not necessarily reduce the gap (Supplementary Fig. 9). Here , the network size , and average degree . The robustness of the corresponding results for other parameters and other methods of generating synthetic temporal networks has been verified (see Supplementary Fig. 7).
Effects of burstiness on the evolution of cooperation
Analyses of the temporal patterns of human interactions in email57, phone calls57,58, and written correspondence43 have revealed a high degree of burstiness—periods of intense activity punctuated by relative lulls—resulting in a heavy-tailed inter-event time distribution43. Such temporal correlations in activity have been shown to have effects on network dynamics above and beyond those of temporality alone, for instance accelerating the spread of contagions59,60. We have established that burstiness is present to varying degrees in each of the four datasets we study (Supplementary Fig. 10), prompting us to ask whether it helps or hinders the evolution of cooperation.
We address this question by shuffling each dataset, randomising the source, target, and timestamp of each social contact (see Methods). We stress that this randomisation has the effect of erasing bursty behaviour at the level of individual nodes. Figure 4 shows that, in every temporal network we consider, cooperation is improved after randomisation, suggesting that bursty behaviour impedes the evolution of cooperation. Indeed, due to the heterogeneity of active times embedded in bursty behaviour of different players, it is harder for cooperators to form stable clusters to obtain benefits from mutual cooperation in order to compensate for the losses against defectors9,25. For the effects of other null models that permute only the structure or the time stamps of the contacts, please refer to Supplementary Figs. 11–14, where we also show that the above results are robust to alternative randomisation protocols. Furthermore, this is true for nearly all choices of parameters , , and . But how do we reconcile the fact that burstiness is inimical to cooperation with our previous observation, namely that temporality generically promotes it?
Fig. 4. The intrinsic bursty behaviour in human interactions suppresses the maintenance of cooperation.
For each dataset, we show the difference between the frequency of cooperators in temporal networks generated from each datsaset after randomly permuting both the timestamps and edges (RPTRE) which erases the burstiness inherent to human interaction data (see Methods), and over the original scenarios. By construction, at any fixed value of , each curve here sums to at most with the corresponding curve in Fig. 2 from a–d. We see that the frequency of cooperators generally increases after the bursty behaviour is destroyed, suggesting that correlations in activity within a social network are antagonistic toward the formation of cooperation. Note that for clarity of presentation, we did not plot the case for . However, all results for each dataset after randomisations with different null models29 can be found in Supplementary Figs. 11–14. Other parameters are the same as those in Fig. 2.
Cooperation is maximised at intermediate temporality
The burstiness and the parameters and encode three different facets of temporality. Specifically, captures the relationship between the dynamical/structural timescales; on the other hand indicates the extent to which the network structure is spread over time; finally, the burstiness represents time correlations in the network structure. To understand the effects of these parameters in a unified way, we define the following measure of the temporality of a temporal network with snapshots as
Here is the connectivity between nodes and in snapshot , being if the nodes have a contact in the associated time window and otherwise; the above fraction equals for any two nearby empty networks without links. This measure captures the tendency of a randomly-chosen link to change status (either active to inactive, or vice versa) in the next snapshot. By construction, we always have , with occurring in the limit where network topology does not change (i.e. a static network), and corresponding to the case where all links in a given snapshot are different from those in the previous snapshot.
Figure 5 shows the values of for both the original and randomised versions of each of the four datasets we study. We see that at , the original data tend to display high temporality, which decreases upon randomisation, suggesting that most interactions (links) in these systems last less than hour. Considering our earlier finding that the cooperation level increases after randomisation (Fig. 4), this suggests that too-high temporality hinders the spread of cooperation, instead fostering egoistic behaviour. On the other hand, we find that a too-low value for is also associated with diminished cooperation (Supplementary Fig. 16). Altogether, the picture that emerges is one of an intermediate regime—a sweet spot of temporality at which cooperation is maximally enhanced relative to static systems.
Fig. 5. The temporality of real networks.
The temporality of the original datasets is shown alongside their randomisations for different time windows . By destroying burstiness, randomisations altering the time ordering of contacts (RPT, RPTRE) decrease . Supplementary Fig. 15 shows how the overall temporality arises on a snapshot-by-snapshot basis, and the corresponding standard deviation is given in this figure as the error bar.
Theoretical analysis
Having demonstrated that an intermediate level of facilitates cooperation most, we are prompted to theoretically explain this observation. We model temporal networks theoretically using the activity-driven model33. Here, a node can either be active—in which case it forms links with an average randomly-chosen other nodes—or inactive, in which case its links (if any) come from other active nodes. We denote by the probability that node is active in a given snapshot. Let denote the total number of players in the snapshot having a specified activity value , and let denote the expected number of those that are defectors. Also, we will denote by () the average probability for a defector (cooperator) to become a cooperator (defector) in the next round.
Staring from a specific snapshot , the number of defectors in the next snapshot, arises as a sum of three contributions: (a) defectors in the current snapshot (i.e. ), minus (b) the number of them that convert to cooperators (i.e. ), plus (c) the new defectors converted from cooperators in the last round. Note that, in (c), new defectors can arise either as (i) active cooperators who interact with (and imitate) neighbouring defectors (i.e. ), or (ii) inactive cooperators who nonetheless share a link with an active defector and imitate that defector’s strategy (i.e. , where is the probability that cooperators with active probability are selected to interact with an active defector). Combining these contributions, we can write a self-consistent equation for the evolution of
| 1 |
When we take the continuum limit with respect to the time , the above equation corresponds to the following system of differential equations
| 2 |
where is the number of defectors, , and () is the first (second) moment of over all players. The first expression in Eq. (2) is obtained by integrating over all values of and ignoring the second order terms (i.e. here). The second expression comes from multiplying both sides of Eq. (2) by and then integrating out (see Supplementary Note 1 for details). Regardless of the parameter values, this system possesses an equilibrium at , corresponding to the complete absence of defectors. We can determine its stability by linearising to obtain the corresponding Jacobian matrix
which has eigenvalues . When the largest eigenvalue is positive (equivalent to ), the equilibrium is unstable, meaning that defectors can never die out in the population. Interestingly, this equation is consistent with the epidemic threshold previously derived for activity-driven temporal networks33, where there is the infection rate per contact and is the recovery rate. Indeed, whether defection or infection, the denominator captures the rate of spread of a small perturbation around an equilibrium (in this case ), with both density () and degree heterogeneity () facilitating that spread.
The threshold for defection to gain a foothold in the population can be related to the network structure as follows. Considering that the average number of links for each player is , we know that the probability for a defector to spread its strategy is . Hence a nonzero fraction of defectors will break out if , where is the threshold defined by
| 3 |
We see that the increase of defectors is triggered (inhibited) by (), where the bigger (smaller) () is, the more cooperators (defectors) switch to be defectors (cooperators). Therefore, beyond the criterion governing the existence of defectors, quantifies the difficulty for defectors to take over the whole network. Numerical validations for this threshold are shown in Supplementary Fig. 17, where we also show our analytical approximations of this threshold agree with the findings of canonical evolutionary dynamics in the case where a strategy’s payoff determines the change of its frequency.
Equation (3) tells us that the defection threshold in an activity-driven temporal networks is in part determined by the typical activity level of its nodes. To obtain the value of for a given temporal network, we can estimate the activity probability of node in the snapshot as , where and are the degree of in the snapshot and the corresponding static network. The average activity over a given snapshot with individuals is then . Then for the jth moment of of the whole temporal network with snapshots, we calculate it by . For each of the empirical datasets we study, we find that the threshold for the outbreak of defection reaches its maximum when is at an intermediate level (Fig. 6), echoing our previous result of a Goldilocks regime of temporality maximally conducive to cooperation.
Fig. 6. The threshold for the outbreak of defection on temporal networks reaches its maximum at the intermediate aggregation time windows.

For all empirical datasets we considered, the corresponding thresholds governed by Equation (3) are presented numerically in scatter plots over the different aggregation time windows . The corresponding lines are given by least square quadratic regression with . Note that, for each dataset, the maximum is the total time the corresponding dataset covers (see Supplementary Table 1).
We can understand the link between the model predictions and the data by rewriting the threshold (3) as , where and For small , individuals tend to be less active in each sparse snapshot (small implies small ), which in turn gives more chance for defectors to spread their strategy pairwisely as it is the Nash equilibrium. For large , however, due to the heterogeneity of interactions over different snapshots (large implies small ), clusters of cooperators have less chance to stabilise. Only at an intermediate can cooperators outspread defectors, and the combination of high and low leads to a high barrier to defection () (Fig. 6).
Discussion
We have shown that temporal networks, both empirical and synthetic, generically enhance the emergence of cooperation relative to their static counterparts. Remarkably, this central finding holds even after the underlying contact sequences are randomised, thereby destroying topological (e.g. clustering) or temporal (e.g. bursts) correlations in the data. Altogether, this suggests that temporality—and temporality alone—is sufficient to improve cooperation. Indeed, after randomisations, we find that the level of cooperation is actually improved, demonstrating that the bursty nature of human interactions hinders the maintenance of cooperation to some degree. Finally, we demonstrate that the temporality of a network determines the fate of cooperators, with cooperators flourishing at intermediate values of network temporality.
The temporal networks considered here should be contrasted with coevolutionary dynamics, in which the changes in network structure are tied to the dynamics of the relevant social dilemmas. For example, several important mechanisms elucidate that cooperation can be boosted by strategic migration36,40, and deliberate switching of interaction partners to avoid defectors37,61,62. However, it is unlikely the temporality characterising real social interactions is driven exclusively (or even primarily) by strategic switching in pursuit of a given objective47–50. This underscores the importance of studying cases in which the temporality is exogenous to the game dynamics, allowing an independent assessment of how the former affects the latter. As such, the agnostic view of the nature of temporality we have taken here represents a fundamental strength of our approach.
We have shown that our main conclusions are not artifacts of the specific empirical networks considered here, nor do they qualitatively change under different parameterisations. Nonetheless, future investigations such as appropriate behavioural experiments that incorporate network temporality and relevant phenomena like burstiness are warranted. Though we have shown that our results are unchanged when considering only subsets of the network (Supplementary Fig. 18), disregarding very short-lived contacts (Supplementary Fig. 19), changing the clustering coefficient (Supplementary Figs. 20 and 21), or using different starting network types (Supplementary Fig. 22), real systems display considerable variability, including different characteristic timescales for population evolution (Supplementary Fig. 23). Accordingly, future analysis of interactions at different spatial and temporal scales will be necessary to understand the full implications of temporality. Toward this end, the long tradition of combining tools from network science and statistical physics63 with evolutionary game theory will no doubt continue to pay dividends.
Another natural extension of the current work is to consider group interactions, which involve the interactions among individuals who are not directly connected with one another64–66. These interactions generate much more dynamical complexity than pairwise interactions alone67. In microbial populations, for example, pairwise outcomes can predict the survival of three-species competitions with accuracy as high as 90%, yet information on the outcomes of three-species competition is still needed in order to predict scenarios over larger numbers of species with high accuracy68. Moreover, the menu of strategies can be expanded beyond the simple dichotomy of cooperation versus defection, which represents only one axis of a broader landscape of moral behaviour69. For example, three-strategy games analogous to rock-paper-scissors may present a more nuanced picture of the detailed interactions characterising microbial communities, ecosystems, and human societies alike.
Methods
Empirical temporal networks and datasets
We construct temporal networks from empirical datasets collected by the SocioPatterns collaboration (http://www.sociopatterns.org) by aggregating contacts into undirected network links over time windows of (Fig. 1a). Thus the active time interval for the snapshot is from to , and a link between and exists in that snapshot if players and interact at least once in that time period (Fig. 1b). We obtain a static network in the limit where , where is the last timestamp in the data, resulting in a single snapshot containing all links.
Synthetic temporal networks
We generate temporal analogues of networks with heterogeneous or homogeneous degree distributions with specified network size and average degree by first generating a base static network, using the static model70 and the Erdős-Rényi model55, respectively. We then form snapshots by randomly and independently choosing a fraction of edges to be active in each one. We have verified that our results hold under more sophisticated generative models that build temporal networks from a static network backbone, such as the activity-driven model33.
Randomisations of empirical datasets
We consider four widely-used null models29 to randomise the empirical datasets: Randomised Edges (RE) where we randomly choose pairs of edges and , and replace them with and or and with equal probability provided this results in no self loops; Randomly Permuted Times (RPT), where we shuffle the timestamps of the contacts, leaving their sources and targets unaltered; Randomly Permuted Times + Randomised Edges (RPTRE) which consists first of RPT followed by RE; and Time Reversal (TR), where the temporal order of the contacts is reversed.
Reporting summary
Further information on research design is available in the Nature Research Reporting Summary linked to this article.
Supplementary information
Acknowledgements
We thank Professors Kevin Foster, Roberta Sinatra, Márton Karsai, and Dr. Alessio Cardillo for helpful comments and discussions. This work is supported by NSFC (Nos. 61751301 and 61533001). A.L. acknowledges the Cross-Disciplinary Fellowship Award (Grant: LT000696/2018-C) from International Human Frontier Science Program, China Scholarship Council (No. 201406010195) and generous support from Barabási Lab at Northeastern University and Foster Lab at University of Oxford. L.Z. acknowledges the support from China Scholarship Council (No. 201606010270) and the Levin Lab. Q.S. is supported by the Simons Foundation Math+X Grant to the University of Pennsylvania. S.P.C. is supported by the John Templeton Foundation (No. 51977) and NIH (No. P50HG004233). Y.-Y.L. is supported by grants R01AI141529, R01HD093761, U19AI095219, U01HL089856, and UH3OD023268 from National Institutes of Health. S.A.L. acknowledges DARPA grant AWD 1005127.
Author contributions
A.L., Y.-Y.L. and L.W. conceived and designed the project. All authors performed the research. L.Z. and Q.S. performed numerical calculations on the empirical and synthetic data, respectively. A.L. performed all the theoretical calculations. A.L., L.Z., S.P.C., Y.-Y.L., L.W. and S.A.L. analysed the results. A.L., S.P.C., Y.-Y.L., L.W. and S.A.L. wrote the manuscript. L.Z. and Q.S. edited the manuscript.
Data availability
All empirical datasets analysed in this work are publicly available through the SocioPatterns collaboration (http://www.sociopatterns.org).
Code availability
The computer codes used in this work are available at https://github.com/leizhougetbetter/TemporalNetworks.
Competing interests
The authors declare no competing interests.
Footnotes
Peer review information Nature Communications thanks the anonymous reviewer(s) for their contribution to the peer review of this work.
Publisher’s note Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Contributor Information
Yang-Yu Liu, Email: yyl@channing.harvard.edu.
Long Wang, Email: longwang@pku.edu.cn.
Simon A. Levin, Email: slevin@princeton.edu
Supplementary information
Supplementary information is available for this paper at 10.1038/s41467-020-16088-w.
References
- 1.Hamilton WD. The evolution of altruistic behavior. Am. Nat. 1963;97:354–356. doi: 10.1086/497114. [DOI] [Google Scholar]
- 2.Trivers RL. The evolution of reciprocal altruism. Q. Rev. Biol. 1971;46:35–57. doi: 10.1086/406755. [DOI] [Google Scholar]
- 3.Maynard Smith J. Group selection. Q. Rev. Biol. 1976;51:277–283. doi: 10.1086/409311. [DOI] [Google Scholar]
- 4.Hofbauer, J. & Sigmund, K. Evolutionary Games and Population Dynamics (Cambridge University Press, Cambridge, 1998).
- 5.Nowak MA. Five rules for the evolution of cooperation. Science. 2006;314:1560–1563. doi: 10.1126/science.1133755. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 6.Levin SA. Public goods in relation to competition, cooperation, and spite. Proc. Natl Acad. Sci. USA. 2014;111:10838–10845. doi: 10.1073/pnas.1400830111. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 7.Rakoff-Nahoum S, Foster KR, Comstock LE. The evolution of cooperation within the gut microbiota. Nature. 2016;459:255–259. doi: 10.1038/nature17626. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 8.Lewin-Epstein O, Aharonov R, Hadany L. Microbes can help explain the evolution of host altruism. Nat. Commun. 2017;8:14040. doi: 10.1038/ncomms14040. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 9.Nowak MA, May RM. Evolutionary games and spatial chaos. Nature. 1992;359:826–829. doi: 10.1038/359826a0. [DOI] [Google Scholar]
- 10.Allen B, et al. Evolutionary dynamics on any population structure. Nature. 2017;544:227–230. doi: 10.1038/nature21723. [DOI] [PubMed] [Google Scholar]
- 11.Hauert C, Doebeli M. Spatial structure often inhibits the evolution of cooperation in the snowdrift game. Nature. 2004;428:643–646. doi: 10.1038/nature02360. [DOI] [PubMed] [Google Scholar]
- 12.Traulsen A, Claussen JC, Hauert C. Coevolutionary dynamics: From finite to infinite populations. Phys. Rev. Lett. 2005;95:238701. doi: 10.1103/PhysRevLett.95.238701. [DOI] [PubMed] [Google Scholar]
- 13.Roca CP, Cuesta JA, Sánchez A. Time scales in evolutionary dynamics. Phys. Rev. Lett. 2006;97:158701. doi: 10.1103/PhysRevLett.97.158701. [DOI] [PubMed] [Google Scholar]
- 14.Santos FC, Pacheco JM. Scale-free networks provide a unifying framework for the emergence of cooperation. Phys. Rev. Lett. 2005;95:098104. doi: 10.1103/PhysRevLett.95.098104. [DOI] [PubMed] [Google Scholar]
- 15.Santos FC, Pacheco JM, Lenaerts T. Evolutionary dynamics of social dilemmas in structured heterogeneous populations. Proc. Natl Acad. Sci. USA. 2006;103:3490–3494. doi: 10.1073/pnas.0508201103. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 16.Hilbe C, Röhl T, Milinski M. Extortion subdues human players but is finally punished in the prisoner’s dilemma. Nat. Commun. 2014;5:3976. doi: 10.1038/ncomms4976. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 17.Hilbe C, Šimsa Š, Chatterjee K, Nowak MA. Evolution of cooperation in stochastic games. Nature. 2018;559:246–249. doi: 10.1038/s41586-018-0277-x. [DOI] [PubMed] [Google Scholar]
- 18.Gómez-Gardeñes J, Campillo M, Floría LM, Moreno Y. Dynamical organization of cooperation in complex topologies. Phys. Rev. Lett. 2007;98:1–4. doi: 10.1103/PhysRevLett.98.108103. [DOI] [PubMed] [Google Scholar]
- 19.Li A, Wu B, Wang L. Cooperation with both synergistic and local interactions can be worse than each alone. Sci. Rep. 2014;4:5536. doi: 10.1038/srep05536. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 20.Zhou L, Li A, Wang L. Evolution of cooperation on complex networks with synergistic and discounted group interactions. Europhys. Lett. 2015;110:60006. doi: 10.1209/0295-5075/110/60006. [DOI] [Google Scholar]
- 21.Fehr E, Gächter S. Altruistic punishment in humans. Nature. 2002;415:137–140. doi: 10.1038/415137a. [DOI] [PubMed] [Google Scholar]
- 22.Milinski M, Sommerfeld RD, Krambeck H-J, Reed FA, Marotzke J. The collective-risk social dilemma and the prevention of simulated dangerous climate change. Proc. Natl Acad. Sci. USA. 2008;105:2291–2294. doi: 10.1073/pnas.0709546105. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 23.Traulsen A, Semmann D, Sommerfeld RD, Krambeck H-J, Milinski M. Human strategy updating in evolutionary games. Proc. Natl Acad. Sci. USA. 2010;107:2962–2966. doi: 10.1073/pnas.0912515107. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 24.Rand DG, Arbesman S, Christakis NA. Dynamic social networks promote cooperation in experiments with humans. Proc. Natl Acad. Sci. USA. 2011;108:19193–19198. doi: 10.1073/pnas.1108243108. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 25.Rand DG, Nowak MA, Fowler JH, Christakis NA. Static network structure can stabilize human cooperation. Proc. Natl Acad. Sci. USA. 2014;111:17093–17098. doi: 10.1073/pnas.1400406111. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 26.Xiao E, Houser D. Emotion expression in human punishment behavior. Proc. Natl Acad. Sci. USA. 2005;102:7398–7401. doi: 10.1073/pnas.0502399102. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 27.Gracia-Lázaro C, et al. Heterogeneous networks do not promote cooperation when humans play a Prisoner’s Dilemma. Proc. Natl Acad. Sci. USA. 2012;109:12922–12926. doi: 10.1073/pnas.1206681109. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 28.Burton-Chellew MN, El Mouden C, West SA. Conditional cooperation and confusion in public-goods experiments. Proc. Natl Acad. Sci. USA. 2016;113:1291–1296. doi: 10.1073/pnas.1509740113. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 29.Holme P, Saramäki J. Temporal networks. Phys. Rep. 2012;519:97–125. doi: 10.1016/j.physrep.2012.03.001. [DOI] [Google Scholar]
- 30.Masuda N, Klemm K, Eguíluz VM. Temporal networks: Slowing down diffusion by long lasting interactions. Phys. Rev. Lett. 2013;111:188701. doi: 10.1103/PhysRevLett.111.188701. [DOI] [PubMed] [Google Scholar]
- 31.Masuda, N. & Lambiotte, R. A Guide to Temporal Networks (World Scientific, Singapore, 2016).
- 32.Scholtes I, Wider N, Pfitzner R, Garas A, Tessone CJ, Schweitzer F. Causality-driven slow-down and speed-up of diffusion in non-Markovian temporal networks. Nat. Commun. 2014;5:5024. doi: 10.1038/ncomms6024. [DOI] [PubMed] [Google Scholar]
- 33.Perra N, Gonçalves B, Pastor-Satorras R, Vespignani A. Activity driven modeling of time varying networks. Sci. Rep. 2012;4:469. doi: 10.1038/srep00469. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 34.Lentz HHK, Selhorst T, Sokolov IM. Unfolding accessibility provides a macroscopic approach to temporal networks. Phys. Rev. Lett. 2013;110:118701. doi: 10.1103/PhysRevLett.110.118701. [DOI] [PubMed] [Google Scholar]
- 35.Li A, Cornelius SP, Liu Y-Y, Wang L, Barabási A-L. The fundamental advantages of temporal networks. Science. 2017;358:1042–1046. doi: 10.1126/science.aai7488. [DOI] [PubMed] [Google Scholar]
- 36.Helbing D, Yu W. The outbreak of cooperation among success-driven individuals under noisy conditions. Proc. Natl Acad. Sci. USA. 2009;106:3680–3685. doi: 10.1073/pnas.0811503106. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 37.Perc M, Szolnoki A. Coevolutionary games - a mini review. BioSystems. 2010;99:109–125. doi: 10.1016/j.biosystems.2009.10.003. [DOI] [PubMed] [Google Scholar]
- 38.Perc M. Double resonance in cooperation induced by noise and network variation for an evolutionary prisoner’s dilemma. New J. Phys. 2006;8:1–14. doi: 10.1088/1367-2630/8/1/001. [DOI] [Google Scholar]
- 39.Meloni S, Buscarino A, Fortuna L, Frasca M, Gómez-Gardeñes J, Latora V, Moreno Y. Effects of mobility in a population of prisoner’s dilemma players. Phys. Rev. E. 2009;79:067101. doi: 10.1103/PhysRevE.79.067101. [DOI] [PubMed] [Google Scholar]
- 40.Li A, Wu T, Cong R, Wang L. One step memory of group reputation is optimal to promote cooperation in public goods games. Europhys. Lett. 2013;103:30007. doi: 10.1209/0295-5075/103/30007. [DOI] [Google Scholar]
- 41.Pinheiro FL, Santos FC, Pacheco JM. Linking individual and collective behavior in adaptive social networks. Phys. Rev. Lett. 2016;116:128702. doi: 10.1103/PhysRevLett.116.128702. [DOI] [PubMed] [Google Scholar]
- 42.Cardillo A, Petri G, Nicosia V, Sinatra R, Gómez-Gardeñes J, Latora V. Evolutionary dynamics of time-resolved social interactions. Phys. Rev. E. 2014;90:1–11. doi: 10.1103/PhysRevE.90.052825. [DOI] [PubMed] [Google Scholar]
- 43.Barabási A-L. The origin of bursts and heavy tails in human dynamics. Nature. 2005;435:207–211. doi: 10.1038/nature03459. [DOI] [PubMed] [Google Scholar]
- 44.Karsai, M., Jo, H.-H. & Kaski, K. Bursty Human Dynamics (Springer International Publishing, New York, 2017).
- 45.Rapoport, A. & Chammah, A. Prisoner’s Dilemma: A Study in Conflict and Cooperation. Ann Arbor paperbacks (University of Michigan Press, Ann Arbor, 1965).
- 46.Szabó G, Fáth G. Evolutionary games on graphs. Phys. Rep. 2007;446:97–216. doi: 10.1016/j.physrep.2007.04.004. [DOI] [Google Scholar]
- 47.Isella L, Stehlé J, Barrat A, Cattuto C, Pinton J-F, den Broeckm WV. What’s in a crowd? Analysis of face-to-face behavioral networks. J. Theor. Bio. 2011;271:166–180. doi: 10.1016/j.jtbi.2010.11.033. [DOI] [PubMed] [Google Scholar]
- 48.Fournet J, Barrat A. Contact patterns among high school students. PLoS ONE. 2014;9:e107878. doi: 10.1371/journal.pone.0107878. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 49.Mastrandrea R, Fournet J, Barrat A. Contact patterns in a high school: A comparison between data collected using wearable sensors, contact diaries and friendship surveys. PLoS ONE. 2015;10:1–26. doi: 10.1371/journal.pone.0136497. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 50.Genois M, Vestergaard CL, Fournet J, Panisson A, Bonmarin I, Barrat A. Data on face-to-face contacts in an office building suggest a low-cost vaccination strategy based on community linkers. Netw. Sci. 2015;3:326–347. doi: 10.1017/nws.2015.10. [DOI] [Google Scholar]
- 51.Szolnoki A, Perc M. Emergence of multilevel selection in the prisoner’s dilemma game on coevolving random networks. New J. Phys. 2009;11:093033. doi: 10.1088/1367-2630/11/9/093033. [DOI] [Google Scholar]
- 52.Hindersin L, Traulsen A. Most undirected random graphs are amplifiers of selection for birth-death dynamics, but suppressors of selection for death-birth dynamics. PLoS Comput. Biol. 2015;11:1–14. doi: 10.1371/journal.pcbi.1004437. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 53.Herrerías-Azcué F, Pérez-Muñuzuri V, Galla T. Stirring does not make populations well mixed. Sci. Rep. 2018;8:1–9. doi: 10.1038/s41598-018-22062-w. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 54.Traulsen A, Nowak MA, Pacheco JM. Stochastic dynamics of invasion and fixation. Phys. Rev. E. 2006;74:011909. doi: 10.1103/PhysRevE.74.011909. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 55.Erdős P, Rényi A. On the evolution of random graphs. Publ. Math. Inst. Hung. Acad. Sci. 1960;5:17–60. [Google Scholar]
- 56.Barabási A-L, Albert R. Emergence of scaling in random networks. Science. 1999;286:509–512. doi: 10.1126/science.286.5439.509. [DOI] [PubMed] [Google Scholar]
- 57.Karsai M, et al. Small but slow world: How network topology and burstiness slow down spreading. Phys. Rev. E. 2011;83:025102. doi: 10.1103/PhysRevE.83.025102. [DOI] [PubMed] [Google Scholar]
- 58.Kivelä M, Pan RK, Kaski K, Kertész J, Saramäki J, Karsai M. Multiscale analysis of spreading in a large communication network. J. Stat. Mech. Theor. Exp. 2012;2012:P03005. doi: 10.1088/1742-5468/2012/03/P03005. [DOI] [Google Scholar]
- 59.Rocha LEC, Liljeros F, Holme P. Simulated epidemics in an empirical spatiotemporal network of 50,185 sexual contacts. PLoS Comput. Biol. 2011;7:e1001109. doi: 10.1371/journal.pcbi.1001109. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 60.Takaguchi T, Masuda N, Holme P. Bursty communication patterns facilitate spreading in a threshold-based epidemic dynamics. PLoS ONE. 2013;8:e68629. doi: 10.1371/journal.pone.0068629. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 61.Szolnoki A, Perc M, Danku Z. Making new connections towards cooperation in the prisoner’s dilemma game. Europhys. Lett. 2008;84:50007. doi: 10.1209/0295-5075/84/50007. [DOI] [Google Scholar]
- 62.Szolnoki A, Perc M. Resolving social dilemmas on evolving random networks. Europhys. Lett. 2014;16:1–14. [Google Scholar]
- 63.Perc, M., Jordan, J. J., Rand, D. G., Wang, Z., Boccaletti, S. & Szolnoki, A. Statistical physics of human cooperation. Phys. Rep. 687, 1–51 (2017).
- 64.Szolnoki A, Perc M, Szabó G. Topology-independent impact of noise on cooperation in spatial public goods games. Phys. Rev. E. 2009;80:056109. doi: 10.1103/PhysRevE.80.056109. [DOI] [PubMed] [Google Scholar]
- 65.Santos FC, Santos MD, Pacheco JM. Social diversity promotes the emergence of cooperation in public goods games. Nature. 2008;454:213–216. doi: 10.1038/nature06940. [DOI] [PubMed] [Google Scholar]
- 66.Cardillo A, Meloni S, Gómez-Gardeñes J, Moreno Y. Velocity-enhanced cooperation of moving agents playing public goods games. Phys. Rev. E. 2012;85:067101. doi: 10.1103/PhysRevE.85.067101. [DOI] [PubMed] [Google Scholar]
- 67.Gokhale C, Traulsen A. Evolutionary games in the multiverse. Proc. Natl Acad. Sci. USA. 2010;107:5500–5504. doi: 10.1073/pnas.0912214107. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 68.Friedman J, Higgins LM, Gore J. Community structure follows simple assembly rules in microbial microcosms. Nat. Ecol. Evol. 2017;1:0109. doi: 10.1038/s41559-017-0109. [DOI] [PubMed] [Google Scholar]
- 69.Capraro V, Perc M. Grand challenges in social physics: In pursuit of moral behavior. Front. Phys. 2018;6:107. doi: 10.3389/fphy.2018.00107. [DOI] [Google Scholar]
- 70.Goh KI, Kahng B, Kim D. Universal behavior of load distribution in scale-free networks. Phys. Rev. Lett. 2001;87:278701. doi: 10.1103/PhysRevLett.87.278701. [DOI] [PubMed] [Google Scholar]
Associated Data
This section collects any data citations, data availability statements, or supplementary materials included in this article.
Supplementary Materials
Data Availability Statement
All empirical datasets analysed in this work are publicly available through the SocioPatterns collaboration (http://www.sociopatterns.org).
The computer codes used in this work are available at https://github.com/leizhougetbetter/TemporalNetworks.




