Remove an unnecessary graph