bug fix in invariants.py and igraph test added eigs