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
macOS on
Intel
sonoma
Linux ARM64
x86_64

Current versions:

stable 2.98

Revision: 4

Depends on:

boost 1.90.0 Collection of portable C++ source libraries
boost-python3 1.90.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.1 Package for scientific computing with Python
python@3.14 3.14.6 Interpreted, interactive, object-oriented programming language
scipy 1.18.0 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 22.1.8 LLVM's OpenMP runtime library
libsigc++ 3.8.1 Callback framework for C++

Depends on when building from source:

cgal 6.2 Computational Geometry Algorithms Library
google-sparsehash 2.0.4 Extremely memory-efficient hash_map implementation
pkgconf 3.0.5 Package compiler and linker metadata toolkit
py3cairo 1.29.0 Python 3 bindings for the Cairo graphics library
python-setuptools 83.0.0 Easily download, build, install, upgrade, and uninstall Python packages
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:

Installs (30 days)
graph-tool 222
Installs on Request (30 days)
graph-tool 222
Build Errors (30 days)
graph-tool 17
Installs (90 days)
graph-tool 380
Installs on Request (90 days)
graph-tool 380
Installs (365 days)
graph-tool 1,679
graph-tool --HEAD 3
Installs on Request (365 days)
graph-tool 1,679
graph-tool --HEAD 3