Added tests and finished methods to Graph Class