simplify graph arithmetic operations