Implemented vertices property in Graph class.