Introduction

What drives the association between the host specificity of parasites and the parasite species richness of the hosts that they infect? Generalist parasites are often found in hosts with both high and low parasite species diversity, while specialist parasites are found mainly in hosts with a rich diversity of parasites (Poulin 1997; Vázquez et al. 2005). This association, between the specificity of parasites and the species richness of the hosts that they infect, is known as specialization asymmetry (Vázquez et al. 2005) or, in a slightly stronger case, as nestedness. Nestedness occurs when the sets of parasite species found in species-poor hosts form subsets of those in hosts with a higher species richness (Poulin and Guégan 2000). In other words, the parasites of hosts attacked by few species are also found parasitising hosts with many parasitic species. These patterns can be seen from parasites in fish species (Poulin 1997) to fleas and their hosts (Vázquez et al. 2005), although there is some debate on the extent to which this is evident, and many counterexamples exist (Poulin 1997, 2007; Valtonen et al. 2001). Definitions of anti-nestedness vary from random assemblages to compartmentalized, depending on the metric used for measurement (Almeida-Neto et al. 2007).

Nestedness is also evident in many other food webs (Ings et al. 2009), and there is mixed evidence for whether the addition of parasites to these webs should increase or decrease their relative nestedness (Hernandez and Sukhdeo 2008; Lafferty et al. 2006). Nestedness is a feature which is particularly prevalent in mutualistic networks (Bascompte et al. 2003; Vázquez and Aizen 2003, 2004), an interesting fact given the complete reversal in interaction types involved when compared to host–parasite networks. Nevertheless, in order to fit parasites into food web models, it is important to understand the forces behind such structural traits as nestedness, particularly as antagonistic networks are instead generally expected to be compartmentalized (Bascompte 2010; Thébault and Fontaine 2008; Thompson 2005; but see Flores et al. 2011 for the effects of scale dependence).

What is clear is that structural patterns of species interactions in ecological networks, such as nestedness and anti-nestedness, are not random (Joppa et al. 2010). Vázquez et al. (2005) constructed a null model based on host abundance to account for such patterns, yet there may be many more explanations for the link between the specificity of a parasite and the parasite species richness of the hosts that it infects (Lewinsohn et al. 2006; Poulin 2007). This does not, for example, explain the frequent occurrence of anti-nestedness. Further explanations for nestedness in networks include complementarity (Rezende et al. 2007), based on phenotypic matching between species, and competitive load (Bastolla et al. 2009), based on a new species entering a network targeting a host with less competition provided by resident parasite species.

Another possible driving force behind the link between specificity and species richness is related to the levels of defense that a host exhibits. For example, avian fleas with different levels of specificity target hosts with different levels of T cell-mediated immune response (Møller et al. 2005). Generalist parasites target hosts with weak levels of immune response, while parasites with fewer host species exploit those with both strong and weak immune responses. This also has an effect on the parasite species richness of host species, with hosts with stronger immune responses being parasitized by a greater number of species. In this instance, then, the specificity of parasites and specialization asymmetry appears to be related to the host immune response (Møller et al. 2005). Here, this idea is turned around slightly, but the concept of a relationship between host response and specificity is maintained.

It is becoming increasingly apparent that the coevolution of species is an important driving force in host–parasite relationships (Best et al. 2009). Best et al. (2010) show the importance of such coevolutionary ecological feedbacks in the adaption of species to one another and the effects that this has on the evolution and branching of resistance and infectivity traits. This coevolution can lead to more complicated and interesting dynamics than simple evolution only, such as cycles in levels of virulence and resistance (Sasaki 2000), and is known to influence the strength of interspecies interactions (Kopp and Gavrilets 2006). It is also widely acknowledged that trade-offs in resource allocation are responsible for much evolutionary drive in parasites, such as the link between virulence and transmission (May and Anderson 1983). In our paper, it is postulated that the link between specificity and richness may be driven by the coevolution of both hosts and parasites when balancing the allocation of resources (see Poulin and Morand 2004). These resources are devoted in different degrees to interactions with one species versus another, either for infection or for preventing infection.

As an example, the influenza virus binds to cell-surface oligosaccharides via a sialic acid receptor. The receptor type may have one of two conformations: Neu 5Acα(2,3)-Gal or Neu5Acα(2,6)-Gal. A host species may have one of the two or both (Cobey et al. 2010), but the virus must adapt to one linkage type at the expense of the other. Other examples include phenotypic trait matching, such as the shape of mouthparts of ectoparasites (Graham et al. 2009) or nectar holder size and shape in mutualistic pollinator networks (Vázquez et al. 2009). From the host perspective, a behavioral example involves reindeer and other herd animals, which often group in a reaction to parasitism by biting flies, reducing their chances of attack. This does, however, lead to an increased risk of exposure to other pathogens which rely on host density for transmission (Hart 1988).

