Show Menu
Cheatography

Python-igraph Cheat Sheet Cheat Sheet (DRAFT) by

python-igraph library useful functions

This is a draft cheat sheet. It is a work in progress and is not finished yet.

The basics

Import library
import igraph as ig
Initialize (Di)graphs
Create a (Di)graph from another graph

Unweighted node and edge creati­on/­del­etion

Add nodes
Add (directed) edges
Delete nodes
Delete edges
If G is directed, then these take into account edge direction.