Programmatic compute invariants updated to igraph