1. Introduction
Cooperation, understood as behavior where individuals help others, has long constituted a major conundrum for science. Cooperative behavior seemingly contradicts the central prediction of Darwinian evolutionary theory that individuals will behave in ways that maximize their own gain. Nevertheless, cooperation is found widely across species, including humans, other mammals, fish, birds, insects, and microscopic organisms (Brask et al., Reference Brask, Croft, Edenbrow, James, Bleakley, Ramnarine, Heathcode, Tyler, Hamilton, Dabelsteen and Darden2019; Brucks and Bayern Reference Brucks and von Bayern2020; Carter and Wilkinson, Reference Carter and Wilkinson2013; Queller and Strassmann, Reference Queller and Strassmann1998; Rand and Nowak, Reference Rand and Nowak2013; Rutte and Taborsky, Reference Rutte and Taborsky2007; Turner and Chao, Reference Turner and Chao1999; Voelkl et al., Reference Voelkl, JPortugal, Unsöld, Usherwood, Wilson and Fritz2015). Explaining the evolution of cooperation has been called one of the biggest scientific challenges of our time (Pennisi, Reference Pennisi2005).
During recent decades, it has become clear that social network structure plays an essential role for the evolution of cooperation (Gokcekus et al., Reference Gokcekus, Cole, Sheldon and Firth2021; Jusup et al., Reference Jusup, Holme, Kanazawa, Takayasu, Romić, Wang, Geček, Lipic, Podobnik, Wang, Luo, Klanjšček, Fan, Boccaletti and Perc2022; Roca et al., Reference Roca, Cuesta and Sánchez2009; Szabó and Fáth, Reference Szabó and Fáth2007). Simulation studies have shown that while unstructured populations are not conducive to cooperation, certain network structures can promote and stabilize it (e.g. Assenza et al., Reference Assenza, Gómez-Gardeñes and Latora2008; Nowak and May, Reference Nowak and May1992; Ohtsuki et al., Reference Ohtsuki, Hauert, Lieberman and Nowak2006; Santos and Pacheco, Reference Santos and Pacheco2005; Santos et al., Reference Santos, Pacheco and Lenaerts2006b). There is also now extensive empirical evidence that nonrandom social network structure is ubiquitously present in different species (Brask et al., Reference Brask, Ellis and Croft2021; Krause et al., Reference Krause, James, Franks and Croft2015). This implies that the study of cooperation in social structures is of general importance for understanding the evolution cooperative behavior.
A social network can be described as a set of nodes and a set of edges, where each node constitutes an individual and the edges constitute their social connections. A large body of work has investigated how the spread and viability of cooperation is affected by different structural network features, such as degree distribution (Santos and Pacheco, Reference Santos and Pacheco2005, Reference Santos and Pacheco2006), degree heterogeneity (Santos et al., Reference Santos, Pacheco and Lenaerts2006b; Santos et al., Reference Santos, Pinheiro, Lenaerts and Pacheco2012), average degree (Ohtsuki et al., Reference Ohtsuki, Hauert, Lieberman and Nowak2006), degree assortativity (Duh et al., Reference Duh, Gosak, Slavinec and Perc2019; Rong et al., Reference Rong, Li and Wang2007; Wang et al., Reference Wang, Wang and Perc2014), clustering (Assenza et al., Reference Assenza, Gómez-Gardeñes and Latora2008; David-Barrett, Reference David-Barrett2023), and modularity (Gianetto and Heydari, Reference Gianetto and Heydari2015; Voelkl and Kasper, Reference Voelkl and Kasper2009; see Jusup et al., Reference Jusup, Holme, Kanazawa, Takayasu, Romić, Wang, Geček, Lipic, Podobnik, Wang, Luo, Klanjšček, Fan, Boccaletti and Perc2022; Roca et al., Reference Roca, Cuesta and Sánchez2009; Szabó and Fáth, Reference Szabó and Fáth2007 for reviews). However, while the role of network structure in the evolution of cooperation thus has been extensively investigated, little is known about the role of the positions of cooperative and defective individuals in the network (in other words, the role of correlations between cooperative strategy and node properties such as connectedness; Chen et al., Reference Chen, Fu and Wang2008). Across species, real-world social networks are characterized by considerable heterogeneity in the social positions of individuals, where some are more socially connected than others (Brask et al., Reference Brask, Ellis and Croft2021; Krause et al., Reference Krause, James, Franks and Croft2015). If cooperative individuals tend to have specific social network positions, this may affect the spread and persistence of cooperation. In particular, it may intuitively be expected that cooperation should fare better in situations where cooperative individuals have more social connections (higher degree) than defective individuals, as their higher connectedness potentially could help them propagate their strategy. Such effects could play an important role for the evolution of cooperation, but they are currently not well understood.
Here, we investigate how correlations between cooperative strategy and social connectedness affect the evolution of cooperation in different network structures. This can elucidate the importance of the network positions of cooperative individuals, and thereby increase our general understanding of the conditions under which cooperation can persist. The investigations are also relevant for situations where social networks are deliberately constructed. For example, in experiments with humans playing cooperation games in artificial network structures (e.g. Cassar, Reference Cassar2007; Gracia-Lázaro et al., Reference Gracia-Lázaro, Ferrer, Ruiz, Tarancón, Cuesta, Sánchez and Moreno2012; Grujić and Lenaerts Reference Grujić and Lenaerts2020; Li et al., Reference Li, Jusup, Wang, Li, Shi, Podobnik, Stanley, Havlin and Boccaletti2018; Melamed et al., Reference Melamed, Harrell and Simpson2018; Rand et al., Reference Rand, Nowak, Fowler and Christakis2014), initial stochastic correlations between cooperativeness and network position could potentially have a significant effect on the results and influence the conclusions of the experiments, in particular because the number of replications in such experiments can be low due to practical constraints.
We use a standard methodological approach for investigating the evolution of cooperation in networks, namely game theory-based simulation modeling. Evolutionary game theory provides a common framework for the study of cooperation (Leimar and McNamara, Reference Leimar and McNamara2023; Smith and Price, Reference Smith and Price1973; Smith, Reference Smith1982; Traulsen and Glynatsi, Reference Traulsen and Glynatsi2023). In this approach, the interaction between individuals is formalized as games where each player adopts one of a limited number of strategies, such as cooperative or defective (selfish). The game is played repeatedly and players adapt their strategies to optimize their performance in terms of game payoffs. Alternatively, each iteration can be interpreted as a reproductive generation, so that the adaptation is genetic. With this framework, it becomes possible to study the stability and dynamics of cooperation by looking at temporal changes in the frequency of cooperators. The evolution of cooperation in structured populations can be studied by simulating games on network structures where interactions occur over the network edges (the social connections), which has been done widely (reviewed in Jusup et al., Reference Jusup, Holme, Kanazawa, Takayasu, Romić, Wang, Geček, Lipic, Podobnik, Wang, Luo, Klanjšček, Fan, Boccaletti and Perc2022; Roca et al., Reference Roca, Cuesta and Sánchez2009; Szabó and Fáth, Reference Szabó and Fáth2007). A key outcome of the simulations is the fraction of cooperators in the population after a large number of timesteps (game rounds), which indicates the long-term viability of cooperation in the network. The simulations most often begin with the strategies being randomly assigned to the network nodes. In other words, usually cooperators and defectors are initially randomly positioned in the network (Roca et al., Reference Roca, Cuesta and Sánchez2009; Szabó and Fáth, Reference Szabó and Fáth2007).
In this study, we investigate the effect of nonrandom strategy positions on the spread and survival of cooperation. We specifically study the effect of correlations between cooperative strategy and node degree. We focus on degree because this is a fundamental measure of network position that is easily interpretable (as the number of social interaction partners an individual has). Our approach is to run simulations of the evolution of cooperation in networks, where cooperators are initially placed on well-connected (high-degree) nodes (stochastically or deterministically), and compare the results to those of corresponding simulations where the cooperators are placed randomly in the networks. We note that the simulations can be interpreted both as: (1) simulating systems where the correlations between strategy and network position is a result of the networks being deliberately constructed, for example as in human cooperation experiments; and (2) simulating systems where the correlations between strategy and network position is a result of previous evolution. Thus, the positioning of cooperators on well-connected nodes can be viewed either as the system’s actual initial conditions, or as a transient state. In either case, the simulations show how cooperators’ occupation of well-connected nodes affects subsequent strategy evolution.
We study the effects of the cooperator positions in Poisson networks and scale-free networks, which have been widely used in models of cooperation. We use standard versions of these networks that have been commonly used in other studies of cooperation in networks (Roca et al., Reference Roca, Cuesta and Sánchez2009; Szabó and Fáth, Reference Szabó and Fáth2007), as well as versions with increased degree assortativity (where individuals of similar connectedness are more likely to be linked to each other in the network; (Newman, Reference Newman2002; Noldus and Van Mieghem, Reference Noldus and Van Mieghem2015)). Such assortativity is frequently observed in real-world networks and is particularly likely to affect the evolution of cooperation when strategy is correlated to degree, because it then affects the extent to which cooperators are connected to each other.
We study the evolution of cooperation in these networks for two fundamental and commonly used game-theoretical formalisations of cooperative interactions, the Prisoner’s Dilemma game and the Snowdrift game. The Prisoner’s Dilemma game represents a situation where behaving cooperatively in itself is not beneficial to the actor, and cooperation cannot survive in a well-mixed (i.e. unstructured) population (without special mechanisms). This game embodies the paradox of the evolution of cooperation. The Snowdrift game represents a weaker social dilemma where behaving cooperatively in itself provides a benefit to the actor, and a well-mixed population in equilibrium can contain both cooperators and defectors.
2. Model
2.1 General modeling framework
The model simulates the dynamics of a cooperative strategy in network structures, with interactions between individuals (nodes) occurring across the network edges. While the network structure does not change throughout a simulation, the individuals change their strategies over time, and the main outcome of the simulation is the frequency of cooperators in the population after a set number of timesteps. Each timestep consists of an interaction phase, where all individuals connected by a direct edge interact pairwise, and an update phase, where all individuals update their strategy adaptively.
We focus on two-player, symmetric games with a binary choice of strategies, as is commonly done in models of cooperation. The game is determined by the following payoff matrix
For each node $i$ in the network, we will denote the strategy adopted by the corresponding individual by $s_i$ . The payoff for individual $i$ when playing against individual $j$ is then $M_{s_i s_j}$ .
Two well-known instances of games of the above form are the Prisoner’s Dilemma game and the Snowdrift game. They both formalize a situation where it is of advantage for the individual to defect (having $T$ as the highest payoff), but if both individuals defect they are worse off than if they both cooperate. In Prisoner’s Dilemma, the worst outcome is to be defected upon while cooperating, with the order of the payoffs being $T\gt R\gt P\gt S$ , whereas in the Snowdrift game, the worst is to be defected upon while defecting, with the payoff order being $T\gt R\gt S\gt P$ . Note that in Prisoner’s Dilemma, the strategy with the highest individual payoff is to defect regardless of the opponent’s strategy. In well-mixed populations (corresponding to networks where all nodes are connected directly to each other), evolution therefore selects for defection, and cooperation does not survive. In the Snowdrift game, the best payoff depends on the opponent’s strategy, and cooperation and defection can co-exist in unstructured populations.
In our simulations, we use common one-parameter versions of the two games (Hauert and Doebeli, Reference Hauert and Doebeli2004; Nowak and May, Reference Nowak and May1992; Santos and Pacheco, Reference Santos and Pacheco2005, Reference Santos and Pacheco2006), where the severity of the social dilemma (how hard it is for cooperation to evolve, everything else equal) is determined by a single parameter. For Prisoner’s Dilemma, we set $R = 1$ and $P=S=0$ , and the game is parameterized by the benefit to defectors $b=T$ . For $b=1$ there is no dilemma, while larger values represent larger temptation to defect (making it harder for cooperation to evolve). As is often done, we take $1 \leq b \leq 2$ . The Snowdrift game is parameterized by the cost-to-benefit ratio of mutual cooperation $0 \lt \rho \leq 1$ , with $T=\frac{1}{2}(\rho ^{-1}+1)$ , $R=\frac{1}{2}\rho ^{-1}$ , $S=\frac{1}{2}(\rho ^{-1} - 1)$ , and $P=0$ . In unstructured populations, $1-\rho$ is the equilibrium fraction of cooperators (for replicator dynamics).
In the interaction phase of each simulation timestep, each individual plays a single game round with each of its network neighbors. We define an individual’s fitness in a given timestep to be its summed game payoffs for that timestep. That is, for an individual defined by a node $i$ , the fitness is
where $\mathcal{N}_i$ is the set of neighboring nodes of $i$ .
The simulation proceeds to the update phase when all network neighbors have interacted. Here, each individual decides whether to change its strategy, based on how well it did in the interaction phase in terms of fitness. Strategy update is synchronous and follows the proportional imitation update rule (Hauert and Doebeli, Reference Hauert and Doebeli2004; Santos and Pacheco, Reference Santos and Pacheco2005). For an individual defined by node $i$ , a neighbor $j$ is chosen uniformly at random from the set of neighbors $\mathcal{N}_i$ . If the neighbor has higher fitness than $i$ , that is $F_j \gt F_i$ , then $i$ adopts its strategy with probability
where $k_i$ denotes the degree of node $i$ , and $D$ is the difference between the largest and smallest payoffs for the given game ( $D=T-S$ for Prisoner’s Dilemma and $D=T-P$ for Snowdrift). The denominator ensures normalization of the probability. We note that the above update rule corresponds to replicator dynamics adjusted to structured, finite populations (Hauert and Doebeli, Reference Hauert and Doebeli2004; Hofbauer and Sigmund, Reference Hofbauer and Sigmund1998; Santos and Pacheco, Reference Santos and Pacheco2005), and that it assumes that individuals do not have perfect information on their neighbors (a relevant assumption for many cases in social systems). Also note that the update phase can alternatively be interpreted as reproduction, in which case each timestep is a generation.
2.2 Networks
We use four types of networks: standard versions of Poisson and scale-free networks, and versions of these networks with the same degree distributions but with increased degree assortativity. All networks have $N=10^3$ nodes (large enough to avoid boundary effects, Santos and Pacheco, Reference Santos and Pacheco2005) and an average degree of $\bar{k}=10$ , and we use only networks where all nodes are contained in a single component, i.e. all individuals are at least indirectly connected to each other.
For the standard networks, we use Poisson networks of the Erdős-Rényi type (Erdős and Rényi Reference Erdős and Rényi1960) and scale-free networks of the Barabási-Albert type (Barabási and Albert, Reference Barabási and Albert1999). To generate versions of these networks with increased degree assortativity, we apply the algorithm introduced by Xulvi-Brunet and Sokolov (Xulvi-Brunet and Sokolov, Reference Xulvi-Brunet and Sokolov2004), which preserves the degree distribution of the network. The algorithm consists of iterated rewiring rounds. In each rewiring round, two edges of the network are chosen uniformly at random and one of two rewiring schemes are carried out: (i) with probability $p$ the edges are rewired such that one edge connects the two nodes of highest degree and one connects the two nodes of lowest degree (if this is not already the case); (ii) with probability $1-p$ the edges are rewired at random. The degree assortativity of the network can thus be controlled by varying $p$ . We use $p=1$ (i.e. maximal degree assortativity given the degree distribution and the condition of all nodes belonging to the same component). The rewiring procedure must be repeated sufficiently many times that almost all edges have been rewired, i.e. such that every edge has been selected for rewiring with high probability. Denoting the total number of edges in the network by $L$ , after $\tau$ iterations the probability that a given edge has not yet been selected is $(1-2/L)^\tau \approx e^{-2\tau /L}$ for large $L$ . The number of edges not yet selected is thus approximately $L e^{-2\tau /L}$ . Requiring this number to be of order unity, we see that we need $\tau \approx L \log\!(L)/2$ iterations. To make sure we reach maximum assortativity for a given network, we take $\tau = 10 L\log\!(L)$ .
2.3 Correlations between cooperative strategy and social connectedness
We use three levels of correlation between cooperative strategy and social connectedness (degree), which we create by using different methods for how strategies (cooperate and defect) are assigned to nodes in the beginning of the simulations. Denoting the total number of nodes by $N$ and the number of cooperators by $N_c$ , the fraction of cooperators in the population is $r = N_c/N$ . The initial fraction of cooperators is $r_{in}$ , and we take $r_{in} = 1/2$ . To create the three levels of strategy-degree correlations, We use the following strategy assignment procedures:
-
(1) No correlation (uniform assignment). Here, cooperators are placed randomly in the network and there is no correlation induced between strategy and connectedness, giving a baseline for our investigations. $N r_{in}$ nodes are picked uniformly at random among all nodes and assigned the cooperator strategy, and the remaining nodes are assigned the defector strategy. The probability for any given node of being a cooperator thus equals $r_{in}$ .
-
(2) Intermediate correlation (stochastic-by-degree assignment). Here, cooperators are placed preferentially on high-degree nodes, but with stochasticity in the placement, creating intermediate correlation between strategy and connectedness. Nodes to be assigned the cooperator strategy are selected sequentially based on their relative degree. The first cooperator node is drawn among all nodes, with the probability of drawing node $i$ given by $k_i / \sum _j k_j$ , where $k_i$ is the degree of node $i$ . Each subsequent cooperator node is drawn from the remaining set of nodes according to $k_i / \sum _{j\notin \mathcal{C}} k_j$ , where $\mathcal{C}$ is the set of nodes which have already been selected. This is iterated until $N r_{in}$ nodes have been assigned the cooperator strategy. The remaining nodes are assigned the defector strategy.Footnote 1
-
(3) Perfect correlation (deterministic-by-degree assignment). Here, cooperators are placed on the highest-degree nodes without any stochasticity in the placement, giving perfect correlation between strategy and connectedness. The $N r_{in}$ nodes of highest degree are assigned the cooperator strategy and the rest are assigned the defector strategy.
2.4 Simulation procedures
We run simulations for all combinations of the two games, the four network types, and the three levels of strategy-degree correlation (strategy assignment methods) described above. For each of these 24 combinations, we run simulations for different severities of the social dilemma (that is, for different values of the game parameters $b$ and $\rho$ ). We run 50 replications for each setting (i.e. for each combination of game, network type, strategy-degree correlation level, and game parameter value). All simulations have a total of $t_{max}=10^4$ timesteps, and the average final fraction $r_{fin}$ of cooperators for a given setting is calculated as the average fraction in the last 100 timesteps of the 50 replications.
An example of a simulation run (a single replication) is shown in Figure 1. In this particular example, the cooperator fraction drops from the initial value of 0.5 to close to zero at the end of the simulation, i.e. cooperation approaches extinction. The example is for Prisoner’s Dilemma with intermediate strategy-degree correlation (stochastic-by-degree strategy assignment), and the insets indicate that higher-degree nodes, as expected, tend to be more likely to be cooperators.
3. Results
The simulation results are shown in Figure 2. For the standard networks (Figure 2, top row of plots), the social connectedness of cooperators has an effect on the evolution of cooperation only in scale-free networks, for both games. For standard scale-free networks (Figure 2a,c), the average final cooperator fraction is increased for the whole game parameter range for both games, when there is correlation between cooperative strategy and degree (intermediate or perfect). For standard Poisson networks (Figure 2b,d), the strategy-degree correlations have negligible effect for both games. Also, for each of the standard networks, the final cooperator fractions for the intermediate and perfect correlation between strategy and degree are almost indistinguishable. In the standard networks, the effect of cooperator connectedness thus mainly depends on the network type (scale-free vs. Poisson), with similar results for the two games and the two types of non-zero correlation. The results show that when cooperators occupy well-connected network positions, it increases cooperation in scale-free networks.
The picture is somewhat different for the networks with increased degree assortativity (Figure 2, bottom row of plots). For degree-assorted scale-free networks, both types of strategy-degree correlation (intermediate and perfect) enhance cooperation for Prisoner’s Dilemma, with the perfect correlation having a larger effect (Figure 2e). For the Snowdrift game, however, the effects in this network type are very limited (Figure 2g). For degree-assorted Poisson networks, the intermediate strategy-degree correlation does not affect cooperation (Figure 2f,h). In contrast, the perfect correlation has a large, positive effect for all $b\gt 1$ for Prisoner’s Dilemma, and also enhances cooperation for large $\rho$ for the Snowdrift game. Hence, for the networks with increased degree assortativity, the effect of correlation between cooperative strategy and social connectedness depends non-trivially on the combination of the network type, the game, and the level of correlation (presence of stochasticity in the cooperator placement). Here, cooperators’ occupation of well-connected network positions can enhance cooperation in both scale-free and Possion networks, under certain conditions.
4. Discussion
Our results support the intuitive expectation that well-connected cooperators can enhance the spread and persistence of cooperation, but also show that they only do so under certain conditions. We see that in standard networks (without increased degree assortativity), the enhancement depends on the network type, with correlation between cooperative strategy and social connectedness (degree) having an effect on final cooperator fractions in scale-free networks and negligible effect in Poisson networks. In degree-assorted networks, we find a more involved pattern of effects, and further investigation of our results confirm that this pattern is due to specific strategy dynamics arising from the modular nature of the degree-assorted networks. Here, bridge areas between clusters of individuals with similar degree can act as barriers for the spread of the defective strategy when cooperators are occupying high-degree nodes, which can lead to a large increase (towards 40 percent) in the average final cooperator fraction; but this increase is sensitive to Trojan horses, i.e. defectors placed within the cooperator clusters (when the correlation between strategy and degree is imperfect), which can counteract the protective effect of the bridge areas. In the following we go into further details about these insights. We first consider why well-connected cooperators sometimes—but not always—enhance cooperation, and we thereafter focus on the dynamics behind the results in degree-assorted networks.
4.1 Presence and absence of enhancement of cooperation when cooperators are well connected
To understand why well-connected cooperators sometimes—but not always—enhance the spread and persistence of cooperation, we may consider the mechanisms by which increased social connectedness can help them promote their strategy. Firstly, the cooperators’ higher number of edges means that they are more likely to be picked as role models when individuals update their strategy (while this is not true in the limit of perfect degree assortativity, we checked that it holds true for all the network types used here). Secondly, well-connected cooperators have higher maximal fitness (because a higher number of social partners means increased opportunity to gain benefits from cooperative interactions, c.f. Eq. (2)), and this increases the chance that their strategy will actually be copied when they are used as role models (because individuals only copy strategies from neighbors with higher fitness than themselves). Together, these circumstances can increase the chance that cooperators will spread their strategy to neighbors, when the relative connectedness of cooperators is increased.
However, we see from the results that correlation between cooperative strategy and social connectedness does not always enhance cooperation (even under perfect correlation). This has to do with the fact that cooperators and defectors do not get the same payoff from the same neighborhood, meaning that everything else equal, a cooperator having a higher degree than a defector is not always enough for it to gain higher fitness than the defector. More specifically, a cooperator generally needs to have considerably more cooperator neighbors than a defector, to get a higher fitness than the defector (see Appendix A for details). A higher degree for the cooperator will not always lead to this requirement being satisfied, and therefore does not necessarily give the cooperator advantage over the defector. In the standard networks, we saw positive effects of the correlations between cooperativeness and degree in scale-free networks, whereas there were no effects in the Poisson networks - even under perfect correlation. Our results thus show that the cooperators’ benefit from higher social connectedness is too small to affect the final outcome in standard Poisson networks, whereas in standard scale-free networks the advantage cooperators gain from the increased connectedness leads to positive effects on the evolution of cooperation.
4.2 Degree assortativity creates barriers that can strongly enhance cooperation, but their effect can be counteracted by Trojan horses
In the networks with increased degree assortativity, we see an interesting pattern with strong enhancements of cooperation under the perfect correlation between cooperative strategy and social connectedness, in particular in Poisson networks where the average final cooperator fraction stays relatively high throughout the game parameter ranges (above about 20 percent, Figure 2). This enhancement comes about because of the structure of the degree-assorted networks, where nodes are clustered by degree. When cooperators occupy the high-degree nodes, the bridge areas between clusters act as barriers against the defector strategy, leading to dynamics where the defector strategy invades a cluster rapidly and then is stopped by the bridges, where it then waits until it might eventually overcome them and invade the next cluster. This limits the spread of defection and thereby leads to the high final cooperator fractions. These dynamics can be seen from further investigation of the simulation results. An example of how the defector strategy is stopped at bridge areas for a single simulation is shown in Figure 3. More generally, the pattern is evidenced by the average defector degree over time, which increases in very rapid steps (corresponding to the overtaking of clusters), separated by long periods of no change (corresponding to the spread of defection being hindered by bridge areas; Figure 4). And finally, the dynamics are also reflected in the distributions of final cooperator fractions (Figure 5), where we see that in the degree-assorted network, these fractions occur in multiple distinct peaks that correspond to the defector strategy waiting by the various bridge areas (a pattern that arises because the simulation is statistically unlikely to stop during the rapid cluster invasions).
We do not observe a strong enhancement of cooperation in the degree-assorted networks when the correlation between cooperative strategy and degree is intermediate. In this case, the protection from the bridge areas is counteracted by what we term Trojan horses, i.e. defectors placed within cooperator-dominated clusters, which facilitate the spread of the defective strategy from within the clusters. Our results thus show that although the extent of the strategy-degree correlations (intermediate or perfect) made virtually no difference in the standard networks, it can make a major difference under increased degree assortativity, via the Trojan-horse effect.
While this study focuses on the effect of correlations between strategy and connectedness on cooperation, the results also add to the knowledge about the effect of degree assortativity. Degree assortativity (also known as degree mixing or degree-degree correlation) has been studied in various settings, including multilayer networks (e.g. Wang et al., Reference Wang, Wang and Perc2014; Duh et al., Reference Duh, Gosak, Slavinec and Perc2019) and evolving networks (e.g. Tanimoto, Reference Tanimoto2010), and analytical measures for the heterogeneity of networks with degree assortativity have been developed (Devlin and Treloar, Reference Devlin and Treloar2009). The effect of degree in the absence of any degree variation (i.e. perfect degree assortativity) has also been investigated (e.g. Stella et al., Reference Stella, Baar and Bauso2022). Rong et al., studied the effect of directly tuning the degree assortativity in static networks, similarly to the method we used here to create versions of standard networks with increased degree assortativity (Rong et al., Reference Rong, Li and Wang2007). They found that increased degree assortativity in itself can decrease cooperation, which is also seen in our results under no correlation and intermediate correlation between cooperative strategy and social connectedness. Interestingly, we observe that the perfect correlation between strategy and connectedness counteracts the negative effect of degree assortativity to such an extent that in the Poisson networks, cooperation does better in the degree-assorted networks than in the standard networks (Figure 2f,h vs. Figure 2b,d).
We also note that under certain circumstances (the Prisoner’s Dilemma with perfect strategy-degree correlation and degree assortativity; Figure 2e,f), cooperation does better under Poisson degree distribution than under scale-free degree distribution. This is opposite to the pattern found for standard Poisson and scale-free networks (Figure 2a,b and previous studies, e.g. Santos and Pacheco, Reference Santos and Pacheco2006), where cooperation does much better under scale-free degree distribution than under Poisson distribution. This demonstrates that the generally observed positive relationship between degree heterogeneity and cooperation (Santos et al., Reference Santos, Pacheco and Lenaerts2006b; Santos et al., Reference Santos, Pinheiro, Lenaerts and Pacheco2012) is under some conditions overruled.
4.3 Further remarks
Our study implies that correlation between cooperativeness and social connectedness is a relevant factor to consider both for our understanding of the evolution of cooperation in general and when designing and conducting scientific investigations of cooperation. Empirical experiments of humans playing cooperation games in constructed networks constitutes an important tool in the study of cooperation (e.g. Cassar, Reference Cassar2007; Gracia-Lázaro et al., Reference Gracia-Lázaro, Ferrer, Ruiz, Tarancón, Cuesta, Sánchez and Moreno2012; Grujić and Lenaerts Reference Grujić and Lenaerts2020; Li et al., Reference Li, Jusup, Wang, Li, Shi, Podobnik, Stanley, Havlin and Boccaletti2018; Melamed et al., Reference Melamed, Harrell and Simpson2018; Rand et al., Reference Rand, Nowak, Fowler and Christakis2014, see also Jusup et al., Reference Jusup, Holme, Kanazawa, Takayasu, Romić, Wang, Geček, Lipic, Podobnik, Wang, Luo, Klanjšček, Fan, Boccaletti and Perc2022). Given that the number of replicates in such experiments can be low due to practical constraints, random variation in initial conditions can have significant effects. Our results imply that if cooperative individuals are by chance placed in more well-connected network positions, this can potentially affect the experimental results. We also saw that the amount of variation in the final cooperator fractions differed between settings, with some of them having more propensity for outliers than others (Figure 5, and see Appendix B for similar plots for the other settings), increasing the chance of getting unrepresentative experimental results. Such effects can therefore be important to consider when conducting network cooperation experiments. Similarly, the results show that initial conditions (here in the form of strategy-degree correlations) can have considerable effects in simulation studies of cooperation in networks, which underlines the importance of using replications in such studies.
We have looked at the evolution of cooperation in static networks (where the structure does not change). This allowed us to investigate how the effect of correlations between cooperative strategy and social connectedness depends on the network structure. While social systems of humans and other species are dynamic in the sense that they consist of series of time-limited social interactions, temporal changes in the emerging social network structures (that is, termination and emergence of social bonds) may be slow, which is supported by the finding of long-term stability in the structure of social networks in multiple species (Borgeaud et al., Reference Borgeaud, Sosa, Sueur and Bshary2017; Godfrey et al., Reference Godfrey, Sih and Bull2013; Kerth et al., Reference Kerth, Perony and Schweitzer2011; Prehn et al., Reference Prehn, Laesser, Clausen, Jønck, Dabelsteen and Brask2019). When changes in the real social structures are much slower than the rate by which individuals change their cooperative strategies, then static social networks can approximate the systems well in investigations of the evolution of cooperation. Our results imply that correlations between cooperative strategy and social connectedness can potentially contribute to the persistence and spread of cooperation in real-world networks with stable social structures. Such effects may also be relevant in unstable networks, depending on the nature of the social linking dynamics (Santos et al., Reference Santos, Pacheco and Lenaerts2006a; Zimmermann and Eguíluz, Reference Zimmermann and Eguíluz2005; Tanimoto, Reference Tanimoto2010; Duh et al., Reference Duh, Gosak and Perc2020). Investigations of the role of correlations between strategy and network position for the evolution of cooperation in real and simulated social systems with different levels of stability (Li et al., Reference Li, Zhou, Su, Cornelius, Liu, Wang and Levin2020) constitute an exiting avenue for future research.
Acknowledgements
We thank Sylvia Dimitriadou, Tim Fawcett, and Andrew Higginson for helpful comments on an earlier version of the manuscript.
Competing interests
The authors declare no competing interests.
Data availability statement
This paper does not use any data.
Funding statement
This research was supported by a grant from the Carlsberg Foundation (grant number: CF20-0663) to Josefine Bohr Brask, and a grant from the Independent Research Fund Denmark (grant number: 7027-00044B) to Jonatan Bohr Brask.
A. Neighborhoods and fitness
Consider a cooperator node of degree $k$ with $n$ cooperator neighbors and a defector node of degree $k^{\prime}$ with $n^{\prime}$ cooperator neighbors. The fitness of two such nodes for games with payoffs such as those used here (formalised in Eq. (1)) will be respectively
and
The cooperator has higher fitness than the defector when $F\gt F^{\prime}$ . For the one-parameter Prisoner’s Dilemma game, the payoffs are $S=P=0$ , $R=1$ , and $T=b$ , and thus $F\gt F^{\prime}$ if and only if
That is, a cooperator must have $b$ times as many cooperator neighbors as a defector to gain a higher fitness. For the one-parameter Snowdrift game, we have $T=\frac{1}{2}(\rho ^{-1}+1)$ , $R=\frac{1}{2}\rho ^{-1}$ , $S=\frac{1}{2}(\rho ^{-1} - 1)$ , and $P=0$ . In this case $F\gt F^{\prime}$ when
We see that for the Snowdrift game, the cooperator also benefits from a high number of cooperator neighbors, but a sufficiently high degree can compensate for a low number of cooperator neighbors. The inequality is always fulfilled for $k=n^{\prime}(1+\rho )/(1-\rho )$ . However, for cost-to-benefit ratios approaching 1 this diverges, and so in this regime $n$ must again be larger than $n^{\prime}$ . For the most severe instances of both games, i.e. for the parameter settings making it hardest for cooperation to evolve ( $b=2$ and $\rho =1$ ), cooperators need to have more than twice as many cooperator neighbors as defectors to achieve higher fitness.
B. Final cooperator fraction figures
Distributions of final cooperator fractions for the Prisoner’s Dilemma game and the Snowdrift game, for all combinations of the four network types and the three levels of strategy-degree correlation. For each combination, the distribution is shown for each used value of the respective game parameter.