revise graph