Installation#

graphclust requires Python 3.10 or newer and depends on NumPy, SciPy, scikit-learn (≥ 1.3), NetworkX and matplotlib.

pip install graphclust

Optional extras#

pip install "graphclust[leiden]"   # Leiden community detection (leidenalg, igraph)
pip install "graphclust[test]"     # pytest
pip install "graphclust[docs]"     # build this documentation
pip install "graphclust[dev]"      # everything, plus ruff, build and twine

From source#

git clone https://github.com/ComplexSystemsIntelligence/graphclust.git
cd graphclust
pip install -e ".[dev]"
pytest

Building the documentation and the book#

sphinx-build -b html docs docs/_build/html   # executes every gallery example
book/build.sh                                # needs TeX Live with latexmk, biber,
                                             # raleway, plex and libertinus