Abstract
Models of strategy evolution on static networks help us understand how population structure can promote the spread of traits like cooperation. One key mechanism is the formation of altruistic spatial clusters, where neighbors of a cooperative individual are likely to reciprocate, which protects prosocial traits from exploitation. However, most real-world interactions are ephemeral and subject to exogenous restructuring, so that social networks change over time. Strategic behavior on dynamic networks is difficult to study, and much less is known about the resulting evolutionary dynamics. Here we provide an analytical treatment of cooperation on dynamic networks, allowing for arbitrary spatial and temporal heterogeneity. We show that transitions among a large class of network structures can favor the spread of cooperation, even if each individual social network would inhibit cooperation when static. Furthermore, we show that spatial heterogeneity tends to inhibit cooperation, whereas temporal heterogeneity tends to promote it. Dynamic networks can have profound effects on the evolution of prosocial traits, even when individuals have no agency over network structures.
This is a preview of subscription content, access via your institution
Relevant articles
Open Access articles citing this article.
-
Fixation probability in evolutionary dynamics on switching temporal networks
Journal of Mathematical Biology Open Access 28 September 2023
Access options
Access Nature and 54 other Nature Portfolio journals
Get Nature+, our best-value online-access subscription
$29.99 / 30 days
cancel any time
Subscribe to this journal
Receive 12 digital issues and online access to articles
$99.00 per year
only $8.25 per issue
Rent or buy this article
Prices vary by article type
from$1.95
to$39.95
Prices may be subject to local taxes which are calculated during checkout






Data availability
Source data are provided with this paper.
Code availability
All numerical calculations and computational simulations were performed in Julia 1.4.1. All data analyses were performed in Matlab R2020a. All codes have been deposited into the publicly available GitHub repository at https://github.com/qisu1991/DynamicNetworks ref. 59.
References
Ohtsuki, H., Hauert, C., Lieberman, E. & Nowak, M. A. A simple rule for the evolution of cooperation on graphs and social networks. Nature 441, 502–505 (2006).
Holme, P. & Saramäki, J. Temporal networks. Phys. Rep. 519, 97–125 (2012).
Vazquez, A., Rácz, B., Lukács, A. & Barabási, A. L. Impact of non-Poissonian activity patterns on spreading processes. Phys. Rev. Lett. 98, 158702 (2007).
Onnela, J. P. et al. Structure and tie strengths in mobile communication networks. Proc. Natl Acad. Sci. USA 104, 7332–7336 (2007).
Isella, L. et al. What’s in a crowd? Analysis of face-to-face behavioral networks. J. Theor. Biol. 271, 166–180 (2011).
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 10, 1–26 (2015).
Ulanowicz, R. E. Quantitative methods for ecological network analysis. Comput. Biol. Chem. 28, 321–339 (2004).
Bascompte, J. & Jordano, P. Plant-animal mutualistic networks: the architecture of biodiversity. Annu. Rev. Ecol. Evol. Syst. 38, 567–593 (2007).
Miele, V. & Matias, C. Revealing the hidden structure of dynamic ecological networks. R. Soc. Open Sci. 4, 170251 (2017).
Akbarpour, M. & Jackson, M. O. Diffusion in networks and the virtue of burstiness. Proc. Natl Acad. Sci. USA 115, E6996–E7004 (2018).
Onaga, T., Gleeson, J. P. & Masuda, N. Concurrency-induced transitions in epidemic dynamics on temporal networks. Phys. Rev. Lett. 119, 108301 (2017).
Kun, Á. & Scheuring, I. Evolution of cooperation on dynamical graphs. BioSystems 96, 65–68 (2009).
Fulker, Z., Forber, P., Smead, R. & Riedl, C. Spite is contagious in dynamic networks. Nat. Commun. 12, 260 (2021).
Taylor, P. D., Day, T. & Wild, G. Evolution of cooperation in a finite homogeneous graph. Nature 447, 469–472 (2007).
Allen, B. & McAvoy, A. A mathematical formalism for natural selection with arbitrary spatial and genetic structure. J. Math. Biol. 78, 1147–1210 (2019).
Allen, B. et al. Evolutionary dynamics on any population structure. Nature 544, 227–230 (2017).
Pacheco, J. M., Traulsen, A. & Nowak, M. A. Coevolution of strategy and structure in complex networks with dynamical linking. Phys. Rev. Lett. 97, 258103 (2006).
Santos, F. C., Pacheco, J. M. & Lenaerts, T. Cooperation prevails when individuals adjust their social ties. PLoS Comput. Biol. 2, 1284–1291 (2006).
Pacheco, J. M., Traulsen, A., Ohtsuki, H. & Nowak, M. A. Repeated games and direct reciprocity under active linking. J. Theor. Biol. 250, 723–731 (2008).
Van Segbroeck, S., Santos, F. C., Lenaerts, T. & Pacheco, J. M. Reacting differently to adverse ties promotes cooperation in social networks. Phys. Rev. Lett. 102, 058105 (2009).
Wu, B. et al. Evolution of cooperation on stochastic dynamical networks. PLoS ONE 5, e11187 (2010).
Fehl, K., van der Post, D. J. & Semmann, D. Co-evolution of behaviour and social network structure promotes human cooperation. Ecol. Lett. 14, 546–551 (2011).
Rand, D. G., Arbesman, S. & Christakis, N. A. Dynamic social networks promote cooperation in experiments with humans. Proc. Natl Acad. Sci. USA 108, 19193–19198 (2011).
Bravo, G., Squazzoni, F. & Boero, R. Trust and partner selection in social networks: an experimentally grounded model. Soc. Netw. 34, 481–492 (2012).
Wang, J., Suri, S. & Watts, D. J. Cooperation and assortativity with dynamic partner updating. Proc. Natl Acad. Sci. USA 109, 14363–14368 (2012).
Bednarik, P., Fehl, K. & Semmann, D. Costs for switching partners reduce network dynamics but not cooperative behaviour. Proc. R. Soc. B Biol. Sci. 281, 20141661 (2014).
Cardillo, A. et al. Evolutionary dynamics of time-resolved social interactions. Phys. Rev. E 90, 52825 (2014).
Harrell, A., Melamed, D. & Simpson, B. The strength of dynamic ties: the ability to alter some ties promotes cooperation in those that cannot be altered. Sci. Adv. 4, eaau9109 (2018).
Akçay, E. Collapse and rescue of cooperation in evolving dynamic networks. Nat. Commun. 9, 2692 (2018).
Wong, B. B. M. & Candolin, U. Behavioral responses to changing environments. Behav. Ecol. 26, 665–673 (2014).
Tilman, A. R., Plotkin, J. B. & Akçay, E. Evolutionary games with environmental feedbacks. Nat. Commun. 11, 915 (2020).
Nowak, M. A., Sasaki, A., Taylor, C. & Fudenberg, D. Emergence of cooperation and evolutionary stability in finite populations. Nature 428, 646–650 (2004).
McAvoy, A. & Allen, B. Fixation probabilities in evolutionary dynamics under weak selection. J. Math. Biol. 82, 14 (2021).
Fisher, R. A. The Genetical Theory of Natural Selection (Clarendon, 1930).
Taylor, P. D. Allele-frequency change in a class-structured population. Am. Naturalist 135, 95–106 (1990).
McAvoy, A. & Wakeley, J. Evaluating the structure-coefficient theorem of evolutionary game theory. Proc. Natl Acad. Sci. USA 119, e2119656119 (2022).
Gernat, T. et al. Automated monitoring of behavior reveals bursty interaction patterns and rapid spreading dynamics in honeybee social networks. Proc. Natl Acad. Sci. USA 115, 1433–1438 (2018).
Erdös, P. & Rényi, A. On the evolution of random graphs. Publ. Math. Institute Hung. Acad. Sci. 5, 17–61 (1960).
Watts, D. J. & Strogatz, S. H. Collective dynamics of ‘small-world’ networks. Nature 393, 440–442 (1998).
Barabási, A.-L. & Albert, R. Emergence of scaling in random networks. Science 286, 509–512 (1999).
Lieberman, E., Hauert, C. & Nowak, M. A. Evolutionary dynamics on graphs. Nature 433, 312–316 (2005).
Pan, R. K. & Saramäki, J. Path lengths, correlations and centrality in temporal networks. Phys. Rev. E 84, 016105 (2011).
Holme, P. Modern temporal network theory: a colloquium. Eur. Phys. J. B 88, 234 (2015).
Valdano, E., Ferreri, L., Poletto, C. & Colizza, V. Analytical computation of the epidemic threshold on temporal networks. Phys. Rev. X 5, 21005 (2015).
Povinelli, D. J., Nelson, K. E. & Boysen, S. T. Comprehension of role reversal in chimpanzees: evidence of empathy? Animal Behav. 43, 633–640 (1992).
Su, Q., Allen, B. & Plotkin, J. B. Evolution of cooperation with asymmetric social interactions. Proc. Natl Acad. Sci. USA 119, e2113468118 (2022).
Peysakhovich, A., Nowak, M. A. & Rand, D. G. Humans display a ‘cooperative phenotype’ that is domain general and temporally stable. Nat. Commun. 5, 4939 (2014).
Harmer, G. & Abbott, D. Losing strategies can win by Parrondo’s paradox. Nature 402, 864 (1999).
Girvan, M. & Newman, M. E. Community structure in social and biological networks. Proc. Natl Acad. Sci. USA 99, 7821–7826 (2002).
Newman, M. E. Modularity and community structure in networks. Proc. Natl Acad. Sci. USA 103, 8577–8582 (2006).
Blonder, B., Wey, T. W., Dornhaus, A., James, R. & Sih, A. Temporal dynamics and network analysis. Methods Ecol. Evol. 3, 958–972 (2012).
Fudenberg, D. & Imhof, L. A. Imitation processes with small mutations. J. Econ. Theory 131, 251–262 (2006).
Tarnita, C. E., Ohtsuki, H., Antal, T., Fu, F. & Nowak, M. A. Strategy selection in structured populations. J. Theor. Biol. 259, 570–581 (2009).
Tarnita, C. E., Antal, T., Ohtsuki, H. & Nowak, M. A. Evolutionary dynamics in set structured populations. Proc. Natl Acad. Sci. USA 106, 8601–8604 (2009).
Tarnita, C. E., Wage, N. & Nowak, M. A. Multiple strategies in structured populations. Proc. Natl Acad. Sci. USA 108, 2334–2337 (2011).
Débarre, F. Imperfect strategy transmission can reverse the role of population viscosity on the evolution of altruism. Dyn. Games Appl. 10, 732–763 (2019).
McAvoy, A., Allen, B. & Nowak, M. A. Social goods dilemmas in heterogeneous societies. Nat. Hum. Behav. 4, 819–831 (2020).
Allen, B. & McAvoy, A. The coalescent with arbitrary spatial and genetic structure. Preprint at https://arxiv.org/abs/2207.02880 (2022).
Su, Q. qisu1991/DynamicNetworks: Version 1.0.0 - Initial Release of Code for Research Paper ‘Strategy Evolution on Dynamic Networks’ https://doi.org/10.5281/zenodo.8215243 (Zenodo, 2023).
Goh, K. I., Kahng, B. & Kim, D. Universal behavior of load distribution in scale-free networks. Phys. Rev. Lett. 87, 278701 (2001).
Holme, P. & Kim, B. J. Growing scale-free networks with tunable clustering. Phys. Rev. E 65, 2–5 (2002).
Acknowledgements
This work is supported by the Simons Foundation (Math+X Grant to the University of Pennsylvania). J.B.P. acknowledges generous support by the John Templeton Foundation (grant no. 62281) and the David & Lucille Packard Foundation.
Author information
Authors and Affiliations
Contributions
Q.S. and A.M. conceived the project and derived analytical results. Q.S. performed numerical calculations. Q.S., A.M. and J.B.P. analyzed the data. Q.S., A.M. and J.B.P. wrote the main text. Q.S. and A.M. wrote the Supplementary Information.
Corresponding authors
Ethics declarations
Competing interests
The authors declare no competing interests.
Peer review
Peer review information
Nature Computational Science thanks Bin Wu and the other, anonymous, reviewer(s) for their contribution to the peer review of this work. Primary Handling Editor: Fernando Chirigati, in collaboration with the Nature Computational Science team. Peer reviewer reports are available.
Additional information
Publisher’s note Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Extended data
Extended Data Fig. 1 The cooperation-promoting effects of structure transitions as the sizes of the two communities vary.
The dynamic network is illustrated in Fig. 2a, with a fraction a (resp. 1 − a) of nodes in the top (resp. bottom) community. The critical benefit-to-cost ratio, (b/c)*, is shown as a function of a. The dots are the results of numerical calculations with N = 10, 000 and the lines are analytical approximations for sufficiently large N. The rescaled duration is t = 1.
Extended Data Fig. 2 A qualitative analysis of cooperator expansion in the star community. and cooperator reduction in the complete community.
a, We consider a configuration where the hub node and n − 1 other nodes are cooperators in each community, and the rest are defectors. The fecundity of the hub node in the star community is given by \({F}_{{{{\rm{star}}}},{{{\rm{hub}}}}}=\exp [\delta (nb-Nc/2)]\). And the fecundity of a cooperator the other nodes is given by \({F}_{{{{\rm{star}}}},{{{\rm{C}}}}}=\exp [\delta (b-c)]\); whereas the fecundity of a defector node is given by \({F}_{{{{\rm{star}}}},{{{\rm{D}}}}}=\exp [\delta b]\). We can also derive expressions for fecundities in the complete community: \({F}_{{{{\rm{comp}}}},{{{\rm{hub}}}}}=\exp [\delta (nb-Nc/2)]\), \({F}_{{{{\rm{comp}}}},{{{\rm{C}}}}}=\exp [\delta ((n-1)b-(N/2-1)c)]\), \({F}_{{{{\rm{comp}}}},{{{\rm{D}}}}}=\exp [\delta nb]\). Finally, we can calculate the expected change in the number of cooperators in each community, denoted by Δstar in the star community and Δcomp in the complete community. b, The expected change in the number of cooperators in the star community and in the complete community, for across the full range sub-graph sizes, n. Dots are obtained by Δstar and Δcomp. Horizontal lines mark the average change across all possibilities of n. The increase in the number of cooperators in the star community exceeds the decrease in the number of cooperators in the complete community. Parameters: N = 40, δ = 0.1, b = 10, c = 1.
Extended Data Fig. 3 Cooperation-promoting effects of dynamic multi-community networks.
We consider networks made up of eight communities connected via hub nodes (see Fig. 5a; panels a and b here) and via leaf nodes (see Fig. 5b; panels c and d here). a, c, The critical ratio (b/c)* as a function of population size N, for the rescaled duration t = 1. b, d, The critical ratio (b/c)* as a function of the rescaled duration t, for N = 200.
Extended Data Fig. 4 Cooperation-promoting effects of structure transitions among more than two networks, and when networks differ in a small fraction of connections.
a, Structure transitions among three networks. Every network transitions to another network with probability 1/(2tN) and remains unchanged otherwise. b, Structure transitions between multi-community networks in which the two networks differ in only two communities. We take N = 150 in a and N = 64 in b, and the rescaled duration is t = 1.
Extended Data Fig. 5 Dynamic networks promote and accelerate the fixation of cooperators.
We consider the network with a star community and a complete-graph community with N = 16 and a = 0.5 (see Fig. 2a). a, Fixation probability of cooperators as a function of the rescaled duration, t, in network 1 and in the dynamic network. The dynamic network leads to the larger fixation probability of cooperators than in network 1. b, Conditional and unconditional fixation times as functions of the rescaled duration, t. Both the conditional and unconditional times in the dynamic networks are smaller than in network 1. We take selection intensity δ = 0.1.
Extended Data Fig. 6 Dynamic structures can inhibit spite for a broad range of population sizes, under birth-death updating.
We consider transitions between the two networks shown in Fig. 2a in the main text, each composed of a sparse community and a dense community. The figure plots the critical benefit-to-cost ratio for cooperation as a function of population size, N, for a = 0.5 and t = 1. Under birth-death updating, spite rather than cooperation can evolve, as indicated by a negative critical ratio (b/c)*. These dynamic networks, compared with static networks, reduce the magnitude of the critical ratio, thus making spiteful behavior harder to evolve.
Extended Data Fig. 7 Dynamic structures can facilitate cooperation under strong selection.
We consider transitions between the two networks shown in Fig. 2a in the main text, each composed of a sparse community and a dense community. The figure plots the fixation probability of cooperation versus defection, ρC − ρD, as a function of the benefit b in the donation game, for N = 12, a = 0.5, and t = 1. These dynamic networks are more beneficial than static networks, for the evolution of cooperation. Selection strength: δ = 0.1.
Supplementary information
Source data
Source Data Fig. 2
Statistical source data.
Source Data Fig. 3
Statistical source data.
Source Data Fig. 6
Statistical source data.
Source Data Extended Data Fig. 1
Statistical source data.
Source Data Extended Data Fig. 2
Statistical source data.
Source Data Extended Data Fig. 3
Statistical source data.
Source Data Extended Data Fig. 5
Statistical source data.
Source Data Extended Data Fig. 6
Statistical source data.
Source Data Extended Data Fig. 7
Statistical source data.
Rights and permissions
Springer Nature or its licensor (e.g. a society or other partner) holds exclusive rights to this article under a publishing agreement with the author(s) or other rightsholder(s); author self-archiving of the accepted manuscript version of this article is solely governed by the terms of such publishing agreement and applicable law.
About this article
Cite this article
Su, Q., McAvoy, A. & Plotkin, J.B. Strategy evolution on dynamic networks. Nat Comput Sci 3, 763–776 (2023). https://doi.org/10.1038/s43588-023-00509-z
Received:
Accepted:
Published:
Issue Date:
DOI: https://doi.org/10.1038/s43588-023-00509-z
This article is cited by
-
Flipping the intuition for games on dynamic networks
Nature Computational Science (2023)
-
Fixation probability in evolutionary dynamics on switching temporal networks
Journal of Mathematical Biology (2023)