simplify graph arithmetic operations
Merge pull request #604 from ndawe/master

simplify graph arithmetic operations