diff options
author | Vincent Rouvreau <10407034+VincentRouvreau@users.noreply.github.com> | 2022-08-09 14:43:56 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-09 14:43:56 +0200 |
commit | 48d759239026f08b326edf5ba8c46f9547dcdd02 (patch) | |
tree | 0a6ab8bd2f0d696b7661a73034ff8676aad8d76f /src/Cech_complex/include | |
parent | 01e24eef930bbfa131fa18709ae7f080991bb00f (diff) | |
parent | 90ca842fc3767a932d01e43f2fcbf00cbd74d642 (diff) |
Merge pull request #668 from Hind-M/cech_check_filt
[Cech] Check filtration validity
Diffstat (limited to 'src/Cech_complex/include')
-rw-r--r-- | src/Cech_complex/include/gudhi/Cech_complex_blocker.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Cech_complex/include/gudhi/Cech_complex_blocker.h b/src/Cech_complex/include/gudhi/Cech_complex_blocker.h index 7dcbe9b4..3ea82826 100644 --- a/src/Cech_complex/include/gudhi/Cech_complex_blocker.h +++ b/src/Cech_complex/include/gudhi/Cech_complex_blocker.h @@ -128,7 +128,8 @@ class Cech_blocker { #ifdef DEBUG_TRACES if (radius > cc_ptr_->max_radius()) std::clog << "radius > max_radius => expansion is blocked\n"; #endif // DEBUG_TRACES - sc_ptr_->assign_filtration(sh, radius); + // Check that the filtration to be assigned (radius) would be valid + if (radius > sc_ptr_->filtration(sh)) sc_ptr_->assign_filtration(sh, radius); return (radius > cc_ptr_->max_radius()); } |