Add destructor to Graph