changed Graph::clean to a member function which takes no arguments