# igraph

Network\-analysis libraries with a C core and interfaces including Python and R\.

ID: Q1053 · Revision: 1101

Type: software · License: Open\-source code under GPL version 2 or later\.[^home] · Status: active

Website: https://igraph.org/



igraph is a family of network\-analysis tools built around a C library, with interfaces including R and Python\. It provides graph construction, algorithms and visualization integrations\. The interfaces and C core have separate release histories, so a feature or version number should be tied to the component actually used\.[^home][^python]

## A library family

The C core and its language interfaces support creating graphs, manipulating them and running network analyses\. The Python interface also integrates plotting through Cairo, Matplotlib and Plotly\. These are library workflows embedded in scripts or notebooks, rather than evidence of a standalone graphical analysis desktop\. Component releases need to be tracked separately when a workflow combines packages\.[^home][^python]

## Vertex numbers are positional

Python igraph numbers vertices consecutively\. Deleting a vertex renumbers subsequent vertices and changes the endpoint numbers of affected edges\. A stored integer vertex position is therefore not a reliable long\-lived identifier after structural edits\. Workflows joining results back to external data need an explicit naming or identifier attribute instead of assuming that the original numeric positions survive\.[^tutorial]

## NetworkX conversion metadata

The Python conversion helper assigns new igraph IDs while preserving NetworkX node identities in a dedicated attribute, normally \_nx\_name\. Multiedge keys have their own metadata attribute\. Conversion back can infer an appropriate NetworkX graph class and use the stored names\. The documented round\-trip guarantee depends on these conventions; discarding or repurposing identity attributes can undermine that route\.[^api]

## Read and write support differ

The tutorial lists formats individually for reading and writing\. In the documented Python interface, Graphviz DOT is a writer route without a corresponding reader, while UCINET DL is a reader without a corresponding writer\. Formats also preserve different attributes: GraphML or GML can retain numeric and string properties, whereas a simple edge list is much narrower\. A format's appearance in a support table should not imply symmetrical exchange\.[^tutorial]

## Core and rendering dependencies

Recommended binary packages bundle the Python interface with its matching C core for Windows, Linux and macOS\. A source\-built interface is guaranteed only with its bundled core version or referenced core revision\. Plotting adds another dependency layer: the installation guide identifies Cairo\-related failures and a Matplotlib alternative\. Successful graph computation does not by itself verify that a selected plotting backend is installed\.[^install]

## Licensing and substitution

igraph code is released under GPL version 2 or later\. It can substitute for [NetworkX](/networkx) in supported programmatic network analyses, with an explicit conversion route in Python\. The assessment does not imply identical function signatures, default conventions or performance\. Before replacing a pipeline, compare the graph model, identity mapping, required attributes and exact analytical methods\.[^home][^api][^networkx]

## Capabilities and substitutions

### Programmatic graph algorithms — supported

The library family provides network manipulation and analysis through several language interfaces\.[^home][^python]

Use case: Programmatic graph construction, analysis and visualization · Platforms: Windows, macOS, Linux · Region: Version, build and integration requirements apply

### Stable positional IDs after deletion — unsupported

Deleting a vertex renumbers later vertices; applications should not treat positional IDs as persistent external identifiers\.[^tutorial]

Use case: Programmatic graph construction, analysis and visualization · Platforms: Windows, macOS, Linux · Region: Version, build and integration requirements apply

### NetworkX conversion — limited

The Python adapter preserves original names and multiedge keys through dedicated attributes; those attributes matter for round trips\.[^api]

Use case: Programmatic graph construction, analysis and visualization · Platforms: Windows, macOS, Linux · Region: Version, build and integration requirements apply

### [Substitute for NetworkX](/networkx) — limited

Can replace supported scripted network analyses and provides Python conversion helpers\. Algorithms, node identity and component versions need checking; it is not a drop\-in replacement for NetworkX APIs or every arbitrary Python attribute\.[^python][^api][^networkx]

Use case: Programmatic graph construction, analysis and visualization · Platforms: Windows, macOS, Linux · Region: Version, build and integration requirements apply

## References

[^home]: [igraph project and release history](<https://igraph.org/>) — Interface family, GPL2\-or\-later and separate C/Python/R release histories (vendor; retrieved 2026-10-07T16:36:46Z)

[^python]: [Python igraph overview](<https://python.igraph.org/en/stable/>) — Graph manipulation, conversions and plotting backends (vendor; retrieved 2026-10-07T16:37:12Z)

[^tutorial]: [Python igraph tutorial](<https://python.igraph.org/en/stable/tutorial.html>) — Vertex renumbering and asymmetric file reader/writer support (vendor; retrieved 2026-10-07T16:39:21Z)

[^api]: [Python igraph Graph API](<https://python.igraph.org/en/stable/api/igraph.Graph.html>) — from\_networkx/to\_networkx identity metadata (vendor; retrieved 2026-10-07T16:39:34Z)

[^install]: [Python igraph installation](<https://python.igraph.org/en/stable/install.html>) — Binary platforms, matching C core and plotting dependencies (vendor; retrieved 2026-10-07T16:39:21Z)

[^networkx]: [NetworkX introduction](<https://networkx.org/documentation/stable/reference/introduction.html>) — Python graph models and attributes (vendor; retrieved 2026-10-07T16:37:12Z)

Source revision: https://substitutefor.net/entities/Q1053?revision=1101
