Hostname: page-component-6766d58669-7fx5l Total loading time: 0 Render date: 2026-05-14T14:01:18.730Z Has data issue: false hasContentIssue false

HIF: The hypergraph interchange format for higher-order networks

Published online by Cambridge University Press:  11 December 2025

Martín Coll
Affiliation:
Department of Computer Science, University of Buenos Aires, CABA, Argentina
Cliff A. Joslyn
Affiliation:
Pacific Northwest National Laboratory, Seattle, WA, USA Department of Systems Science and Industrial Engineering, Binghamton University, Binghamton, NY, USA
Nicholas W. Landry*
Affiliation:
Department of Biology, University of Virginia, Charlottesville, VA, USA School of Data Science, University of Virginia, Charlottesville, VA, USA Vermont Complex Systems Institute, University of Vermont, Burlington, VT, USA
Quintino Francesco Lotito
Affiliation:
Department of Information Engineering and Computer Science, University of Trento, Trento, Italy Department of Network and Data Science, Central European University, Vienna, Austria
Audun Myers
Affiliation:
Pacific Northwest National Laboratory, Seattle, WA, USA
Joshua Pickard
Affiliation:
Eric and Wendy Schmidt Center at the Broad Institute of MIT and Harvard, Cambridge, MA, USA
Brenda Praggastis
Affiliation:
Pacific Northwest National Laboratory, Seattle, WA, USA
Przemysław Szufel
Affiliation:
SGH Warsaw School of Economics, Warsaw, Poland
*
Corresponding author: Nicholas W. Landry; Email: nicholas.landry@virginia.edu
Rights & Permissions [Opens in a new window]

Abstract

Many empirical systems contain complex interactions of arbitrary size, representing, for example, chemical reactions, social groups, co-authorship relationships, and ecological dependencies. These interactions are known as higher-order interactions, and the collection of these interactions comprise a higher-order network, or hypergraph. Hypergraphs have established themselves as a popular and versatile mathematical representation of such systems, and a number of software packages written in various programming languages have been designed to analyze these networks. However, the ecosystem of higher-order network analysis software is fragmented due to specialization of each software’s programming interface and compatible data representations. To enable seamless data exchange between higher-order network analysis software packages, we introduce the Hypergraph Interchange Format (HIF), a standardized format for storing higher-order network data. HIF supports multiple types of higher-order networks, including undirected hypergraphs, directed hypergraphs, and abstract simplicial complexes, while actively exploring extensions to represent multiplex hypergraphs, temporal hypergraphs, and ordered hypergraphs. To accommodate the wide variety of metadata used in different contexts, HIF also includes support for attributes associated with nodes, edges, and incidences. This initiative is a collaborative effort involving authors, maintainers, and contributors from prominent hypergraph software packages. This project introduces a JSON schema with corresponding documentation and unit tests, example HIF-compliant datasets, and tutorials demonstrating the use of HIF with several popular higher-order network analysis software packages.

Information

Type
Research Article
Creative Commons
Creative Common License - CCCreative Common License - BY
This is an Open Access article, distributed under the terms of the Creative Commons Attribution licence (https://creativecommons.org/licenses/by/4.0/), which permits unrestricted re-use, distribution and reproduction, provided the original article is properly cited.
Copyright
© The Author(s), 2025. Published by Cambridge University Press
Figure 0

Table 1. A description of the HIF schema. The schema is separated into five types of network data: the type of the higher-order network (encoded in network-type), network-level metadata (encoded in metadata), lists of nodes and edges with their attributes (encoded in nodes and edges, respectively), and structural information comprising information about the constituent nodes, hyperedges, and incidences

Figure 1

Figure 1. The JSON schema is depicted as a graph, showing the hierarchy of properties for each data record. The example demonstrates the use of most properties, including metadata for interpretability.

Figure 2

Figure 2. Example code snippets for validating the schema in different languages. In all cases, url=“https://raw.githubusercontent.com/pszufe/HIF-standard/main/schemas/hif_schema.json” and filepath is the local filepath of the file being validated.

Figure 3

Figure 3. The example code demonstrates creating a HAT hypergraph from an example HIF JSON file and exporting it back to python.

Figure 4

Figure 4. Example demonstrating how to load a HIF-compliant file, use hypergraphx (HGX) functionalities and export the file.

Figure 5

Figure 5. Example demonstrating how to load and export and HIF file using HyperNetX (HNX).

Figure 6

Figure 6. The example code demonstrates creating a hypergraph with node and hyperedge metadata represented as strings and exporting the hypergraph to a HIF-compliant JSON file.

Figure 7

Figure 7. The code example demonstrates using XGI to read and write HIF-compliant files. First, a hypergraph with hyperedges $\{1, 2, 3\}$, $\{2, 3, 4\}$, and $\{1, 4\}$ is generated and written to an HIF-compliant JSON file. Second, the hypergraph is read from that file, casting the names of the nodes from integers to strings, and the hyperedge list is returned.

Figure 8

Figure 8. Illustration of the full publications hypergraph, including disconnected components.

Figure 9

Figure 9. The hypergraph interchange format enables interoperability between many popular higher-order network analysis libraries, as seen in this case study, which analyzes a publication dataset. All code to reproduce this figure is available on the HIF-standard repository (see https://github.com/pszufe/HIF-standard). The notebook that creates each visualization can be found in the HIF-demo.ipynb file. In the center, we display the HIF logo. In panel (a), we use HAT to compute the nonlinear eigenvector centralities of the nodes and hyperedges. In panel (b), we use hypergraphx to visualize the largest connected component of the hypergraph (i), with node colors indicating the community structure. We also visualize the most frequent patterns of group interactions involving three (ii) and four nodes (iii). In panel (c), we use hyperNetX to solely examine the largest component of the hypergraph, compute the closeness centrality for each hyperedge, and color each hyperedge according to its centrality as we can see from the color bar. In panel (d), we use SimpleHypergraphs.jl to find the largest component, compute modularity-based community detection, and to visualize the network projected from the hypergraph, where each hyperedge becomes a clique. In panel (e), we use XGI to compute nodal statistics using the statistics interface; in the visualization, the node size is scaled by the nodal degree and the node color corresponds to the clique eigenvector centrality (CEC) (Benson, 2019). Similarly, in the top inset figure, we see the degree (solid line) and average neighbor degree (dashed line), while in the bottom inset figure, we see the CEC (solid line) and the H-eigenvector centrality (HEC) (Aksoy et al., 2024; Benson, 2019) (dashed line). Note that the node labels are sorted in descending order according to the degree (top) and CEC (bottom).

Supplementary material: File

Coll et al. supplementary material 1

Coll et al. supplementary material
Download Coll et al. supplementary material 1(File)
File 595.3 KB
Supplementary material: File

Coll et al. supplementary material 2

Coll et al. supplementary material
Download Coll et al. supplementary material 2(File)
File 475.5 KB
Supplementary material: File

Coll et al. supplementary material 3

Coll et al. supplementary material
Download Coll et al. supplementary material 3(File)
File 74.6 KB