get_vertex_index function
fix bug => flip OKAY