Added a Graph class with functionality that can add vertices.