add GraphDiff to NP