Simplify graph