Installation ============ ``graphclust`` requires Python 3.10 or newer and depends on NumPy, SciPy, scikit-learn (≥ 1.3), NetworkX and matplotlib. .. code-block:: bash pip install graphclust Optional extras --------------- .. code-block:: bash 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 ----------- .. code-block:: bash git clone https://github.com/ComplexSystemsIntelligence/graphclust.git cd graphclust pip install -e ".[dev]" pytest Building the documentation and the book --------------------------------------- .. code-block:: bash 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