Class ToVerticesHandler