simplify graph arithmetic operations

to be revisited later...