Giter Site home page Giter Site logo

hypergraphx's Introduction

📄 Paper | 📎 Docs | 💻 Tutorials | 💾 Data | 🐛 Report bug | 📧 Reach us

HGX is a Python library for the analysis of real-world complex systems with group interactions and provides a comprehensive suite of tools and algorithms for constructing, visualizing, and analyzing hypergraphs.
The library is designed to be user-friendly and accessible, with a wide range of functionalities that can be applied to a diverse set of applications and use cases.

Temporary disclaimer

  • We are finalizing the process of uploading the codebase, the documentation and the datasets. We expect to make the first official release available via pip in the next couple of days.
  • In the meanwhile, if you want to try HGX you can clone the repository and manually install the library.
  • We welcome early feedbacks, discussions, ideas and contributions.

News

  • 2023-03-28: HGX is now available!

Table of contents

What are higher-order networks?

In the last few decades, networks have emerged as the natural tool to model a wide variety of natural, social and man-made systems. Networks, collections of nodes and links connecting pairs of them, are able to capture dyadic interactions only. However, in many real-world systems units interact in groups of three or more. Systems with non-dyadic interactions are ubiquitous, with examples ranging from cellular networks, drug recombination, structural and functional brain networks, human and animal face-to-face interactions, and collaboration networks. These higher-order interactions can be naturally described by alternative mathematical structures such as hypergraphs, where hyperedges connect groups of nodes of arbitrary size.

What is hypergraphx?

The library is conceived by researchers with several years of experience and direct contributions to the field of higher-order interactions. Developed by a diverse multidisciplinary team with complementary skills and expertise, HGX aims to provide, as a single source, a comprehensive suite of tools and algorithms for constructing, storing, analysing and visualizing systems with higher-order interactions. These include different ways to convert data across distinct higher-order representations, a large variety of measures of higher-order organization at the local and the mesoscale, statistical filters to sparsify higher-order data, a wide array of static and dynamic generative models, an implementation of different dynamical processes, from epidemics to diffusion and synchronization, with higher-order interactions, and more. Our computational framework is general, and allows to analyse hypergraphs with weighted, directed, signed, temporal and multiplex group interactions. Beyond experts in the field, we hope that our library will make higher-order network analysis accessible to everyone interested in exploring the higher-order dimension of relational data.

Library highlights

  • HGX allows to store higher-order data as hypergraphs and to convert them to bipartite networks, maximal simplicial complexes, higher-order line graphs, dual hypergraphs, and clique-expansion graphs.
  • It provides simple tools to characterize basic node and hyperedge statistics, such as hyperdegree distributions, correlations and assortativity, at the level of the whole higher-order network and of the individual nodes.
  • Our library provides a variety of higher-order centrality measures for nodes and hyperedges, based on participation in different subhypergraphs, on spectral approaches, and on shortest paths and betweenness flows.
  • HGX implements higher-order motif analysis. It also provides an approximated algorithm for motif analysis based on hyperedge sampling, able to speed up computations by orders of magnitudes with only a minimal compromise in accuracy.
  • Our library provides spectral method to recover hard communities, generative models to extract overlapping communities and to infer hyperedges, methods to capture assortative and disassortative community structure and core-periphery organization in higher-order systems.
  • We implement a variety of different tools to filter the most informative higher-order interactions, based on extracting statistically validated hypergraphs and identifying significant maximally interacting node groups.
  • HGX offers a synthetic hypergraph samplers library, implementing various models such as Erdős-Rényi, scale-free, configuration and community-based models. It also includes a higher-order activity-driven model for temporal group interactions.
  • We provide functions to simulate and analyze several dynamical process on higher-order networks, including synchronization, social contagion and random walks.
  • HGX is highly flexible. It allows to store and analyze hypergraphs with a rich set of features associated with hyperedges, including interactions of different intensity, directions, sign, that vary in time or belong to different layers of a multiplex system.
  • Our library provides different visualization tools to gain visual insights into the higher-order organization of real-world systems.

Quick start

Installation

TODO:

First steps

TODO: add basic tutorial

Tutorials

You can find tutorials covering a variety of use cases here

Data

To appear soon

Citing HNX

If you use HNX or related data in your paper, please cite:

@misc{lotito2023hypergraphx,
      title={Hypergraphx: a library for higher-order network analysis}, 
      author={Quintino Francesco Lotito and Martina Contisciani and Caterina De Bacco and Leonardo Di Gaetano and Luca Gallo and Alberto Montresor and Federico Musciotto and Nicolò Ruggeri and Federico Battiston},
      year={2023},
      eprint={2303.15356},
      archivePrefix={arXiv},
      primaryClass={physics.soc-ph}
}

The HNX team

Project coordinators

Core members

Contributing

HGX is a collaborative project and we welcome suggestions and contributions. If you are interested in contributing to HGX or have any questions about our project, please do not hesitate to reach out to us.

🏃 I only have 1 minute

  • Tweet about our library and spread the voice!
  • Give the project a star on GitHub ⭐!

I've got 10 minutes

  • Are you interested in higher-order motif analysis or community detection in hypergraphs? Try out our tutorials!
  • Suggest ideas and engage in discussions
  • Help someone with a problem
  • Report a bug someone with a problem

💻 I've got a few hours to work on this

🎉 I want to help grow the community

  • Spread the voice!
  • Talk about how HGX has been useful for your research problem
  • Engage in a discussion with the core members of the library

License

Released under the 3-Clause BSD license (see LICENSE.md)

HGX contains copied or modified code from third sources. The licenses of such code sources can be found in our license file

Other resources

Python

Julia

R

hypergraphx's People

Contributors

fralotito avatar nickruggeri avatar leonardodigaetano avatar mcontisc avatar lgajo avatar musci8 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.