igraph Network-analysis libraries with a C core and interfaces including Python and R.
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.[1] [2]
Contents 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.[1] [2]
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.[3]
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.[4]
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.[5]
Licensing and substitution igraph code is released under GPL version 2 or later. It can substitute for 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.[1] [4] [6]
Also included: 3 capabilities and 0 substitute relationships. Check substitutes in section 1 and capabilities in section 3.