Introduction

Land use change, principally habitat loss and fragmentation, has been signalled to alter plant-pollinator interactions by affecting species survival, species distributions, species phenologies and changing the complex set of relationships between plants and pollinators suggesting that plant-pollinator interactions may be more susceptible to global change than previously thought (Alves Ferreira et al. 2013). However, despite recent advances, it is still not understood how land-use and climate change influence plant-pollinator interactions (Dalsgaard 2020) principally in the Neotropics that is considered a hotspot of diversity and origin of cultivated plants (Khoury et al. 2016).

One of these endemic cultivated plants is Cucurbita pepo ssp. pepo that is a major crop of worldwide economic importance, as it is cultivated and consumed globally (Paris 2016). In Mesoamerica, C. pepo species are important ecological elements of the milpa traditional management system (cultivation of maize alongside beans, and one or two additional Cucurbita species; Aguilar et al. 2003; OECD 2012) preventing weeds and soil erosion, maintaining soil moisture and biodiversity of mammals and insect pollinators (Gliessman 1983; Lozada-Aranda et al. 2017; Landaverde-González et al. 2017). Cucurbita pepo is the best-studied cultivated crop (Paris et al. 2003, 2012) and considered the most diverse species in the genus (Gong et al. 2013; Paris 2016). Furthermore, the exceptionally high rates of molecular evolution of the genus, the local genetic structure and morphological differentiation of certain domesticated Cucurbita landraces have been associated with differences among human cultural management (Casas et al. 2007; Sanchez-de la Vega et al. 2018; Enríquez et al. 2018) and geographical and climatic processes (Castellanos-Morales et al. 2019). Further, it has been suggested a process of coevolution between Cucurbita and their main pollinators due to the congruence in divergence time of most wild taxa and specialized bees of the genera Xenoglossa and Peponapis. Thus, this system is a promising model for studying evolution of plant-pollinators interactions (Castellanos-Morales et al. 2018).

Cucurbita pepo is a monoecious plant with spatial separation of female and male flowers. C. pepo subsp. texana has displayed differential inbreeding depression between male and female traits (Hayes et al. 2005). Furthermore, herbivore damage to flowers of C. pepo increased the floral fragrance of male but not in female flowers, suggesting that external environmental conditions may be critical for the resulting interactions between plants, herbivores, and pollinators (Theis et al. 2009). Yet, changes of temperature can induce femaleness when it is colder or maleness when it is warmer (Wien et al. 2002). Hence, the understanding of the effect that landscape can have on C. pepo female and male flowers and their differential interactions with pollinators is an open question that can help to understand the dynamics of evolution in domesticated plants.

