Simplify graph iteration.