Let’s begin the description of an ensemble space by recognizing that it is a probability space of all the species-level networks (SLNs) possible given a specific metanetwork. We will adopt a set of formal definitions of the space, namely as a probability space (S, *F*, P). The set S is the complete sample space of the metanetwork whose topology is U, *F* is the set of sets for which real-world SLNs exist (see below) and P is the probability of an element in *F*, that is, P(SLN). *F* is often taken to be the power set of S, or the set of all sets, but as shown below, many of those sets in S would contain SLNs that cannot exist in the real world.

**Ensemble size.–** The number of SLNs that can be derived from a metanetwork ensemble is finite, because there is a finite number of arrangements or graphs of the species. The number or ensemble size also defines the maximum variation possible for a real community, unless the taxon composition itself changes. The number of SLNs (the number of elements in S, or the cardinality of S) is designated |S|.

Examine the simple metanetwork in the figure. We will designate the metanetwork U, and the number of guilds as |U|. Guilds 1 and 2 (G1 and G2) comprise species that are preyed upon by species in G4. In order to construct a SLN, we must specify exactly which species in G1 and G2 are preyed upon by each species in G4. Let the presence of a metanetwork link be indicated by elements of the adjacency matrix, being one if a link exists, and zero otherwise. Then the maximum number of prey species (maximum in-degree) available to any species in G4, denoted is

since and equal zero. This can be generalized to a metanetwork of any complexity as

Since every species in G4 may have an in-degree range of one to , and every one of these possibilities or predatory states could be combined with every other state of the remaining species in G4, the maximum number of possible networks is simply . Moreover, the in-degree or number of predatory states of every species in the network may be combined regardless of guild membership, allowing us to generalize to metanetworks of all sizes and complexity. By this argument, the number of possible SLNs, |S|, is the product of the number of predatory states of species in every guild, that is,

This formula overestimates |S| because prey species in a guild are treated neutrally from a consumer’s point of view. Neutral is used here in the sense of ecological neutrality; the species are indistinguishable from each other on the basis of trophic properties. In other words, the above calculation of |S| does not specify which prey species are linked to when the predatory states of different predators are combined. Therefore, many of the combinations counted in the calculation will be isomorphic food webs, and they would not have unique ecological properties.

In order to resolve this problem, and gain a more accurate measure of |S|, we need to understand the number of different ways in which a consumer’s links can be distributed among it’s prey. This is a classic partitioning problem, where say we wish to determine the number of ways in which n fossils can be distributed among m museum drawers, with fossils in the first drawer, in the second, and so on. The fossils (links) are not distinct, and we do not care specifically to which drawer (prey species and guild) they are assigned. The trick is to first state the problem as: How many combinations of n fossils can I get if I have m drawers to select from? Or, how many combinations of r links can I get if there are g guilds to select from? We recognize that we are in fact permuting n fossils plus m-1 partitions among the drawers, yielding

Therefore in our sample food web, if a species in G4 has three in-links, then the problem is

The links can be partitioned between guilds G1 and G2 as {3,0}, {2,1}, {1,2} or {0,3}. None of these are isomorphic topologies.

The calculation of |S| can now be refined, where the topologies obtained for a particular in-degree are combined with those of other species, rather than simply combining the number of in-degrees possible. We proceed in several steps. First, determine the maximum number of in-links possible for a species in guild . Next, determine the number of in-link topologies possible for each in-degree (1 to ), given the set of prey guilds,

where is the number of topologies possible for species , which is a member of guild , is the in-degree of , and is the number of guilds upon which preys (sum of the row of the adjacency matrix). Note that this is calculated and summed over all possible in-degree values, one to . Following from the earlier calculation of |S|, the number of topological combinations among species in is . We therefore re-calculate |S| as

This calculation is still an overestimate, however, because the number of links between a consumer species and any prey guild is unconstrained. It represents all elements in the power set of S. In terms of the museum fossils analogy, we have assumed that the cabinet drawers are of infinite capacity (sadly, a curatorial fantasy). A more accurate measure of |S| is possible if we limit drawer capacity to some finite number of fossils, thereby limiting ourselves to the set F of real possibilities. The food web situation is more complicated because different prey guilds will most likely have different species-richnesses, and hence differing capacities for links. The situations would be analogous if drawers in the collection were of different sizes, indeed a curatorial nightmare! The solution would be to modify the above formula for , using only topologies where the number of links from a prey guild to is less than or equal to the species-richness of the prey guild. That is, the capacity of the prey guild is not exhausted. This solution, however, requires partitioning appropriately among the prey guilds so that this condition is met. The set of all such partitions that match the constraints of prey guild species-richnesses can be determined, but the solution is not straightforward and requires application of a partition function and partition theory. Both those topics are, unfortunately, beyond the scope of the current post. Therefore, the given calculation of |S| remains an overestimate at this point. It is possible, however, to determine the probability of any particular SLN being found in a metanetwork’s ensemble. I’ll follow this up in the next post.

Pingback: The probability of a food web « Roopnarine’s Food Weblog