graph-tool

Install command:
brew install graph-tool

Efficient network analysis for Python 3

https://graph-tool.skewed.de/

License: LGPL-3.0-or-later

Development: Pull requests

Formula JSON API: /api/formula/graph-tool.json

Formula code: graph-tool.rb on GitHub

Bottle (binary package) installation support provided for:

macOS on
Apple Silicon
tahoe
sequoia
sonoma
Linux ARM64
x86_64

Current versions:

stable 3.7

Depends on:

boost 1.92.0 Collection of portable C++ source libraries
boost-python3 1.92.0 C++ library for C++/Python3 interoperability
cairomm 1.18.1 Vector graphics library with cross-device output support
gmp 6.3.0 GNU multiple precision arithmetic library
numpy 2.5.3 Package for scientific computing with Python
python@3.14 3.14.7 Interpreted, interactive, object-oriented programming language
scipy 1.18.1 Software for mathematics, science, and engineering
zstd 1.5.7 Zstandard is a real-time compression algorithm
cairo 1.18.4 Vector graphics library with cross-device output support
libomp 23.1.1 LLVM's OpenMP runtime library
libsigc++ 3.8.1 Callback framework for C++

Depends on when building from source:

cgal 6.2.1 Computational Geometry Algorithms Library
pkgconf 3.0.7 Package compiler and linker metadata toolkit
py3cairo 1.29.1 Python 3 bindings for the Cairo graphics library
python-setuptools 84.0.0 Easily download, build, install, upgrade, and uninstall Python packages
llvm 23.1.1 Next-gen compiler infrastructure

Uses from macOS: expat (since macOS Sequoia)

If you want graph drawing, you will need to install additional formulae:
    brew install gtk+3 py3cairo pygobject3 python-matplotlib

If you want zstd decompression, you can use the bundled Python package, e.g.
    export PYTHONPATH="$HOMEBREW_PREFIX/opt/graph-tool/libexec/lib/python3.14/site-packages"

Analytics:

30 days90 days365 days
Installs1284481,530
Installs (--HEAD)002
Installs on Request1284481,530
Installs on Request (--HEAD)002
Build Errors7