Update Graph.hs

Some updates to make the code more understandable.