Complex and genetically based, contributing to community diversity, stability and species interaction networks (Whitham et al. 2012; Gehring et al. 2014; Crutsinger 2016). Additionally, genetic variation is a driver of intraspecific variation. Some studies have now demonstrated direct and indirect genetic effects of species interactions on the composition of communities. These effects interact either through the formation of subgroups or modules for certain genotypes or through the damping of environmental effect upon the underlying genetic diversity of key species (Franks et al. 2007; Evans et al. 2008; O'Neill 2008; Keith et al. 2010). This suggested that anthropogenic and landscape variables affecting genetic diversity of key species can threaten the structure of large communities. Keith et al. (2017) found that around 85% of ecological patterns were dampened due to genetic diversity, while only 13% amplifies its effect and 8% creates new patterns. Further, the number of empirical studies on networks is scarce and studies in the tropics that provide network structure and environmental gradients are even fewer (Alves Ferreira et al. 2013). It is, therefore, increasingly important to understand how genetic variability and environmental variables contributes to complex community properties such as diversity, interaction networks, stability, and community network structure.

Previous studies on genetic diversity and the effect of landscape on antagonist interaction network of herbivorous and plants has demonstrated that modularity increase while nestedness has a tendency to decrease (Keith et al. 2017). Further, Fortuna et al. (2010) found that there was a tendency for either nesting or modularity, but not both at the same time, to increase in highly connected networks. Yet, genetic diversity may increase the complexity of the web, the number of interaction and robustness (Barbour et al. 2016) suggesting that the genetic variation of a key species can have a strong effect on community structure. In our study C. pepo functions as a key species due to its evolutionary relationship with bees and its cultural relationship with traditional community practices. In particular, we expect that network structure will be affected by increasing genetic variation of pumpkin through more interactions per species and increased nestedness or modularity (Paine 1969; Fortuna et al. 2010; Barbour et al. 2016; Keith et al. 2017) and therefore greater and robust foodweb complexity as discussed above. However, whether the genetic variation can scale up to affect pollinator-plant interaction network is currently unclear and to our knowledge, this is one of the first studies analysing together genetic diversity, landscape effect on network structure. We also expect that the information generated with this study will be the basis for more in-depth analysis of the action of genetic diversity on interaction network and how it relates to landscape that can lead to the understanding and conservation of community structure.

Here, we address the following questions (1) how differences in female and male flower affect the interaction network of C. pepo? i.e., pollinator diversity, community and variables of network composition (modularity, nestedness, network specialisation and number of interactions), (2) does genetic diversity of C. pepo affect the individual-based flower-bee visitation network? and (3), what is the effect that landscape, accounting for the genetic variability of C. pepo, has on these variables of individual-based pumpkin flower-bee visitation network?

Materials and methods

Study sites, plant sampling, DNA extraction and amplification

We used samples already surveyed in a previous study in the Cloud Forest Corridor (CFC) (Enríquez et al. 2018), that is characterized by a high cultural and natural diversity. Seven cultivars of traditional C. pepo landraces from five sites in Baja Verapaz, Guatemala (Panzal, Repollal, Union Barrios, and Chipacay; Table S1) were sampled to obtain plant tissue for DNA extraction. Additionally, three new localities from Puruhlá in department of Baja Verapaz, in the centre of Guatemala were sampled to record individual-based C. pepo-visitors’ interactions for a total of ten sampling sites (Fig. 1).

Fig. 1
figure 1

Locations of study sites (pink and red circles) in the Cloud Forest Corridor (CFC) of Guatemala. The red circles are the sites for which both interaction networks and microsatellite information was obtained. The pink circles are the ones with only interaction network information. Four land use types and water presence are indicated with different colours as follow: Crop is lila, forest green, heterogeneous areas yellow, settlements blue-grey and water light blue

Sampling of bees and their interactions

Cucurbita pepo individual-based flower-visitors were recorded in ten sites during the flowering peak of C. pepo from April to June of 2012. We sampled flower-visiting bees that touched the reproductive parts of each female and male flower in three-minute time. Sampling was carried out for 3 days at each site to complete at least 100 female and 100 male flowers. As a result, we obtained a total of 10 h per site; 3 min for each of 100 female and 100 male flowers in each site, since not all flowers were visited, we obtained floral-visitors’ observations for less flowers (female: mean = 59.54 ± 22.52SD, male: mean = 65.64 ± 36.98SD). Collected bees were stored in tubes for later identification. We collected only bees due to the extremely low number of non-bee flower-visitors observed during sampling (< 0.1% of total interactions). All bees were identified by expert taxonomists, 52% to species level and 48% to genera.

To describe bee diversity and analyse the effect of bee diversity on network structure, we used total abundance, rarefied bee richness, Shannon index and local contribution of beta diversity –LCBD- (Legrendre and Cáceres 2013) which is a comparative indicator of the ecological uniqueness of sites according to their contributions to beta diversity. Large LCBD values indicate sites that have strongly different species compositions compared with a site with lower or mean values (Legendre 2014). Additionally, we also used the abundance of the most common bees (Apis mellifera 43.55%, Partamona bilineata 36.33% and Trigona silvestriana 4.07%). The LCBD was calculated using package adespatial v0.3-8 (Dray et al. 2012), abundance data were transformed so the resulting dissimilarity assessments are ecologically meaningful with Hellinger transformation (Legendre & Cáceres 2013).

Landscape variables

In each study site, we quantified land cover at increasing radii of 200, 300, 500 and 1000 m from the centre of each site. Land-use was classified in four categories: (1) forest (mostly pine–oak forests), (2) semi-natural areas (including early succession areas), (3) annual agriculture, (4) settlements (including villages and homesteads with milpa agriculture). To determine the spatial scale of bee responses to land use, we performed Spearman rank correlations between bee abundance, rarefied bee richness and Shannon diversity of bees against our four landscape categories (as in Landaverde-González et al. 2017). The correlation coefficient peaked at the 200 m scale for bee abundance, bee richness and Shannon Diversity Index (Table S2). Accordingly, we used the 200 m scale for subsequent landscape-scale analyses. Additionally, we calculated several metrics for forest fragmentation: (1) distance to the closest fragments, (2) average fragment size (m2) and (3) percentage of fragment areas. In our downstream analyses, we only used the distance to the closest fragment and percentage of fragment areas to represent landscape fragmentation, as average fragment size was highly correlated with percentage of fragment areas (r2 = 0.95).

Data analysis

Genetic data

We used GeneMarker software v 2.4.0 (Hulce et al. 2011) to construct the allelic matrix per microsatellite assayed. We used eight microsatellite loci as selected by (Enríquez et al. 2018). For the subsequent analysis we used allele abundance (AB), allele richness (AR), observed (Ho) and expected (He) heterozygosity. To obtain the values of AB, AR, Ho and He, the program MSA v.4.05 (Dieringer and Schlötterer 2003) was used (Table S3). To account for differences in sample sizes and genotyping success, allele rarefaction was used in the calculation using the package PopGenReport (Gruber and Adamack 2015).

Individual-based flower visitation networks

To investigate individual-based plant–pollinator interactions across communities, we generated flower–bee network metrics for site and for each individual female and male flower using the R package bipartite v.2.08 (Dormann et al. 2009). For each site and gender, quantitative individual-based networks (Fig. S1) were represented as a matrix in which each cell contained the frequency of pair-wise interactions between individual flower of C. pepo (rows) and bee morphospecies (columns).

For each matrix, we computed five network metrics: complementary network specialisation (H2’), nestedness (NODF), modularity, robustness and number of interactions per individual-pumpkin (Table 1). H2’ describes the degree of specialisation of the network (Blüthgen et al. 2006). For nestedness, we used the weighted NODF metric (nestedness metric based on overlap and decreasing fill by Almeida-Neto et al. 2008) that indicates whether species with fewer partners (specialist) tend to interact with subsets of species more connected (generalist) and indicates the existence of asymmetry in plant-pollinator interactions (Bascompte and Jordano 2014). Modularity describes the tendency of different subsets of species to interact more frequently with each other than with the rest of the species in the network (Guimerà and Amaral 2005). Robustness is calculated as the area below the extinction curve generated by “second.extinct”, as the measure of the ability of the system to endure species lost.

Table 1 Network indices and ecological significance

Due to the dependence of network metrics on network dimensions, we calculated a null model for each metric network and site by simulating 1000 random interaction networks, using the Patefield’s algorithm (Patefield 1981) that reflect the degree to which a network metric deviates from a random expectation. Then, to obtain network metrics that are unbiased, we Δ-transformed all metrics using the calculated null model (Dalsgaard et al. 2017; Schleuning et al. 2014; Simmons et al. 2018). The Δ-transformed network metrics were calculated as in Escobedo-Kenefic et al. (2020).

Statistical analyses

In the present study, we used an individual-based network approach to access the effect of landscape and genetic diversity in the organisation of interactions between individuals of C. pepo and their flower-visitors.

First, we were interested to evaluate the difference between female and male flowers interaction networks. For that we used a paired t-test and chi-square test (paired by site) to analyse the differences between female and male flowers in network specialisation (H2’), nestedness (NODF), modularity, robustness and number of interactions per individual-pumpkin. Additionally, to test for differences in bee and community composition between female and male flower, we performed a paired permutational multivariate analysis of variance using the adonis function, with 999 permutations, implemented in the R package vegan v. 2.5-7 (Oksanen et al. 2020). In the adonis analysis for bees, the Bray–Curtis distance matrix of bee species composition was the response variable, with gender (female/male) as the independent variable. The strata (block) argument was set to site so that randomisations were constrained to occur within each sample site and not across all sample sites.

Second, we evaluate if there was an effect of genetic diversity on the five network measures: network specialisation (H2’), nestedness (NODF), modularity, robustness and number of interactions per individual-pumpkin. For that, generalized linear models—GLM- with a Gaussian error structure were used. We expected to observe an increase in all the network measures as genetic diversity increased as commented in the introduction (Fig. 2A).

Fig. 2
figure 2

Diagrams showing the expectations of the action of A genetic diversity of C. pepo (box in blue); B Forest, semi-natural areas and percentage of fragments and C Agriculture, settlement and distance to the closest fragment (landscape, boxes in green) on the structure of the networks

Third, we wanted to determine the effect that landscape variables, accounting for genetic diversity, have on individual-based interaction network of C. pepo. For that, mixed model analyses were performed using the R package lme4 (Bates et al. 2015). Genetic data was used as a random factor due to the variability of the genetic information between sites. Landscape-scale variables were used as fixed effects. All model (GLMMs and LMMs) assumptions were checked visually and were found to conform to expectations (e.g., normality of the distribution of residuals, homogeneity of variances, linearity). We used variance inflation factors to check for collinearity among our explanatory variables. Variance inflation factors were lower than three for all predictors in all models tested, suggesting no collinearity (Zuur et al. 2009). We checked for spatial autocorrelation in our dataset using Moran’s I within the R package spdep (Bivand et al. 2013). No spatial autocorrelation was found in any of our statistical models (P > 0.05). We expected to find a positive effect (increased stability and robustness of the network structure) of forest, semi-natural areas and percentage of fragments on the network structure, while we expected that agriculture, settlement and distance to the closest fragment will have a negative effect (reduced stability and robustness of the network structure) on network structure (Fig. 2B, C).

Results

Across all sites, we recorded a total of 1667 bee individuals (a total of 27 morphospecies) visiting flowers (considering both male and female gender) of C. pepo individuals (Table S4; Fig. S2). The number of interactions was also 1667 as they correspond to the individual bee species observed. These interactions consisted of 860 (mean average per site 78 ± 40.62 SD) interactions for female flowers and 930 (mean average per site 93 ± 61.50 SD) interactions for male flowers.

Differential interaction network dynamics for female and male flower

Female flowers had the same numbers of floral visitor species (Mean ± SD: 1.15 ± 0.11 species) when compared with male flowers (1.10 ± 0.09 species) (t = 2.08; P = 0.07) and there was no significant difference between the community composition of female and male flowers (F1,20 = 0.28, R2 = 0.01, P = 0.97). However, the abundance of pollinators for female flowers was significantly higher (Mean ± SD: 1.52 ± 0.26) compared to male flowers (1.26 ± 0.25) (t = 5.10; P < 0.01).

Further, no significant difference was found in five measures of interaction network between female and male flower: network specialisation—H2’- (t-test = 0.84, P = 0.43; Fig. S3A), nestedness—NODF- (t-test =  − 0.02, P = 0.97; Fig. S3B), modularity (t-test = 1.11, P = 0.19; Fig. S3C), robustness (t-test = 2.17, P = 0.06; Fig. S3D) and number of interactions per individual-pumpkin (t-test = − 1.06, P = 0.37; Fig. S3E).

Effect of Cucurbita pepo genetic diversity on individual-based pumpkin flower-bee visitation network

To determine the effect of genetic diversity of C. pepo plants on the individual-based pumpkin-bee visitation network, we assessed the relationship of four genetic measures: allele abundance (AB), allele richness (AR), observed (Ho) and expected (He) heterozygosity. We found that for network specialisation—H2’-, allele abundance (t-test = − 3.75, P = 0.01—AB-) and allele richness (t-test = -2.88, P = 0.01—AR-) have a significant negative relationship (Table 2, Fig. 3A, B respectively), that is, the greater abundance and richness of alleles, the less the specialisation of the network. For nestedness, we observed a positive significant relationship of abundance of alleles (t-test = 8.69, P < 0.01—AB-) and observed heterozygosity (t-test = 3.3, P = 0.02—HO-; Table 2, Fig. 3C, D respectively), that is, the greater the heterozygosity and abundance of alleles in C. pepo, the greater the nestedness or the degree in which specialists interact with generalists. For modularity, only allele richness (t-test = 3.71, P = 0.01—AR-) was found to have a significant positive effect (Table 2, Fig. 3E), meaning that the greater the allele richness, the greater the modules found in the network. For robustness, we found that observed heterozygosity (t-test = 6.27, P < 0.01—HO-) showed a positive significant correlation (Table 2, Fig. 3F). Finally, for number of interactions per individual-pumpkin only observed heterozygosity (t- test = 3.43, P = 0.03—HO-) has a significant positive effect (Table 2, Fig. 3G).

Table 2 Generalized linear model explaining the effect of genetic diversity on the measures of network structure across all sampling sites
Fig. 3
figure 3

Relationship between genetic diversity of C. pepo (AB Allele abundance, AR allele richness and HO observed heterozygosity) and four measures of network structure: A, B Network specialisation (Δ-transformed H2’); C, D Nestedness (Δ-transformed NODF; the degree to which specialists interact with generalists); E Δ-transformed Modularity (the strength of division of a network into groups); F Δ-transformed Robustness (the ability of the network to overcome the loss of species) and G Number of interactions per individual pumpkin. Means ± SE are shown; *P < 0.05, **P < 0.01; ***P < 0.001. Plotted lines show predicted relationships, and the shaded areas indicate 95% confidence intervals

Effect of landscape on individual-based pumpkin-bee visitation networks

Regarding the effect of landscape on individual-based Cucurbita pepo-bee visitation networks, we found different relationships for all network measures. Genetic diversity had a strong effect on the structure of the network; therefore, we analyse the effect of landscape controlling for genetic diversity of C. pepo on the visitation network. We do not find an effect of landscape on network specialisation—H2’-, robustness and modularity (P > 0.1). While for nestedness—NODF- we found a positive significant effect of the presence of semi-natural areas (P = 0.03; Table 3 and Fig. 4A) and forest show a marginal positive significant relationship (P = 0.09; Table 3), while forest has a positive effect on the number of interactions per individual-pumpkin (P = 0.04; Table 3 and Fig. 4B). Moreover, the positive effect of semi-natural areas on nestedness seems to be favoured when genetic diversity is high, while with low genetic diversity and more semi-natural areas it may be negatively affected.

Table 3 Linear mixed effect models explaining the relationship between landscape and two network structures measures (A) Δ-transformed nestedness (ΔNODF) and (B) Number of interactions per individual pumpkin across all our sampling sites
Fig. 4
figure 4

Relationship between landscape variables and two measures of network structures. A Nestedness (Δ-transformed NODF; the degree to which specialists interact with generalists) and B number of interactions per individual pumpkin across all our sampling sites. Genetic diversity is shown by two lines of different colour. Higher genetic diversity is shown as a blue line, while lower genetic diversity is shown as a black line. Means ± SE are shown; *P < 0.05, **P < 0.01; ***P < 0.001. Plotted lines show predicted relationships and the shaded areas indicate 95% confidence intervals

Discussion

In this study, we were interested to understand how differences in female and male flower affect the interaction network of C. pepo and how genetic diversity and landscape can change the structure of interaction network. The results confirmed the following: (i) female and male flowers possess the same community composition and network structure. (ii) Genetic diversity has a varied significant relationship with the measures of network structure and (iii) landscape variables also can have a significant relationship with some network attributes that seems to be enhanced or buffered by genetic diversity.

Interaction network and bee diversity on C. pepo female and male flower

There were no differences in diversity, flower-visitor community composition or interaction network dynamic between female and male flowers, although there was a difference in the abundance of pollinators between both. This suggests that even when there is evidence of changes in inbreeding depression, fragrance, nectar amount and abundance of flower visitor between both flower types, this does not cause a significant differential effect on their individual-based interaction network probably because they are buffered by the same plants. This buffer effect may be either due to the differences in flower time production (male are produced first) or because pollinators species did not discriminate between different levels of fragrance or nectar between flower (Ashworth and Galetto 2002), preventing any unfavourable effect on the male flowers from affecting the female flowers (Theis et al. 2009). In the same way, the abundance of floral visitors is considered a positive condition that favours the persistence of the species (Winfree et al. 2014), increasing whole plant fitness and not of individual flowers. Similarly, Dáttilo et al. (2015) found that forest fragmentation did not affect the structure of individual female and male flowers of Astrocaryum mexicanum (Arecaceae), which suggest stability of the network.

Hayes et al. (2005) suggest that differences in inbreeding depression between both types of flowers do not have a significant effect on the evolution of the reproductive system used by C. pepo, probably because the total inbreeding depression was under 0.5, which is the limit for a change in the reproductive system (Rausher and Chang 1999), permitting the evolution of a stable mixed-mating reproductive system. Further, it has been observed that high temperature can also increase the number of male flowers and therefore the dynamic of flower-visitors (Wien et al. 2002), suggesting that climate change may threaten the conservation of interactions between flower visitor and C. pepo. Additionally, whether these differential dynamics between males and females’ flowers have any effect on pollination is a question that is beyond the scope of this manuscript but still needs to be examined carefully.

Effect of genetic diversity on individual-based pumpkin-bee visitation network

Genetic diversity of a key species (C. pepo) has a negative relationship with network specialisation. A decrease of network specialisation when genetic diversity increases suggest that greater diversity from the plant may allow for more varied traits that may attract an increased diversity of flower-visitor and therefore upsurge generalisation. Similar findings were observed for the rise in generalisation of a network of gall–parasitoid interactions (Barbour et al. 2016). Conversely, nestedness, modularity and number of interactions per individual-pumpkin were positively related with genetic diversity, suggesting that C. pepo genetic diversity is a positive attribute to maintain the robustness of the interaction network. Both nestedness and modularity have been shown to provide benefits for the stability of networks structure (Fortuna et al. 2010). Nestedness reduce effective interspecific competition and enhance the number of coexisting species (Bastolla et al. 2009), while modularity can be key to isolate perturbations in the web maintaining its stability (Thébault and Fontaine, 2010). Consequently, our results are in line with previous studies that demonstrated through combining empirical and simulated data that modularity, nestedness and co-occurrence increase as genotypic variation increased in networks of interacting key species genotypes (Lau et al. 2016).

With regards to the number of interactions, Barbour et al. (2016) found that an increase of genetic diversity also increases the number of interactions per genotype and the complexity of the network predicting a more robust to species extinctions network (Crutsinger et al. 2006; Barbour et al. 2016, 2020). Previous studies found a common pattern in which plant populations with higher genetic diversity harbour more species-rich food webs (Crutsinger 2016; Barbour et al. 2020). The theory is that the influence of genotype variation forms modules for each different genotype that increase interaction within the same modules, increasing at the same time connectance between species (Lau et al. 2016). However, the exact mechanism that allows greater genetic diversity to have a positive effect on networks is unknown. One possible explanation could be that the higher proportion of genetic diversity translates into abundant phenotypic variation allowing a greater diversity of visitors (Barbour et al. 2020). Given that we used a neutral marker (microsatellites), it’s complex to determine how its variation is related to phenotypic traits chosen by floral visitors. The use of genomics, can provide a better resolution on the genetic mechanism behind trait variability and, therefore, its influence on network structure. On the other hand, intraspecific diversity can increase connectance and nestedness but decrease stability and change the interaction strength and network specialisation (Vázquez et al. 2009; Noto and Gouhier 2020). The reason for this variation in the response of the networks is competition within genotypes; if it is stronger within the genotypes, trophic networks are generally more stable, suggesting that in our study competition may occur at the intragenotypic level since we found a positive effect of genetic diversity on nestedness, modularity, robustness and number of interactions. However, in our study, we use genetic data sets for populations and thus it was not possible to obtain information on the flower-visitor for each specific genotype that would allow a better understanding of the dynamics between and within genotypes and therefore how they affect the structure of the network.

Effect of landscape on individual-based pumpkin-bee visitation network

The presence of semi-natural areas, which represented heterogeneous land, did present a significant positive relationship with nestedness and the presence of forest has a positive relationship with the number of interactions per individual-pumpkin. Similarly, previous studies in the highlands of Guatemala showed a significant positive effect of dry seasons on nestedness, suggesting the existence of niche partitioning as a result of competition for heterogeneous but scarce resources (Escobedo-Kenefic et al. 2020). Further, the cloud forest area is characterized by a lower proportion of deforestation (Enríquez et al. 2018), so the resources may not be scarce, and thus the reason why we didn't find direct negative effects from the landscape. Other studies suggested that landscape heterogeneity and native vegetation may favour bigger, more complex, robust, connected and nested networks across all scales or hierarchy levels compared to those from agricultural lands that have been documented to be negative (Adedoja and Kehinde 2018). This underscores the ecological importance of heterogeneous land and natural vegetation for the conservation of insect-flower interactions even in highly fragmented landscapes in the tropics (Alves Ferreira et al. 2013; Moreira et al. 2015, 2018). Moreover, we found a possible interaction between genetic diversity and how semi-natural areas affect nestedness, greater genetic diversity allows greater nestedness even with fewer semi-natural areas, but when there is lower genetic diversity, nestedness decreases even with larger semi-natural areas. This is contrary to a study on tri-trophic interaction which showed that, although plant genetic effects were stronger across all trophic levels, these effects were transmitted independently suggesting that plant genetics did not interact with the effect of the environment analysed on network interactions (Abdala‐Roberts and Mooney 2013).

Additionally, cultural management has already showed to be a variable having a significant effect on genetic diversity of C. pepo (Enríquez et al. 2018). In our study management was the same for all the sites, so it was not possible to analyse its effect on the interaction networks. Thus, the type of management can also have a strong effect on how genetic diversity and interaction network are structured and future studies considering cultural management should be included.

Conclusion and future studies

We do not find any difference in the network structure between female and male flowers, however how the difference in the amount of nectar and floral fragrance of both types of flowers affects pollination in C. pepo is still an open question and future analyses are necessary. While a genetic basis to community stability has previously been shown, this is one of the first studies empirically suggesting that genetic diversity may have an interaction with the landscape that enhances network structure and it may mitigate the negative effects of the environment. This establishes a caveat since the loss of important genotypes due to habitat loss and climate change may introduce instability, reducing the complexity of the network and hence also the robustness. In this way, considering the interactions of species based on genetic diversity will allow us to better understand how networks are affected by environmental and internal variables and promote diversity and stability of community networks. Our study set the bases for future studies on C. pepo, determining the effect of landscape, management and genetic diversity in their interaction networks. Additionally, studies in which the flower-visitors for specific genotypes can be established are crucial for a detailed understanding of the action of genetic diversity on network structure. Further, the use of genomics tools will allow having a deep understanding of the genetic dynamic related to phenotypic variation and therefore the influence on network structure and landscape effect. Likewise, more in-depth and empirical studies are needed in order to have a better understanding of the dynamics between landscape and the genetic diversity of key species on network structure.