You can find continuous edge by computing curvature for each point and connecting them using vtkDijkstraGraphGeodesicPath, as suggested before: