transform

Implementation of transform_edges and transform_vertices.