removed igraph dependency