Added some fold functions to graph. Going to make point a tuple for convenience