Using the above concepts, the following is proposed: if an infection is more prevalent, then a host will have a higher likelihood of coming into contact with it and adapting to fight it, allocating a greater amount of resource to this and increasing its immune response. A host has, however, limited resources with which to do so (Poitrineau et al. 2003; Poulin and Morand 2004). Similarly, a parasite may infect multiple hosts. It will, however, be better adapted to infect some than others, and again, there will be a trade-off in terms of its efficiency in infecting a host species (see Poulin 1998). It is, therefore, assumed that both host and parasite species trade off their resources between those species that they target. This trade-off aims to incorporate all of the ideas discussed above. A more abundant species will provide more available hosts for a parasite. A lower competitive load will encourage infection of that host as an untapped resource. Lastly, complementarity will ensure that a species will target another with complimentary trait values (parasites will infect hosts which are more vulnerable to them, while hosts will protect themselves against parasites which are more of a threat).

With this in mind, we create a toy model here which investigates the coevolution of trade-offs in a dynamical manner, for a four-species system containing two species of each type: hosts and parasites. This may be thought of as a cluster of species forming a “compartment” in a larger food web, and hence, more general results may be inferred from the results obtained (see Joppa et al. 2009). Although this is simply a toy problem, Fig. 1 gives an indication of what specialization asymmetry might look like in this case and, hence, the patterns we might expect the model to show for nestedness and anti-nestedness in a larger system. It is important to stress that in order to fully understand the influence of these trade-offs on nestedness, the investigation of a larger system is necessary (McQuaid and Britton 2013).

Fig. 1
figure 1

Possible interaction matrices for a two-host (y-axes) two-parasite (x-axes) network. A black square represents an interaction between two species and a white, no interaction. Plots demonstrate specialization asymmetry: (a) a generalist and a specialist parasite and (b) two specialist parasites in the same host, and specialization symmetry: (c) two specialist parasites in opposite hosts and (d) two generalist parasites

We outline a model describing the system and its mathematical motivation, following this with a brief analysis and an investigation of the coevolutionary dynamics. The results are compared to a previous null model based on abundance (Vázquez et al. 2005) in order to demonstrate the compatibility of this theory with our model.

Model

A standard susceptible–infected system is assumed, with two species of hosts and two of parasites. This model has the potential for both specialist and generalist parasites (in one or both hosts, respectively) as well as species-poor and species-rich hosts (containing neither parasite, one only, or both). S i refers to susceptibles of host type i, while \(I_{ij}\) refers to infecteds of host type i with parasite type j, where in this instance \(i,j\in \mathbb{N}_{2}\). We then have

$$\begin{array}{rll} \frac{\mathrm{d}S_{i}}{\mathrm{d}t} &=& \alpha_{i}N_{i} - \sum\limits_{j\in\mathbb{N}^{2}} a_{ij}c_{ij} S_{i} F^{i}_{j}-\omega_{i} S_{i}N_{i},\\ \frac{\mathrm{d}I_{ij}}{\mathrm{d}t} &=& a_{ij}c_{ij} S_{i}F^{i}_{j}- \gamma_{ij}I_{ij}-\omega_{i}I_{ij} N_{i}.\end{array}$$
(1)

The model contains birth \((\alpha_{i})\) and density-dependent death \((\omega_{i})\) rates dependent on the host species i, as well as infection-related death; and death rate \(\gamma_{ij}\) of host species i due to parasite species j. \(N_{i}=S_{i}+I_{i1}+I_{i2}\) represents the total population size of host species i.

The maximum force of infection \(F_{j}^{i}\) of parasite species j on host species i is given by

$$F_{j}^{i}=\sum\limits_{k\in\mathbb{N}_{2}}\beta_{j}^{ik}I_{kj},$$

where \(\beta _{j}^{ik}\) is the pairwise potential infectious contact rate for the transfer of parasite j from host k to host i. In our model, the actual force of infection \(G_{j}^{i}\) is assumed to be moderated by the strategies adopted by the parasite j and the host i. It is given by

$$ G_{j}^{i} = a_{ij}c_{ij}F_{j}^{i} = a_{ij}c_{ij}(\beta_{j}^{i1}I_{1j} + \beta_{j}^{i2}I_{2j}), $$

with \(0 \leq a_{ij} \leq 1,\,0 \leq c_{ij} \leq 1\). Here, \(a_{ij}\) is a parasite-related trait defining the relative probability of success of parasite j’s attack on host i, and \(c_{ij}\) is a host-related trait defining the relative probability of failure of host i’s defense against parasite j. All else being equal, parasites benefit from values of \(a_{ij}\) that are as high as possible, while hosts benefit from values of \(c_{ij}\) that are as low as possible.

