added add_vertices method to graphs