Basic transformation function for every vertex type