Tutorial

This section provides interactive tutorials to help you get started with ASH (Attributed Stream Hypergraph). Each tutorial is a Jupyter notebook that demonstrates different aspects of the library.

All tutorial notebooks are available in the tutorial/ folder of the repository.

Getting Started

The tutorials are organized in a progressive manner:

  1. Basics (00-basics.ipynb): Learn how to create an ASH object, add nodes and hyperedges, and access basic properties and measures.

  2. Attribute Analysis (01-attribute_analysis.ipynb): Explore purity/entropy measures on hyperedge profiles, homogeneity, and temporal consistency of attributes.

  3. Walks (02-walks.ipynb): Understand s-walks, distances, and s-based components in the temporal context.

  4. Generators (03-generators.ipynb): Generate random hypergraphs and transform external structures into ASH objects.

  5. I/O Operations (04-io.ipynb): Read and write ASH structures in various formats including CSV profiles, JSON, and HIF format.

  6. Multi-Ego Networks (05-multiego.ipynb): Work with multi-ego network extraction and analysis.

  7. Segregation Analysis (06-segregation.ipynb): Measure and analyze segregation patterns in attributed hypergraphs.

Running the Notebooks

To run the tutorial notebooks locally:

  1. Clone the repository:

    git clone https://github.com/GiulioRossetti/ASH.git
    cd ASH
    
  2. Install the required dependencies:

    pip install -r requirements.txt
    
  3. Launch Jupyter:

    jupyter notebook tutorial/
    

    Or open the notebooks directly in VS Code with the Jupyter extension.