graph fixing