Fails on second iteration of large graphs