Displayed all the vertices and the path.