Depending on the implementation, this may be faster than edges.get(index).
indicates which edge to get: edge i connects vertices i and i+1 (with respect to the ordering of vertices used in vertices)