We assume, however, that each parasite species j has a fixed amount of resource to allocate to infection and that there is, therefore, a trade-off between the strength \(a_{1j}\) of its attack against host 1 and the strength \(a_{2j}\) of its attack against host 2. This trade-off is assumed to be a decreasing function, which is species-specific and is not dependent upon the population or environment. A host species i, meanwhile, varies strategy \(c_{ij}\) in order to reduce transmission of parasite j, and a similar trade-off is presumed.

Transmission of infection to a susceptible host then depends on the actual force of infection, a measure of both the propensity of the parasite to infect that host, as well as the host’s propensity to defend itself against the parasite.

In reality, it is difficult to determine the shapes such trade-offs take (Best et al. 2009), and these can affect aspects such as the generation of diversity (Bastolla et al. 2009). A general trade-off shape therefore allows for a greater understanding on different possible evolutionary outcomes (Kisdi 2006). Points at which an evolutionary stable strategy may exhibit evolutionary branching also often depend on the nature of the trade-off function presumed, more specifically, whether it is concave or convex, and the extent of this (Kisdi 2006). Levins’ fitness set approach (Rueffler et al. 2006) has previously influenced intuitive thoughts on the effects of these shapes under normal evolutionary conditions, with a generalist expected if a trade-off is convex, or weak, and either specialist expected if a trade-off is concave or strong.

The trade-off shape is determined here by a species-specific power (\(\theta _{j}\) for parasite species j and \(\phi ^{i}\) for host species i), where

$$a_{2j}=(1-a_{1j}^{\theta_{j}})^{\frac{1}{\theta_{j}}} \quad \text{ and } \quad c_{i2}=(1-c_{i1}^{\phi_{i}})^{\frac{1}{\phi_{i}}}.$$

For parasite species \(j, \theta _{j}<1\) implies a strong trade-off, and \(\theta _{j}>1\) implies a weak trade-off (see Fig. 2). A parasite is a perfect generalist if \(a_{1j}=a_{2j}=(0.5)^{\frac {1}{\theta _{j}}}\), which is henceforth termed the neutral point. It is a complete specialist if \(a_{1j}=0\) and \(a_{2j}=1\) or vice versa. This is similar for host species. Note that the tendency is for trade-offs to be strong, not weak (Rueffler et al. 2006).

Fig. 2
figure 2

Examples of trade-off shapes for trait values of parasite species 1, where the trade-off is either strong (\(\theta_{1}=0.5\)) or weak (\(\theta_{1}=2\))

The second derivative of the trade-off function, the degree to which it is concave or convex, can have an enormous effect on the possibility of evolutionary branching (see Kisdi 2006). The sign of this depends wholly upon the value of the species-specific trade-off shape, and so the system will exhibit very different behavior around this point. The more concave a function is, the more likely the system is to exhibit branching (Kisdi 2006). Note that the second derivative is maximized (either positive or negative depending on the trade-off shape) for parasite j at \(a_{1j}=(0.5)^{\frac {1}{\theta _{j}}},\) where

$$\frac{d^{2} a_{2j}}{da^{2}_{1j}} = (\theta_{j}-1),$$

and similarly for host species. This affects the direction in which trait values mutate, which will be discussed in greater detail in the following sections.

Analysis

This model is analyzed using adaptive dynamics. This assumes rare mutants with marginally different phenotypic effects to residents, which may then invade the population if their growth rate is positive in an equilibrium environment (Dercole et al. 2003). This approach does assume clonal reproduction, but the results still hold for random mating in monomorphic diploid populations with polygenic traits if mutations are rare with small phenotypic effect (Law et al. 2001; Rueffler et al. 2006). The growth rate of a mutant phenotype, while rare, is termed the invasion fitness and is important in determining whether that mutant may invade, and potentially replace, a resident (de Mazancourt and Dieckmann 2004). The population evolves in the direction of the fitness gradient (the change in the invasion fitness with respect to change in the mutant trait value) as successive mutations occur and then spread through the population (de Mazancourt and Dieckmann 2004). The invasion fitness can then be used to discover singularities, where the fitness gradient of any local mutant is zero, and to investigate the nature of these singularities (Geritz et al. 1998). Examples of the derivation of the invasion conditions for both parasites and hosts are given in the Appendix for a system without coinfection or recovery.

The invasion condition for a mutant of parasite species 1, \(I_{i1}'\), with strategy \((a_{i1}')\) in a resident population at a stable nontrivial equilibrium \((S_{i}=S_{i}^{*},\, I_{ij}=I_{ij}^{*})\), is given by

