removed Graph class and methods