{"schemaVersion":"1.0","record":{"label":"igraph","description":"Network-analysis libraries with a C core and interfaces including Python and R.","aliases":["python-igraph","R igraph"],"kind":"software","website":"https://igraph.org/","overview":"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.","license":"Open-source code under GPL version 2 or later.","lifecycle":"active","example":false,"features":[{"name":"Programmatic graph algorithms","status":"supported","detail":"The library family provides network manipulation and analysis through several language interfaces.","useCase":"Programmatic graph construction, analysis and visualization","platforms":["Windows","macOS","Linux"],"region":"Version, build and integration requirements apply","evidence":[{"url":"https://igraph.org/","locator":"Interface family, GPL2-or-later and separate C/Python/R release histories","retrievedAt":"2026-10-07T16:36:46Z","kind":"vendor"},{"url":"https://python.igraph.org/en/stable/","locator":"Graph manipulation, conversions and plotting backends","retrievedAt":"2026-10-07T16:37:12Z","kind":"vendor"}]},{"name":"Stable positional IDs after deletion","status":"unsupported","detail":"Deleting a vertex renumbers later vertices; applications should not treat positional IDs as persistent external identifiers.","useCase":"Programmatic graph construction, analysis and visualization","platforms":["Windows","macOS","Linux"],"region":"Version, build and integration requirements apply","evidence":[{"url":"https://python.igraph.org/en/stable/tutorial.html","locator":"Vertex renumbering and asymmetric file reader/writer support","retrievedAt":"2026-10-07T16:39:21Z","kind":"vendor"}]},{"name":"NetworkX conversion","status":"limited","detail":"The Python adapter preserves original names and multiedge keys through dedicated attributes; those attributes matter for round trips.","useCase":"Programmatic graph construction, analysis and visualization","platforms":["Windows","macOS","Linux"],"region":"Version, build and integration requirements apply","evidence":[{"url":"https://python.igraph.org/en/stable/api/igraph.Graph.html","locator":"from_networkx/to_networkx identity metadata","retrievedAt":"2026-10-07T16:39:34Z","kind":"vendor"}]}],"alternatives":[],"slug":"igraph","draftAlternatives":[{"targetSlug":"networkx","status":"limited","detail":"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.","useCase":"Programmatic graph construction, analysis and visualization","platforms":["Windows","macOS","Linux"],"region":"Version, build and integration requirements apply","evidence":[{"url":"https://python.igraph.org/en/stable/","locator":"Graph manipulation, conversions and plotting backends","retrievedAt":"2026-10-07T16:37:12Z","kind":"vendor"},{"url":"https://python.igraph.org/en/stable/api/igraph.Graph.html","locator":"from_networkx/to_networkx identity metadata","retrievedAt":"2026-10-07T16:39:34Z","kind":"vendor"},{"url":"https://networkx.org/documentation/stable/reference/introduction.html","locator":"Python graph models and attributes","retrievedAt":"2026-10-07T16:37:12Z","kind":"vendor"}]}],"evidence":[{"url":"https://igraph.org/","locator":"Interface family, GPL2-or-later and separate C/Python/R release histories","retrievedAt":"2026-10-07T16:36:46Z","kind":"vendor"},{"url":"https://python.igraph.org/en/stable/","locator":"Graph manipulation, conversions and plotting backends","retrievedAt":"2026-10-07T16:37:12Z","kind":"vendor"}],"document":{"version":1,"references":[{"url":"https://igraph.org/","locator":"Interface family, GPL2-or-later and separate C/Python/R release histories","retrievedAt":"2026-10-07T16:36:46Z","id":"home","title":"igraph project and release history","kind":"vendor"},{"url":"https://python.igraph.org/en/stable/","locator":"Graph manipulation, conversions and plotting backends","retrievedAt":"2026-10-07T16:37:12Z","id":"python","title":"Python igraph overview","kind":"vendor"},{"url":"https://python.igraph.org/en/stable/tutorial.html","locator":"Vertex renumbering and asymmetric file reader/writer support","retrievedAt":"2026-10-07T16:39:21Z","id":"tutorial","title":"Python igraph tutorial","kind":"vendor"},{"url":"https://python.igraph.org/en/stable/api/igraph.Graph.html","locator":"from_networkx/to_networkx identity metadata","retrievedAt":"2026-10-07T16:39:34Z","id":"api","title":"Python igraph Graph API","kind":"vendor"},{"url":"https://python.igraph.org/en/stable/install.html","locator":"Binary platforms, matching C core and plotting dependencies","retrievedAt":"2026-10-07T16:39:21Z","id":"install","title":"Python igraph installation","kind":"vendor"},{"url":"https://networkx.org/documentation/stable/reference/introduction.html","locator":"Python graph models and attributes","retrievedAt":"2026-10-07T16:37:12Z","id":"networkx","title":"NetworkX introduction","kind":"vendor"}],"overviewCitations":["home","python"],"licenseCitations":["home"],"sections":[{"id":"interfaces","heading":"A library family","paragraphs":[{"id":"interfaces-detail","content":[{"text":"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."}],"citations":["home","python"]}]},{"id":"identity","heading":"Vertex numbers are positional","paragraphs":[{"id":"identity-detail","content":[{"text":"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."}],"citations":["tutorial"]}]},{"id":"conversion","heading":"NetworkX conversion metadata","paragraphs":[{"id":"conversion-detail","content":[{"text":"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."}],"citations":["api"]}]},{"id":"formats","heading":"Read and write support differ","paragraphs":[{"id":"formats-detail","content":[{"text":"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."}],"citations":["tutorial"]}]},{"id":"deployment","heading":"Core and rendering dependencies","paragraphs":[{"id":"deployment-detail","content":[{"text":"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."}],"citations":["install"]}]},{"id":"alternative","heading":"Licensing and substitution","paragraphs":[{"id":"alternative-detail","content":[{"text":"igraph code is released under GPL version 2 or later. It can substitute for "},{"text":"NetworkX","targetSlug":"networkx"},{"text":" 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."}],"citations":["home","api","networkx"]}]}]},"id":"Q1053","revision":1101,"updatedAt":"2026-10-13T20:10:37Z","sourceUrl":"https://substitutefor.net/entities/Q1053?revision=1101"}}