diff --git a/src/curvature.cpp b/src/curvature.cpp index 9f3e640..1c10814 100644 --- a/src/curvature.cpp +++ b/src/curvature.cpp @@ -35,6 +35,8 @@ void Courbures::get_two_neighborhood(std::vector &out, flag_prop[vv] = true; } + if (out.size() >= 5) return; + // Parcours du 1-anneau de chaque sommet du 1-anneau size_t old_size = out.size(); for (size_t i = 0; i < old_size; i++) {