Skip to content

colltoaction/nx_yaml

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

78 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🕸️ nx_yaml

PyPI version License: CC0 1.0 Network Science

nx_yaml bridges YAML documents and NetworkX by representing YAML as the standard Hypergraph Interchange Format (HIF). For YAML users, this unlocks higher-order graph theory analysis, moving beyond simple tree parsing. For the HIF ecosystem, it provides human-readable native support for higher-order program descriptions.

Features

  • Isomorphic Conversion: Losslessly convert between YAML character streams and NetworkX hypergraphs using nx_hif.
  • Round-Trip Property: Ensuring full structural and syntactic preservation:
    • serialize(compose(yaml)) == yaml
    • compose(serialize(hif)) == hif
  • Formal Hypergraph Definition: Implements the Hypergraph Interchange Format.
  • NetworkX Ecosystem: Built to interoperate with the broader NetworkX ecosystem and libraries.
  • Extensible: Designed for further support of diverse higher-order representations.

Ecosystem Compatibility

nx_yaml enables interoperability across projects in the Higher-order Network Science community, including the HIF-standard:

Citation

If you use nx_yaml in your research, please consider citing the above work:

@article{Coll_Joslyn_Landry_Lotito_Myers_Pickard_Praggastis_Szufel_2025,
  title={HIF: The hypergraph interchange format for higher-order networks},
  volume={13},
  DOI={10.1017/nws.2025.10018},
  journal={Network Science},
  author={Coll, Martín and Joslyn, Cliff A. and Landry, Nicholas W. and Lotito, Quintino Francesco and Myers, Audun and Pickard, Joshua and Praggastis, Brenda and Szufel, Przemysław},
  year={2025},
  pages={e21}
}

License

nx_yaml is dedicated to the public domain under the CC0 1.0 Universal license.

Releases

No releases published

Contributors 2

  •  
  •