$$ u_{1}(\delta_{11},a_{11},\delta_{21},a_{21})>0, $$
(2)

where

$$\begin{array}{@{}rcl@{}} u_{1}(\delta_{11},a_{11},\delta_{21},a_{21}) &=& \beta^{12}_{1} \beta^{21}_{1} I^*_{11}I^*_{21} (\delta_{11}a_{21}+a_{11}\delta_{21}) \\ &&+\beta^{21}_{1}\beta^{11}_{1} (I^*_{11})^{2} \delta_{11}a_{21} \\ &&+ \beta^{12}_{1} \beta^{22}_{1}(I^*_{21})^{2} a_{11}\delta_{21}. \end{array}$$
(3)

Similarly, the invasion condition for a mutant of host species 1, \((S_{1}',\, I_{1j}')\) with trait values \(c_{1j}'\), introduced at low densities to a resident population at equilibrium \((S_{i} = S_{i}^{*}, \, I_{ij}=I_{ij}^{*})\), is given by

$$w_{1}(\epsilon_{11},c_{11},\epsilon_{12},c_{12})>0,$$
(4)

where

$$\begin{array}{@{}rcl@{}} w_{1}(\epsilon_{11},c_{11},\epsilon_{12},c_{12}) &=& c_{12}\epsilon_{11}\alpha_{1}I^{*}_{11}+c_{11}\epsilon_{12}\alpha_{1} I^{*}_{12} \\ &&-c_{11} c_{12}a_{11}S^{*}_{1} F^{1*}_{1}\epsilon_{11} \\ &&-c_{11} c_{12} a_{12} S^{*}_{1} F^{1*}_{2}\epsilon_{12}. \end{array}$$
(5)

The derivation of these conditions is discussed in detail in the Appendix. From the initial analysis, it appears that parasites infect more vulnerable hosts but also aim to be generalists. Hosts trade-off between the pressures exerted by different parasite species, aiming to lower this as much as possible, but similarly aim to generalize their defense. This is all as expected and demonstrates the biological validity of our trade-off.

Simplifications of the above scenario demonstrate that the coevolution of all four species is vitally important, as expected. If one or more species is missing from the system, then the trade-off ensures that the dynamics are trivial, with those that have two antagonists splitting their resources as before, while those that have only one concentrate their resources on that one. This demonstrates the importance of such a system, incorporating both multiple hosts and parasites, unlike many previous approaches taken when modeling host–parasite systems.

Results

Simulation of the results follows the method of Dieckmann and Law (1996), concerning the frequency and impact of selection, where evolutionary dynamics occur at a much slower rate than population dynamics (see Drossel and McKane 2005). This relies on the derivative with respect to the mutant trait value of the growth rate of the mutant in a population of residents. As a result of the appropriate eigenvalue equations, discussed in the Appendix, and noting that \(\lambda \) must be small, the dominant eigenvalues may be approximated up to some positive multiplicative coefficients by Eqs. (7) and (8) for parasite species 1 and host species 1, respectively. We, therefore, use the following general equation for species k with trait value \(s_{k}\) and the appropriate approximation for the eigenvalue \(E_{k}\):

$$\frac{\mathrm{d}}{\mathrm{d}t}s_{k}=f_{k}(s)\cdot\left.\frac{\partial}{\partial s_{k}'} E_{k} (s_{k}',s) \right|_{s_{k}'=s_{k}},$$
(6)

where \(f_{k}\)is the evolutionary rate coefficient (see Dieckmann and Law 1996. This is initially assumed to be equal for all species, although the effects of varying it are discussed later). This differential equation is calculated for an environment determined by resident trait values s for all species.

Changes to trait values with time are then investigated, where species can coevolve. It is presumed that \(\phi _{i}=1\) for hosts, so the trade-off shape is linear, and initial trait values are at the neutral point (0.5 here, where a species is assumed to be a perfect generalist), in order to attempt to separate the effects of hosts and parasites. There are a number of possible cases for different \(\theta \) values; trade-off curves of both parasite species may be either concave or convex (\(\theta <1\) or \(\theta >1\), respectively).

A look at the pairwise invasion plots for cases with different trade-off strengths demonstrates the outcomes that we expect (see Fig. 3). Pairwise invasion plots indicate when a mutant can invade (shaded) or not (white) depending on its trait value relative to the resident trait value. This property depends on the mutant’s invasion fitness at low frequency in a resident population. The population evolves as small mutations occur which move the population off the diagonal (Geritz et al. 1998). If the mutation is successful (i.e., the mutant is in a shaded area), then the mutant population grows, and it displaces the resident to become the new resident (Geritz et al. 1998). In Fig. 3a here, for example, this occurs until the population’s trait value reaches an extreme, depending on which side of the central point the resident trait value begins. Species with a strong trade-off are likely to evolve to be specialists (Fig. 3a), while those with a weak trade-off are expected to evolve towards generalism (Fig. 3b).

Fig. 3
figure 3

Pairwise invasion plots for a, b parasite 1 and c host 1 in a symmetric environment, with intraspecies transmission higher than interspecies transmission. Mutant trait values are on the y-axes, while resident trait values are on the x-axes. Trade-off shapes are a strong for the parasites and b weak for the parasites, while linear for the hosts, and c either strong or weak for the hosts while linear for the parasites

Figure 3 demonstrates the evolution of one parasite only, in a static environment where no other species evolves. In a full analysis, this will not be the case. This motivates us to follow the coevolution of trait values for all four species simultaneously. Results are demonstrated in Figs. 4 and 5.

Fig. 4
figure 4

Examples of the evolution of interaction strengths (as a result of species trait values) with time in a symmetric environment, with intraspecies transmission higher than interspecies transmission. Rates of change of trait values are calculated directly from the growth rates of mutant traits in a resident population. Trade-off shapes are linear for hosts and a weak or b mixed for parasites. The inset in b shows the initial dynamics of the system before the slower host mutations have had an effect. Note that \(H_{1}P_{1}\) and \(H_{2} P_{1}\) represent interactions between parasite species 1 and host species 1 and 2, respectively, while \(H_{1}P_{2}\) and \(H_{2}P_{2}\) represent the same for parasite species 2

Fig. 5
figure 5

Examples of the evolution of interaction strengths with time in a symmetric environment, where the trade-off shapes for both parasites are strong \((\theta _{j}=0.5)\). Different end points occur as a result of the initial equilibrium values for susceptible and infected hosts. These result in parasites in a the same or b opposite hosts

In Figs. 4 and 5, although mutation rates are taken to be identical for hosts and parasites, the growth rate of mutant hosts in a resident environment is significantly slower than that of parasites. We measure the interaction strength here as a combination of the trait values for both species interacting.

Again, we assume a linear trade-off for hosts, which have initial trait values at their respective neutral points. If trade-offs are taken to be linear for parasites as well, then stable limit cycles occur (although see Nuismer et al. 2007 for suggestions that, in reality, these only occur if the strength of coevolutionary selection exceeds a certain threshold). In Fig. 4a, where \(\theta _{1},\theta _{2}>1\), generalist parasites evolve. Here, the trait values of parasites can be seen to evolve towards their neutral points. Note that the system cycles around the neutral point until both parasites are perfect generalists. This corresponds to Fig. 1d.

For the case where the trade-offs for the parasites are strong for one parasite and weak for the other (Fig. 4b), we obtain the coexistence of a relative generalist and an extreme specialist in the same hosts. Note that this system takes much longer over evolutionary time to equilibrate than other cases due to the slow growth rate of mutant host populations. Hence, we see different dynamics over short (Fig. 4b inset) and long (Fig. 4b) time scales. Before the hosts are able to react to the presence of the parasites, we see a generalist host that is more focused on the opposite host to the specialist (interactions \(H_{1}P_{1}\) and \(H_{2}P_{2}\) are stronger than \(H_{2}P_{1}\) and \(H_{1}P_{2}\), respectively), whereas once the host mutant populations have had an effect, we see that both the relative generalist and the specialist parasite are more focused on the same host (interactions \(H_{1}P_{1}\) and \(H_{1}P_{2}\) are stronger). As a host which contains only a generalist would be able to focus its defensive efforts on that parasite, and hence, as can be seen from Eq. (7), the parasite would not target it, we see only comparative generalists here. This system demonstrates specialization asymmetry and, indeed, nestedness (as far as that is plausible in such a small system) over longer evolutionary time scales, corresponding to Fig. 1a.

For the case where both \(\theta _{j}<1\) (Fig. 5), specialists always evolve. These can evolve to be in the same hosts (i.e., \(H_{1}P_{1}\) and \(H_{1}P_{2}\) evolve to the same extreme, Fig. 5a), or in opposite hosts \((H_{1}P_{1}\) and \(H_{1}P_{2}\) at the opposite extremes, Fig. 5b). These scenarios bear resemblances to specialization asymmetry (Fig. 1b) and compartmentalization (Fig. 1c where the network is split into separate sub-networks that are not linked to one another), respectively.

Initial trait values

From the parasite conditions for invasion, it can be seen that the behavior of the cases depends heavily on the initial equilibrium conditions, which are a result of the initial trait values. The behavior of each scenario pivots around which side of case-specific points the initial trait values lie, similarly to which side of an evolutionary stable strategy an initial point lies in a pairwise invasion plot (see Fig. 3). Each case has only a limited number of evolutionary end points for trait values and evolves to these. An analysis of the initial trait values shows interesting results.

For the case of a weak trade-off for both parasites (Fig. 4a), although generalists occur almost exclusively in “opposite” hosts, the interaction strengths evolve to be so similar that only a very careful inspection can detect the difference. In other words, two generalists occur, each slightly more dependent on a different host. If one parasite has a strong trade-off and the second a weak trade-off, a relative specialist and a relative generalist occur, respectively, in the same host (Fig. 4b). This demonstrate specialization asymmetry and occurs for all initial trait values. For the case where both parasites demonstrate a strong trade-off (Fig. 5), Fig. 6a shows the initial trait values which lead to specialization asymmetry.

Fig. 6
figure 6

A sketch of the end points of evolution, in terms of species richness, for different initial trait values for a strong trade-off (\(\theta _{j}=0.5\)) for parasite species, where host initial traits are at the neutral point. Black areas denote those initial trait values that evolve to have parasites in opposite hosts, while white areas denote those for which parasites evolve to be in the same host for a a low host mutation rate and b a high mutation rate for hosts. Arrows indicate the direction of evolution of interaction strengths. Note that the trait value for each parasite with respect to the second host is determined by the trait value for the first and, hence, is not included in these plots

Increasing the hosts mutation rates (\(f_{k}\) from Eq. (6)) serves to alter the shape of the curves towards that found in Fig. 6b. The much faster generation time of parasites has been used in the past to justify the study of their evolution alone, as opposed to a full coevolutionary system (Vázquez and Aizen 2004). Even including coevolution, however, it has been shown by Best et al. (2009) that different mutation rates do have a significant effect. In our simulations, where the growth rates of mutant host populations in resident environments appear significantly slower than those of mutant parasite populations, increasing the mutation rates of hosts in comparison to parasites greatly increases the chances of specialization asymmetry occurring for a wider range of initial trait values when a strong trade-off exists for parasites. This indicates not only the circumstances under which we might expect to see asymmetry but also a possible line of experimentation to take in order to validate our results.

Phase diagrams of all possible outcomes across different parasite and host trade-off strengths are given in Fig. 7. From this, we see that varying the host trade-off strength yields either limit cycles or specialization asymmetry. The linearity of parasite trade-offs appears to be sufficient to ensure that the system remains in a limit cycle and does not equilibrate (as seen in Fig. 7a when parasite trade-off strengths are linear), whenever host trade-offs are either both strong or both weak. This suggests that the parasite trade-offs are often what stabilize the system, possibly due to the relative growth rate of parasite mutant populations. We also see that generalist parasites do not appear to exist when their trade-offs are linear, even when trade-offs of hosts vary. An example of a limit cycle is given in Fig. 8.

Fig. 7
figure 7

Phase diagram of equilibria of a system as a parasite and b host trade-off strengths are varied (remaining trade-off strengths are linear). Dashed lines represent limit cycles, and solid lines, specialization asymmetry

Fig. 8
figure 8

Example of the evolution of interaction strengths with time in a symmetric environment, where the trade-off shapes for both hosts are weak \((\phi _{i}=2)\), and stable limit cycles are seen

The addition of both recovery terms and coinfected classes to the system, computed numerically, demonstrated increased likelihoods of specialization asymmetry occurring, again, dependent on both the initial trait values and relative mutation rates of species (unpublished results).

Allowing only parasites or hosts to mutate demonstrates the importance of the coevolution of all four species. If parasites only are allowed to evolve, then we obtain similar results to Fig. 7a with low host mutation rates, except that we see specialization symmetry, as opposed to asymmetry, occurring when parasite trade-offs are mixed. Hence, parasites are found primarily in opposite species, reducing the likelihood of this scenario displaying nestedness at a larger dimension. We note that the general shape of the pairwise invasion plots in Fig. 3 will be unaltered for each parasite by differences in the other parasite’s trait values, and, as the hosts are unable to evolve, we can determine the nature of evolution immediately for each parasite species. If a parasite species has a weak trade-off, then it will approach a continuously stable strategy, and if it has a strong trade-off, then the evolutionary repeller will ensure that it evolves to an extreme, and branching is unlikely.

In comparison, allowing hosts only to evolve, perfect generalisms are exclusively formed. A comparison of the pairwise invasion plots shows that these have evolved to continuously stable strategies (unpublished results) whether the trade-off strength is strong or weak. We see, therefore, that the coevolution of all four species is vital in allowing for the presence of both specialization asymmetry and limit cycles. Without this, we rarely see evidence for anything approaching nestedness in our system.

Abundance

In our toy model, we included both abundance and phenotypic matching as motivators for nestedness. In order to justify the claim that the model is compatible with the concept of abundance as a driving force (see Graham et al. 2009; Poulin and Morand 2004; Vázquez et al. 2005, 2009), we investigate here the manner in which hosts of different abundance influence the model outcomes. This is especially important over evolutionary, as opposed to ecological, time scales.

There are two aspects of abundance to be compared to the model presented here. Firstly, does increased abundance of a species indeed lead to a higher number of links occurring, and secondly, does asymmetry in the assignment of links lead to nestedness? The first of these is compared to the model, while the second is a question that remains independent of the model.

Firstly, we note that, if nestedness is a result of abundance, then we would expect it to occur in mutualistic and predator–prey webs, as the number of links of a species is associated solely with its abundance and not with the nature of those links. This is indeed evident (see Montoya et al. 2006), particularly in mutualistic networks, which display more nestedness than would be expected from a random, bipartite network (Bascompte et al. 2003). However, if this is the case, then why would certain web types display more nestedness than others (see Hernandez and Sukhdeo 2008; Lafferty et al. 2006)? This promotes the thinking that abundance alone cannot explain patterns of nestedness in ecological networks. A further question concerns whether or not abundant species are more likely to have links simply as they are more likely to interact with other species due to their abundance, or whether this is due to the inherent benefits of interacting with a more abundant species. Our model attempts to address this, proposing that there is an evolutionary advantage to interacting with a more abundant species.

For our trade-off model, note in Eq. (3) that the invasion potential of a parasite depends on the relative abundances of the different host species. The terms \(I_{11}\) and \(I_{21}\) are the combination of infection prevalence and total population size and, hence, reflect that a larger population will increase invasion potential. This was also computed numerically, where it was observed that, in a symmetric environment, increasing a species’ population size could drive a parasite to preferentially interact with that species (see Fig. 9). Here, we look at parasite 1 interacting with host 1 and see that, although this is still dependent on initial values for traits, increasing the abundance of the host species clearly increases the likelihood of the parasite evolving to interact with that species.

Fig. 9
figure 9

Regions of initial trait values for both parasites which, under coevolution with a strong trade-off, lead to parasite 1 occurring in host 1. Filled areas denote regions of initial trait values which see parasite 1 evolving to be in host 1, and successively lighter shades denote the increase in size of the region as the relative abundance of host species 1 increases

Discussion

This model provides evidence for both specialization symmetry and asymmetry, but it is difficult to comment on nestedness from this. A similar model might be sufficient for larger networks, where a species-poor host could still contain more than one parasite, allowing parasites to split a host’s defense. Additionally, if hosts were to trade defensive properties in an alternative manner (for example, through reduced birth rate or the inability to reduce transmission completely to zero), this could allow generalists to exist alone in a species-poor host.

There is a great deal of mixed evidence, from a number of different ecosystems under varying conditions, for nestedness in host–parasite interactions (Graham et al. 2009). In those systems in which nestedness occurs, generalists will be in comparatively species-poor hosts, as they may occur in both species-poor and species-rich hosts. In this sense, the model can be related to nestedness, although its size makes a full comparison unreliable. The model also supports the idea that a strong trade-off leads to specialists, while a weak trade-off promotes generalism, in accordance with the Levins’ fitness set approach (Levins 1962, cited in Rueffler et al. 2006).

From the results obtained here, it is evident that initial trait values are very important to the final equilibrium of a population. This may be useful in predicting responses when a species is added to or removed from a system, as such an event will be followed by evolution of the system in a direction dictated, to a certain extent, by the equilibrium values of the system prior to the alteration.

In a similar multi-species host–parasite model, Bennett and Bowers (2008) investigated the basic reproductive (stressing the role of parasite species) and depression (stressing the role of host species) ratios, calculating the invasion conditions for additional strains to enter a system, and the existence, feasibility, and stability of equilibria in the system. Our model extends their idea to investigate the evolution of interaction strengths and the network structure that such systems take. In addition, we include a density-dependent natural death rate (as opposed to density-dependent birth), which has been shown to be important for parasite branching (Best et al. 2009; Pugliese 2002). Despite this, we observed no branching in our system, although higher dimensional systems may branch (in preparation).

One crucial factor concerning this model is that it is dynamical. A structural property can be described and predicted by this dynamical model, explaining an aspect of static models that cannot be explained through a simple trophic hierarchy. This helps in clarifying how parasitic associations may be motivated and, to a certain extent, investigates the effects which parasite in a host species have on one another. This toy model can now easily be expanded to include a more realistic system containing many more species (McQuaid and Britton 2013). Analysis of a larger system will then enable questions on the nestedness of the system as a result of trade-offs to be answered. However, our model only allows for investigation into certain aspects of host–parasite interactions, yet other coevolutionary model types also suggest different causes that might lead to aspects such as trait cycling and the occurrence of generalist parasites, including polymorphism of resistance genes and high costs to virulence (Sasaki 2000).

Future

The primary purpose of this paper was to lay the foundation for a model which could explain patterns of nestedness in ecological networks. In order to do so, this model needs to be repeated at a larger scale for a host–parasite network. Note, however, that Bennett and Bowers (2008) have shown that, for such systems to reach equilibrium, there must be an equal number of both host and parasite strains or species. Although the essential nature of the model need only be extended to a larger dimension, the manner in which traits trade off over higher dimensions does raise potential problems. In order to calculate trade-offs, ecological and evolutionary time may be separated, and only two traits be allowed to mutate, with respect to one another, in each evolutionary time step (McQuaid and Britton 2013). In addition, host–parasite coevolution studies using gene-for-gene models have shown that increased numbers of loci can lead to avirulence (Sasaki 2000) or destabilization (Kopp and Gavrilets 2006), an aspect which is worth considering here when the number of traits for a species increases. Given the evidence for nestedness in other systems (Bascompte et al. 2003; Vázquez and Aizen 2003, 2004), the adaption of this model to these systems, particularly mutualistic networks, could also be used to corroborate any conclusions reached (in preparation).

Many other factors are considered as possible motivators for the species richness of parasites in hosts (see Feliu et al. 1997; Marcogliese 2002; Montoya et al. 2006; Morand and Poulin 1998; Nunn et al. 2003; Poulin and Leung 2011; Poulin and Morand 2004), which focus on the characteristics of the hosts. It is becoming increasingly clear that the interests of the parasites are also important factors in this, and, in fact, both motivating factors are likely to be of importance. There have been very few models which investigate the coevolution of a host–parasite system using adaptive dynamics (but see Best et al. 2009, 2010; Caval and Ferriere 2010), and these focus primarily on the discovery of a coevolutionary stable strategy. Other methods, such as multi-locus genetics, could be used to extend and compliment our results (see Kopp and Gavrilets 2006). In that sense, every additional approach to or analysis of a coevolutionary system adds to the field of coevolutionary ecology.

With the aim of coevolution in mind, it has been observed that, according to game theory, predators may be responsible for the presence of additional prey species through induced branching (McGill and Brown 2007). Is it possible that parasites have such an effect? This could presumably only happen if parasites exerted similar levels of pressure to predators, which is unlikely (Poulin 2010). Branching in our model could, however, potentially explain nestedness, as parasites would be found in similar hosts. This would lead to results similar to Fig. 5a, an aspect which could be investigated further.

A further step from here is to investigate the effect that the position of a host in the network as a whole has on its parasites, and how this fits in with the observations made here. The position of a host species in the network is considered a potential driving factor in determining its parasitic composition (Chen et al. 2008; Vázquez et al. 2005). This has been looked at to a greater extent than parasite interactions with each other in the past (Cobey et al. 2010), but open questions still remain, specifically with larger networks that include both multiple hosts and multiple parasites together.

Conclusion

The results of the model indicate that the hypothesis of resource trade-off driving a link between specificity and species richness appears to be plausible. It can certainly be used to model interactions between hosts and parasites, which should yield interesting results when used on a larger scale. This also highlights the importance of factors such as host mutation rates in coevolutionary systems, even when these rates are low.

Using such information as our results for the mutation rates and initial trait values, our model helps to predict the circumstances under which we might expect patterns such as specialization asymmetry to occur. We would predict the presence of specialist parasites in species-rich hosts to be more likely if the hosts had higher mutation rates and, in systems in which parasites are more closely related, are more likely to originate in similar hosts or appear as generalists. Given the relationship between specialization asymmetry and nestedness, we would, therefore, expect nestedness under similar circumstances and anti-nestedness, the remainder of the time.

This model demonstrates that dynamic coevolution of the network is vitally important in accounting for parasites, as it demonstrates how the dynamics could influence structural properties. In particular, it demonstrates the importance of the coevolution of both hosts and parasites in such a scenario. Parasites, therefore, are not a characteristic to simply be transposed onto a system with no regard to their effects on one another. Much like interactions in conventional food webs, the influences of different parasites can alter the entire structure of a host–parasite network.