Implemented arrange of vertices.