vertex and graph class