The CompleX Group Interactions (XGI) library provides data structures and algorithms for modeling and analyzing complex systems with group (higher-order) interactions.
https://xgi.readthedocs.io/en/stable/about.html
https://xgi.readthedocs.io/en/stable/about.html