clean up Graph class: remove empty functions and calls to them