diff options
author | glisse <glisse@636b058d-ea47-450e-bf9e-a15bfbe3eedb> | 2018-07-20 15:03:46 +0000 |
---|---|---|
committer | glisse <glisse@636b058d-ea47-450e-bf9e-a15bfbe3eedb> | 2018-07-20 15:03:46 +0000 |
commit | f5c97bc9fd1c247045d35ddf261f9afe4d024406 (patch) | |
tree | a4de1cf4a030ced6f4a95fc3847a3fe582168b1f /src/Simplex_tree/include/gudhi | |
parent | 5bd32fe1ffae29a7e30e634a2a1fe707805ab820 (diff) |
First try at interfacing the sparse rips in python. Needs at least documentation and tests.
git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/gudhi/branches/sparserips-python@3697 636b058d-ea47-450e-bf9e-a15bfbe3eedb
Former-commit-id: 75bef59e90355853ee24807ca7453c4bb0a38f43
Diffstat (limited to 'src/Simplex_tree/include/gudhi')
-rw-r--r-- | src/Simplex_tree/include/gudhi/Simplex_tree.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Simplex_tree/include/gudhi/Simplex_tree.h b/src/Simplex_tree/include/gudhi/Simplex_tree.h index ee96d5a2..2c4c53a3 100644 --- a/src/Simplex_tree/include/gudhi/Simplex_tree.h +++ b/src/Simplex_tree/include/gudhi/Simplex_tree.h @@ -1035,6 +1035,7 @@ class Simplex_tree { * The Simplex_tree must contain no simplex of dimension bigger than * 1 when calling the method. */ void expansion(int max_dim) { + if (max_dim <= 1) return; dimension_ = max_dim; for (Dictionary_it root_it = root_.members_.begin(); root_it != root_.members_.end(); ++root_it) { |