add addition graph algo