python-igraph wraps the igraph C library to create, convert, analyze, and plot graphs from Python code.
Overview
python-igraph exposes igraph, a C library built for creating and manipulating graphs efficiently enough for large networks. The Python package ships matching native sources and installs from PyPI wheels for recent CPython releases, or can compile against a system igraph when configured.
You can build and analyze networks, convert to or from networkx and graph-tool, and emit plots through Cairo, matplotlib, or plotly. Documentation includes quick starts, galleries, generation and analysis guides, and an API reference hosted on Read the Docs.
Install with pip or conda-forge. Advanced setups on Linux, Windows, or macOS may compile from source, link to an existing igraph via pkg-config, or enable GraphML through libxml2 where supported. Development installs track main or develop branches with extra build tools.
Researchers and engineers choose it when Python-level graph algorithms must stay close to the performance of igraph's C core while remaining scriptable in everyday scientific workflows.
Key features
- Graph creation and analysis APIs
- networkx and graph-tool conversion
- Plotting via Cairo, matplotlib, plotly
- PyPI wheels for recent Python
- Optional external igraph linking
- GraphML support with libxml2
- Tutorials and extended guides
- PyPy compatibility noted in docs
Use cases
- Large-scale complex network research
- Interoperating with networkx pipelines
- Publishing graph visualizations
- Teaching graph theory with Python
- Package-maintainer linked system igraph