Reuse & Permissions

It is not necessary to obtain permission to reuse this article or its components as it is available under the terms of the Creative Commons Attribution 4.0 International license. This license permits unrestricted use, distribution, and reproduction in any medium, provided attribution to the author(s) and the published article's title, journal citation, and DOI are maintained. Please note that some figures may have been included with permission from other third parties. It is your responsibility to obtain the proper permission from the rights holder directly for these figures.

Export citation

Export citation

Choose format for download:

Download Citation
  • Open Access

Bipartite structural evaluation: Extended network generation model and corrected randomization techniques

Harry de los Ríos1, María J. Palazzi1, Aniello Lampo2, Albert Solé-Ribalta1, and Javier Borge-Holthoefer1,*

  • *Contact author: jborgeh@uoc.edu

Phys. Rev. Research 8, 013036 – Published 14 January, 2026

DOI: https://doi.org/10.1103/7t51-c6tx

Abstract

Understanding the structural organization of bipartite networks is essential for characterizing the architecture and dynamics of complex systems, from ecological communities to technological and social interactions. Such networks often exhibit recurring patterns—nestedness, modularity, in-block nestedness—that shape system stability, diversity, and function. Yet, despite extensive research, assessing the statistical significance of these patterns remains problematic, as existing null models may introduce systematic biases that can lead to contradictory interpretations. Here, we develop a generative framework that analytically constructs synthetic bipartite networks spanning the most common structural regimes and use it to perform a comprehensive evaluation of state-of-the-art null models. Across large synthetic and empirical ensembles, we show how commonly used null models inconsistently estimate the significance of nested, modular, and compound architectures, depending on how degree constraints are imposed. Building on these insights, we introduce a corrected probabilistic model that reconciles, to some extent, these inconsistencies, providing a more balanced basis for significance testing. Our work thus establishes a unified theoretical and computational framework for generating, analyzing, and interpreting structure in bipartite networks, offering conceptual and methodological guidance for future research in ecology and beyond.

View figure in article

Physics Subject Headings (PhySH)

Article Text

Supplemental Material

