Implemented and finished class SimpleGraph