whole graph iterates more than once on same vertices