Fig. 4: Effect of habitat heterogeneity rΘ on QST,s and average population size \(\overline{N}\) for general graph ensembles.

a Effect of rΘ on QST,s for all undirected connected graphs with M = 7 vertices and varying rΘ, for m = 0.1. b Effect of rΘ on average population size \(\overline{N}\) for the same simulations. In a and b, each dot represents average results from 5 replicate simulations of the IBM, the colour scale corresponds to the proportion of the graphs with similar x and y axis values (graph density), and the blue lines correspond to results obtained from the mean-field approximation Eq. (5). Insights from Eq. (5) are congruent with the IBM simulations for complex habitat connectivity patterns at low m. Similar results with m = 0.5 are presented in Supplementary Fig. 6.