add class name to vertex