Added a vertices method to Graph.