delet graph base class