Changes in Graph class

New changes