Made Changes to implimentation of Graphs