Added comments in graph class.