Finding the Distance from the Vertex