add grapg algs