References (86)

  1. J. Bascompte, P. Jordano, C. J. Melián, and J. M. Olesen, The nested assembly of plant–animal mutualistic networks, Proc. Natl. Acad. Sci. USA 100, 9383 (2003).
  2. J. M. Olesen, J. Bascompte, Y. L. Dupont, and P. Jordano, The modularity of pollination networks, Proc. Natl. Acad. Sci. USA 104, 19891 (2007).
  3. U. Bastolla, M. A. Fortuna, A. Pascual-García, A. Ferrera, B. Luque, and J. Bascompte, The architecture of mutualistic networks minimizes competition and increases biodiversity, Nature (London) 458, 1018 (2009).
  4. S. Suweis, F. Simini, J. R. Banavar, and A. Maritan, Emergence of structural and dynamical properties of ecological mutualistic networks, Nature (London) 500, 449 (2013).
  5. R. P. Rohr, S. Saavedra, and J. Bascompte, On the structural stability of mutualistic systems, Science 345, 1253497 (2014).
  6. S. Saavedra, R. Rohr, J. Olesen, and J. Bascompte, Nested species interactions promote feasibility over stability during the assembly of a pollinator community, Ecol. Evol. 6, 997 (2016).
  7. A. Pascual-García and U. Bastolla, Mutualism supports biodiversity when the direct competition is weak, Nat. Commun. 8, 1 (2017).
  8. S. Allesina, J. Grilli, G. Barabás, S. Tang, J. Aljadeff, and A. Maritan, Predicting the stability of large structured food webs, Nat. Commun. 6, 7842 (2015).
  9. J. Grilli, T. Rogers, and S. Allesina, Modularity and stability in ecological communities, Nat. Commun. 7, 12031 (2016).
  10. T. Okuyama and J. N. Holland, Network structural properties mediate the stability of mutualistic communities, Ecol. Lett. 11, 208 (2008).
  11. E. Thébault and C. Fontaine, Stability of ecological communities and the architecture of mutualistic and trophic networks, Science 329, 853 (2010).
  12. S. Allesina and S. Tang, Stability criteria for complex ecosystems, Nature (London) 483, 205 (2012).
  13. P. P. Staniczenko, J. C. Kopp, and S. Allesina, The ghost of nestedness in ecological networks, Nat. Commun. 4, 1391 (2013).
  14. M. S. Mariani, Z.-M. Ren, J. Bascompte, and C. J. Tessone, Nestedness in complex networks: Observation, emergence, and implications, Phys. Rep. 813, 1 (2019).
  15. C. O. Flores, T. Poisot, S. Valverde, and J. S. Weitz, BiMat: a matlab package to facilitate the analysis of bipartite networks, Methods Ecol. Evol. 7, 127 (2016).
  16. I. P. Vaughan, N. J. Gotelli, J. Memmott, C. E. Pearson, G. Woodward, and W. O. Symondson, econullnetr: An r package using null models to analyse the structure of ecological networks and identify resource selection, Methods Ecol. Evol. 9, 728 (2018).
  17. G. Strona, W. Ulrich, and N. J. Gotelli, Bi-dimensional null model analysis of presence-absence binary matrices, Ecology 99, 103 (2018).
  18. B. I. Simmons, M. J. Sweering, M. Schillinger, L. V. Dicks, W. J. Sutherland, and R. Di Clemente, bmotif: A package for motif analyses of bipartite networks, Methods Ecol. Evol. 10, 695 (2019).
  19. C. Farage, D. Edler, A. Eklöf, M. Rosvall, and S. Pilosof, Identifying flow modules in ecological networks using Infomap, Methods Ecol. Evol. 12, 778 (2021).
  20. C. Hoeppke and B. I. Simmons, maxnodf: An r package for fair and fast comparisons of nestedness between networks, Methods Ecol. Evol. 12, 580 (2021).
  21. F. Banville, S. Vissault, and T. Poisot, Mangal.jl and EcologicalNetworks.jl: Two complementary packages for analyzing ecological networks in Julia, J. Open Source Software 6, 2721 (2021).
  22. T. M. Lewinsohn, P. Inácio Prado, P. Jordano, J. Bascompte, and J. M. Olesen, Structure in plant–animal interaction assemblages, Oikos 113, 174 (2006).
  23. C. O. Flores, J. R. Meyer, S. Valverde, L. Farr, and J. S. Weitz, Statistical structure of host–phage interactions, Proc. Natl. Acad. Sci. USA 108, E288 (2011).
  24. M. Schröder, N. A. M. Araujo, D. Sornette, and J. Nagler, Revealing in-block nestedness: Detection and benchmarking, Phys. Rev. E 96, 062302 (2017).
  25. C. O. Flores, S. Valverde, and J. S. Weitz, Multi-scale structure and geographic drivers of cross-infection within marine bacteria and phages, ISME J. 7, 520 (2013).
  26. W. Cai, J. Snyder, A. Hastings, and R. M. D’Souza, Mutualistic networks emerging from adaptive niche-based interactions, Nat. Commun. 11, 5470 (2020).
  27. M. J. Palazzi, A. Solé-Ribalta, V. Calleja-Solanas, S. Meloni, C. A. Plata, S. Suweis, and J. Borge-Holthoefer, An ecological approach to structural flexibility in online communication systems, Nat. Commun. 12, 1941 (2021).
  28. M. A. Mello, G. M. Felix, R. B. Pinheiro, R. L. Muylaert, C. Geiselman, S. E. Santana, M. Tschapka, N. Lotfi, F. A. Rodrigues, and R. D. Stevens, Insights into the assembly rules of a continent-wide multilayer network, Nat. Ecol. Evol. 3, 1525 (2019).
  29. A. Lampo, M. J. Palazzi, J. Borge-Holthoefer, and A. Solé-Ribalta, Structural dynamics of plant–pollinator mutualistic networks, PNAS Nexus 3, 209 (2024).
  30. M. A. de Aguiar, E. A. Newman, M. M. Pires, J. D. Yeakel, C. Boettiger, L. A. Burkle, D. Gravel, P. R. Guimarães, Jr., J. L. O’Donnell, T. Poisot, et al., Revealing biases in the sampling of ecological interaction networks, PeerJ 7, e7566 (2019).
  31. S. J. Beckett, C. A. Boulton, and H. T. Williams, FALCON: A software package for analysis of nestedness in bipartite networks, F1000Research 3, 185 (2014).
  32. T. P. Peixoto, Descriptive vs. Inferential Community Detection in Networks: Pitfalls, Myths and Half-truths (Cambridge University Press, Cambridge, 2023).
  33. See Supplemental Material at https://link.aps.org/supplemental/10.1103/7t51-c6tx for further details on structural patterns and results, which includes Refs. [62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86].
  34. M. Girvan and M. E. Newman, Community structure in social and biological networks, Proc. Natl. Acad. Sci. USA 99, 7821 (2002).
  35. A. Lancichinetti, S. Fortunato, and F. Radicchi, Benchmark graphs for testing community detection algorithms, Phys. Rev. E 78, 046110 (2008).
  36. P. F. Sale, Overlap in resource use, and interspecific competition, Oecologia 17, 245 (1974).
  37. E. F. Connor and D. Simberloff, The assembly of species communities: Chance or competition? Ecology 60, 1132 (1979).
  38. W. Ulrich and N. J. Gotelli, Null model analysis of species nestedness patterns, Ecology 88, 1824 (2007).
  39. N. J. Gotelli and W. Ulrich, Statistical challenges in null model analysis, Oikos 121, 171 (2012).
  40. L. N. Joppa, J. M. Montoya, R. Solé, J. Sanderson, and S. L. Pimm, On nestedness in ecological networks, Evolutionary Ecol. Res. 12, 35 (2010).
  41. N. J. Gotelli and G. L. Entsminger, Swap and fill algorithms in null model analysis: Rethinking the knight’s tour, Oecologia 129, 281 (2001).
  42. V. Lehsten and P. Harmand, Null models for species co-occurrence patterns: Assessing bias and minimum iteration number for the sequential swap, Ecography 29, 786 (2006).
  43. I. Miklós and J. Podani, Randomization of presence–absence matrices: Comments and new algorithms, Ecology 85, 86 (2004).
  44. G. Strona, D. Nappo, F. Boccacci, S. Fattorini, and J. San-Miguel-Ayanz, A fast and unbiased procedure to randomize ecological binary matrices with fixed row and column totals, Nat. Commun. 5, 4114 (2014).
  45. J. W. Miller and M. T. Harrison, Exact sampling and counting for fixed-margin matrices, Ann. Stat. 41, 1569 (2013).
  46. S. Rechner, L. Strowick, and M. Müller-Hannemann, Uniform sampling of bipartite graphs with degrees in prescribed intervals, J. Complex Networks 6, 833 (2018).
  47. Y. Artzy-Randrup and L. Stone, Generating uniformly distributed random networks, Phys. Rev. E 72, 056708 (2005).
  48. C. J. Carstens, Proof of uniform sampling of binary matrices with fixed row sums and column sums for the fast Curveball algorithm, Phys. Rev. E 91, 042812 (2015).
  49. T. Squartini and D. Garlaschelli, Analytical maximum-likelihood method to detect patterns in real networks, New J. Phys. 13, 083001 (2011).
  50. J. Park and M. E. J. Newman, Statistical mechanics of networks, Phys. Rev. E 70, 066117 (2004).
  51. F. Saracco, R. Di Clemente, A. Gabrielli, and T. Squartini, Randomizing bipartite networks: The case of the world trade web, Sci. Rep. 5, 10595 (2015).
  52. C. Payrató-Borràs, L. Hernández, and Y. Moreno, Breaking the spell of nestedness: The entropic origin of nestedness in mutualistic systems, Phys. Rev. X 9, 031024 (2019).
  53. M. J. Barber, Modularity and community detection in bipartite networks, Phys. Rev. E 76, 066102 (2007).
  54. J. Duch and A. Arenas, Community detection in complex networks using extremal optimization, Phys. Rev. E 72, 027104 (2005).
  55. M. Almeida-Neto, P. Guimaraes, P. R. Guimarães, R. D. Loyola, and W. Ulrich, A consistent metric for nestedness analysis in ecological systems: Reconciling concept and measurement, Oikos 117, 1227 (2008).
  56. F. K. Bell, D. Cvetkovic, P. Rowlinson, and S. K. Simic, Graphs for which the least eigenvalue is minimal, II, Linear Algebra Appl. 429, 2168 (2008).
  57. M. Bruno, F. Saracco, D. Garlaschelli, C. J. Tessone, and G. Caldarelli, The ambiguity of nestedness under soft and hard constraints, Sci. Rep. 10, 1 (2020).
  58. M. Palazzi, J. Borge-Holthoefer, C. Tessone, and A. Solé-Ribalta, Macro-and mesoscale pattern interdependencies in complex networks, J. R. Soc. Interface 16, 20190553 (2019).
  59. Web of life: Ecological networks database (2012), https://www.web-of-life.es/.
  60. BUNGen: Synthetic generator for structured ecological networks (2025), https://github.com/COSIN3-UOC/BUNGen.
  61. Null models implementation (2025), https://github.com/COSIN3-UOC/null_models.
  62. E. Hultén, Outline of the History of Arctic and Boreal Biota during the Quaternary Period (Bokforlags Aktiebolaget Thule, Stockholm, Sweden, 1937).
  63. P. J. Darlington, Zoogeography: The Geographical Distributions of Animals (Wiley, New York, 1957).
  64. B. D. Patterson and W. Atmar, Nested subsets and the structure of insular mammalian faunas and archipelagos, Biol. J. Linn. Soc. 28, 65 (1986).
  65. S. Cobo-López, V. K. Gupta, J. Sung, R. Guimerá, and M. Sales-Pardo, Stochastic block models reveal a robust nested pattern in healthy human gut microbiomes, PNAS Nexus 1, pgac055 (2022).
  66. K. Soramäki, M. L. Bech, J. Arnold, R. J. Glass, and W. E. Beyeler, The topology of interbank payment flows, Physica A 379, 317 (2007).
  67. M. D. König, C. J. Tessone, and Y. Zenou, Nestedness in networks: A theoretical model and some applications, Theor. Econ. 9, 695 (2014).
  68. F. Saracco, R. Di Clemente, A. Gabrielli, and T. Squartini, Detecting early signs of the 2007–2008 crisis in the world trade, Sci. Rep. 6, 30286 (2016).
  69. J. Borge-Holthoefer, R. A. Baños, C. Gracia-Lázaro, and Y. Moreno, Emergence of consensus as a modular-to-nested transition in communication dynamics, Sci. Rep. 7, 41673 (2017).
  70. C. Payrató-Borràs, L. Hernández, and Y. Moreno, Measuring nestedness: A comparative study of the performance of different metrics, Ecol. Evol. 10, 11906 (2020).
  71. A. Bhattacharya, S. Friedland, and U. N. Peled, On the first eigenvalue of bipartite graphs, arXiv:0809.1615.
  72. W. Atmar and B. D. Patterson, The measure of order and disorder in the distribution of species in fragmented habitat, Oecologia 96, 373 (1993).
  73. J. Galeano, J. M. Pastor, and J. M. Iriondo, Weighted-interaction nestedness estimator (wine): A new estimator to calculate over frequency matrices, Environ. Modell. Software 24, 1342 (2009).
  74. M. Almeida-Neto and W. Ulrich, A straightforward computational approach for measuring nestedness using quantitative matrices, Environ. Model. Software 26, 173 (2011).
  75. J. Podani, C. Ricotta, and D. Schmera, A general framework for analyzing beta diversity, nestedness and related community-level phenomena based on abundance data, Ecol. Complexity 15, 52 (2013).
  76. S. Fortunato, Community detection in graphs, Phys. Rep. 486, 75 (2010).
  77. R. Guimerà and L. A. N. Amaral, Functional cartography of complex metabolic networks, Nature (London) 433, 895 (2005).
  78. J. Borge-Holthoefer and A. Arenas, Semantic networks: Structure and dynamics, Entropy 12, 1264 (2010).
  79. R. Guimerà, D. Stouffer, M. Sales-Pardo, E. Leicht, M. Newman, and L. A. Amaral, Origin of compartmentalization in food webs, Ecology 91, 2941 (2010).
  80. D. B. Stouffer and J. Bascompte, Compartmentalization increases food-web persistence, Proc. Natl. Acad. Sci. USA 108, 3648 (2011).
  81. S. Fortunato and D. Hric, Community detection in networks: A user guide, Phys. Rep. 659, 1 (2016).
  82. M. E. J. Newman and M. Girvan, Finding and evaluating community structure in networks, Phys. Rev. E 69, 026113 (2004).
  83. L. Danon, A. Diaz-Guilera, J. Duch, and A. Arenas, Comparing community structure identification, J. Stat. Mech.: Theory Exp. (2005) P09008.
  84. C. Granell, R. K. Darst, A. Arenas, S. Fortunato, and S. Gómez, Benchmark model to assess community structure in evolving networks, Phys. Rev. E 92, 012805 (2015).
  85. M. A. Fortuna, D. B. Stouffer, J. M. Olesen, P. Jordano, D. Mouillot, B. R. Krasnov, R. Poulin, and J. Bascompte, Nestedness versus modularity in ecological networks: Two sides of the same coin? J. Anim. Ecol. 79, 811 (2010).
  86. M. J. Palazzi, J. Cabot, J. L. C. Izquierdo, A. Solé-Ribalta, and J. Borge-Holthoefer, Online division of labour: Emergent structures in open source software, Sci. Rep. 9, 13890 (2019).

Outline

Information

Sign In to Your Journals Account

Filter

Filter

Article Lookup

Enter a citation