Added more functions to Graph.py