igraph
High performance graph data structures and algorithms
Decision gist · record as of 2026-08-14
Yes, if you need to work with graphs or networks. igraph is actively maintained, widely used (top 5000 on PyPI), has no known vulnerabilities, and offers substantial performance advantages over pure-Python graph libraries due to its C backend. The copyleft GPL license is a consideration if you plan to redistribute; otherwise it poses no barrier to use. Medium install friction is acceptable given the availability of prebuilt wheels.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.9 or later.
- Graph plotting requires separate installation of cairocffi or pycairo; cairocffi is recommended for Jupyter compatibility.
- Medium install friction due to compiled C bindings; however, prebuilt wheels are available for common platforms (macOS, Linux, Windows) and Python versions 3.9–3.13.
License · maintenance · safety
GNU General Public License (GPL) (copyleft) — Licensed under GNU General Public License (GPL), a copyleft license. Any software that links to or redistributes igraph must comply with GPL terms, including making source code available under compatible terms.
last release 2025-10-23 (295 days) · last repo commit 2026-05-14 · 1,459 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 3,425,214 downloads/mo, #2,626 on PyPI
Alternatives
Verify before relying
pip install igraph
import igraph as ig
# Create a simple graph
g = ig.Graph.Famous("petersen")
print(g.summary())- Whether graph plotting requires explicit installation of cairocffi or pycairo, or if igraph functions without them
- Performance characteristics and scalability limits for large graphs
What it is and what it does
igraph is a Python binding to a high-performance C graph library designed for network research and complex network analysis. It provides data structures and algorithms for constructing graphs, computing network metrics, detecting communities, and analyzing structural properties. The package is aimed at researchers and developers working with graph-based problems in biology, physics, social networks, and discrete mathematics.
The library's core functionality is written in C for speed, but is exposed through a Python API. Graph visualization is optional and requires separate installation of Cairo bindings (cairocffi or pycairo); the description notes that cairocffi is recommended for Jupyter notebook compatibility. The package supports Python 3.9 and later, with precompiled wheels for most common platforms, reducing installation complexity compared to pure source builds.
Use it for
- Analyze social networks, citation networks, or biological networks to compute centrality measures and detect community structure
- Perform graph algorithms like shortest paths, spanning trees, or clique detection on large datasets
- Generate publication-quality network visualizations using Cairo integration for research papers or reports
- Study discrete mathematical properties of graphs in academic research or algorithm development
- Build network-based applications requiring fast graph operations on millions of nodes or edges
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you need to work with graphs or networks.
igraph is actively maintained, widely used (top 5000 on PyPI), has no known vulnerabilities, and offers substantial performance advantages over pure-Python graph libraries due to its C backend. The copyleft GPL license is a consideration if you plan to redistribute; otherwise it poses no barrier to use. Medium install friction is acceptable given the availability of prebuilt wheels.
Install
igraph on PyPI
Before you install
Medium install friction due to compiled C bindings; however, prebuilt wheels are available for common platforms (macOS, Linux, Windows) and Python versions 3.9–3.13. The package is actively maintained with recent commits and a stable release cadence.
Requires Python 3.9 or later. Graph plotting requires separate installation of cairocffi or pycairo; cairocffi is recommended for Jupyter compatibility.
License in practice
Licensed under GNU General Public License (GPL), a copyleft license. Any software that links to or redistributes igraph must comply with GPL terms, including making source code available under compatible terms.
Quickstart
pip install igraph
import igraph as ig
# Create a simple graph
g = ig.Graph.Famous("petersen")
print(g.summary())
Verify before relying
- Whether graph plotting requires explicit installation of cairocffi or pycairo, or if igraph functions without them
- Performance characteristics and scalability limits for large graphs
Package facts
| License | GNU General Public License (GPL) copyleft |
| Python support | Supports the current Python release >=3.9 |
| Install friction | Medium. Platform-specific wheel |
| Runtime dependencies | 1 packagetexttable |
| Maintenance | Actively maintained 295 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 3,425,214 / month, #2,626 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 4 - BetaIntended Audience :: DevelopersIntended Audience :: Science/ResearchOperating System :: OS IndependentProgramming Language :: CProgramming Language :: Python :: 3Programming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.9Topic :: Scientific/EngineeringTopic :: Scientific/Engineering :: Bio-InformaticsTopic :: Scientific/Engineering :: Information AnalysisTopic :: Scientific/Engineering :: MathematicsTopic :: Scientific/Engineering :: PhysicsTopic :: Software Development :: Libraries :: Python Modules |
Evidence: igraph-1.0.0-cp39-abi3-macosx_10_15_x86_64.whl; igraph-1.0.0-cp39-abi3-macosx_11_0_arm64.whl; igraph-1.0.0-cp39-abi3-manylinux_2_28_aarch64.whl; igraph-1.0.0-cp39-abi3-manylinux_2_28_x86_64.whl; igraph-1.0.0-cp39-abi3-musllinux_1_2_aarch64.whl; igraph-1.0.0-cp39-abi3-musllinux_1_2_x86_64.whl; igraph-1.0.0-cp39-abi3-win32.whl; igraph-1.0.0-cp39-abi3-win_amd64.whl; igraph-1.0.0-cp39-abi3-win_arm64.whl; igraph-1.0.0-pp311-pypy311_pp73-macosx_10_15_x86_64.whl; igraph-1.0.0-pp311-pypy311_pp73-macosx_11_0_arm64.whl; igraph-1.0.0-pp311-pypy311_pp73-manylinux_2_28_aarch64.whl; igraph-1.0.0-pp311-pypy311_pp73-manylinux_2_28_x86_64.whl; igraph-1.0.0-pp311-pypy311_pp73-win_amd64.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “network metrics and properties”
- igraphigraph provides a Python interface to a high-performance C graph…
- momepyMomepy quantifies urban form through morphometric measurements:…
- ipysigmaA Jupyter widget that renders interactive network graphs directly in…
Give your agent the search over MCP, or paste the wish link into any chat.
More Scientific/Engineering packages
NumPy provides an N-dimensional array object and a comprehensive suite of mathematical, linear algebra, Fourier transform, and random number functions for scientific computing in Python.
pandas provides fast, flexible data structures (Series and DataFrame) for loading, cleaning, transforming, and analyzing labeled or relational data in Python.
scipy provides numerical algorithms for mathematics, science, and engineering—including optimization, integration, linear algebra, Fourier transforms, signal and image processing, and ODE solvers—built on numpy arrays.
scikit-learn provides a comprehensive Python library for supervised and unsupervised machine learning, including classification, regression, clustering, dimensionality reduction, and model evaluation tools built on NumPy and SciPy.
Install it if you need to train, evaluate, or deploy supervised or unsupervised learning models.
dill extends Python's pickle module to serialize and deserialize a much wider range of Python objects, including functions, lambdas, classes, and interpreter sessions, to byte streams for storage or network transmission.
Multiprocess is an enhanced fork of Python's standard multiprocessing library that uses dill for better serialization, allowing you to spawn processes with a threading-like API and share complex objects between them.
Install it if you use multiprocessing and encounter pickle serialization limits with lambdas or complex objects.
See also networkx · python-igraph · leidenalg · ipysigma · pygraphviz · matplotlib · planarity · scikit-network