Install command:
brew install graph-tool

Efficient network analysis for Python 3

License: LGPL-3.0-or-later

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

Formula code: graph-tool.rb on GitHub

Bottle (binary package) installation support provided for:

Apple Silicon sonoma
Intel sonoma
64-bit linux

Current versions:

stable 2.65

Depends on:

boost 1.85.0 Collection of portable C++ source libraries
boost-python3 1.85.0 C++ library for C++/Python3 interoperability
cairomm@1.14 1.14.5 Vector graphics library with cross-device output support
cgal 5.6.1 Computational Geometry Algorithms Library
freetype 2.13.2 Software library to render fonts
google-sparsehash 2.0.4 Extremely memory-efficient hash_map implementation
gtk+3 3.24.42 Toolkit for creating graphical user interfaces
numpy 1.26.4 Package for scientific computing with Python
pillow 10.3.0 Friendly PIL fork (Python Imaging Library)
py3cairo 1.26.0 Python 3 bindings for the Cairo graphics library
pygobject3 3.48.2 GNOME Python bindings (based on GObject Introspection)
python@3.12 3.12.3 Interpreted, interactive, object-oriented programming language
qhull 2020.2 Computes convex hulls in n dimensions
scipy 1.13.0 Software for mathematics, science, and engineering
zstd 1.5.6 Zstandard is a real-time compression algorithm

Depends on when building from source:

ninja 1.12.1 Small build system for use with gyp or CMake
pkg-config 0.29.2 Manage compile and link flags for libraries

Requires: macOS >= 10.14

Only the main library is linked to avoid contaminating the shared site-packages.
Graph drawing and other features that require extra Python packages may be used
by adding the following formula-specific site-packages to your PYTHONPATH:


Installs (30 days)
graph-tool 430
Installs on Request (30 days)
graph-tool 430
Build Errors (30 days)
graph-tool 1
Installs (90 days)
graph-tool 1,124
graph-tool --HEAD 2
Installs on Request (90 days)
graph-tool 1,124
graph-tool --HEAD 2
Installs (365 days)
graph-tool 4,547
graph-tool --HEAD 5
Installs on Request (365 days)
graph-tool 4,547
graph-tool --HEAD 5
Fork me on GitHub