updated comments in Graph class