Skip to content

Implementation of a contraction-based Multilevel Graph data structure, a hierarchy of related graphs where each level represents a different abstraction of the same data.

License

Notifications You must be signed in to change notification settings

marco-caputo/multilevel-graphs

Repository files navigation

MultiLevelGraphs

Build Status TestPyPI version Documentation Status

Description

MultiLevelGraphs is a Python package based on NetworkX for creating and managing hierarchical structures of graphs obtained by gradual contractions of nodes and edges.

A Multi-level graph is a data structure useful for describing structural features of large and sparse directed graphs by identifying meaningful topological patterns, such as strongly connected components, circuits and cliques. It provides operations for building multi-level graphs from directed graphs, and for extracting and analyzing structural patterns at different levels of the hierarchy.

Installation

Before installing MultiLevelGraphs, ensure that you have the following prerequisites:

  • Python 3.10 or higher
  • pip (Python package installer)

You can install MultiLevelGraphs using pip. Open your terminal or command prompt and run the following command:

    pip install --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple/ multilevelgraphs

To verify that the library has been installed correctly, you can try importing it in a Python shell or script. Open your terminal or command prompt and enter:

from src import multilevelgraphs
    
    print(multilevelgraphs.__version__)

This should print the version number of MultiLevelGraphs if the installation was successful.

Documentation

Documentation is available at the following link:

https://multilevel-graphs.readthedocs.io/en/latest/

Dependencies

MultiLevelGraphs has a dependency on NetworkX library. This should be installed automatically when you install MultiLevelGraphs using the command above.

About

Implementation of a contraction-based Multilevel Graph data structure, a hierarchy of related graphs where each level represents a different abstraction of the same data.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages