Modify graph