Abstract
The concept of distance is a fundamental idea in graphs and hypergraphs. However, its extension to weighted hypergraphs is challenging, since it may result in inconsistencies, especially if the weights are arbitrarily assigned to the hyperedges. We address this challenge by proposing a general distance measure for weighted hypergraphs. Our measure is well-defined, and it reduces to the classic graph distance if the edges in the hypergraph are all pairwise links. We demonstrate the applicability of our definition by analyzing a number of real-world higher-order datasets, including the network of preprints in the arXiv repository, for which we choose the weights in a way that reflects the notion of cognitive distance, which measures the conceptual remoteness between fields. Our results demonstrate that, when higher-order edges cannot be neglected, the use of a full hypergraph measure is necessary to avoid the information loss that would result from commonly used approaches, such as clique projection.
Similar content being viewed by others
Data availability
The datasets used in this study are available at https://www.cs.cornell.edu/arb/data/. The arXiv dataset is available at https://github.com/mattbierbaum/arxiv-public-datasets.
Code availability
The source code for all the computations is available at https://codeberg.org/paraw/Hyperdist/.
References
Boccaletti, S., Latora, V., Moreno, Y., Chavez, M. & Hwang, D.-U. Complex networks: Structure and dynamics. Phys. Rep. 424, 175 (2006).
Boccaletti, S. et al. The structure and dynamics of multilayer networks. Phys. Rep. 544, 1 (2014).
Battiston, S. et al. Networks beyond pairwise interactions: Structure and dynamics. Phys. Rep. 874, 1 (2020).
Boccaletti, S. et al. The structure and dynamics of networks with higher order interactions. Phys. Rep. 1018, 1 (2023).
Vasilyeva, E. et al. Distances in higher-order networks and the metric structure of hypergraphs. Entropy 25, 923 (2023).
Molas-Gallart, J., Rafols, I. & Tang, P. On the relationship between interdisciplinarity and impact: different modalities of interdisciplinarity lead to different types of impact. J. Sci. Pol. Res. Manag. 29, 69 (2014).
Singh, C. K., Tupikina, L., Lécuyer, F., Starnini, M. & Santolini, M. Charting mobility patterns in the scientific knowledge landscape. EPJ Data Sci. 13, 12 (2024).
Bretto, A. Hypergraph theory: an introduction, Springer, Cham (2013).
Mancastroppa, M., Iacopini, I., Petri, G. & Barrat, A. The structural evolution of temporal hypergraphs through the lens of hyper-cores. EPJ Data Sci. 13, 1 (2024).
Nortier, B. L., Dobson, S. & Battiston, F. Higher-order shortest paths in hypergraphs, Phys. Rev. E. 112, 054302 (2025).
Clement, C. B., Bierbaum, M., O’Keeffe, K. P. & Alemi, A. A. On the Use of ArXiv as a Dataset, Representation Learning on Graphs and Manifolds (RLGM) workshop at the International Conference on Learning Representations (ICLR) 2019 conference(2019).
del Genio, C. I. Hypermodularity and community detection in higher-order networks. Phys. Rev. Res. 7, 033045 (2025).
Stehlé, J. et al. High-Resolution measurements of face-to-face contact patterns in a primary school. PLoS One 6, e23176 (2011).
Mastrandrea, R., Fournet, J. & Barrat, A. Contact patterns in a high school: a comparison between data collected using wearable sensors. PLoS One 10, e0136497 (2015).
Benson, A. R., Abebe, R., Schaub, M. T., Jadbabaie, A. & Kleinberg, J. Simplicial closure and higher-order link prediction. Proc. Natl. Acad. Sci. USA 115, E11221 (2018).
Chodrow, P. S., Veldt, N. & Benson, A. R. Generative hypergraph clustering: from blockmodels to modularity. Sci. Adv. 7, eabh1303 (2021).
Shi, F. & Evans, J. Surprising combinations of research contents and contexts are related to impact and emerge with scientific outsiders from distant disciplines. Nat. Commun. 14, 1641 (2023).
Acknowledgements
A.M.R. was supported by the Ministry of Science and Higher Education of the Russian Federation, project No. FSMG-2024-0011. C.I.D.G. acknowledges funding from the Bulgarian Ministry of Education and Science, under Project No. BG-RRP-2.004-0006-C02. S.B. acknowledges support from the project n. PGR01177 of the Italian Ministry of Foreign Affairs and International Cooperation. The authors would like to thank Ivan Samoylenko and Kirill Kovalenko for fruitful discussions.
Author information
Authors and Affiliations
Contributions
C.I.D.G.: validation, formal analysis, supervision, writing. E.V.: methodology, numerics, formal analysis, writing. L.T.: methodology, numerics, formal analysis, writing. D.F.: numerics, writing. D.M.: validation, writing, project administration. A.M.R.: validation, writing. S.B.: conceptualization, supervision, writing.
Corresponding author
Ethics declarations
Competing interests
The authors declare no competing interests.
Peer review
Peer review information
Nature Communications thanks Sovan Samanta and the other anonymous reviewer(s) for their contribution to the peer review of this work.
Additional information
Publisher’s note Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Rights and permissions
Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made. The images or other third party material in this article are included in the article’s Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article’s Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creativecommons.org/licenses/by/4.0/.
About this article
Cite this article
del Genio, C.I., Vasilyeva, E., Tupikina, L. et al. Distances in weighted higher-order networks. Commun Phys (2026). https://doi.org/10.1038/s42005-026-02592-w
Received:
Accepted:
Published:
DOI: https://doi.org/10.1038/s42005-026-02592-w


