summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorglisse <glisse@636b058d-ea47-450e-bf9e-a15bfbe3eedb>2015-09-16 14:41:32 +0000
committerglisse <glisse@636b058d-ea47-450e-bf9e-a15bfbe3eedb>2015-09-16 14:41:32 +0000
commit52ebc4ed1d6ffbfeddb9565aebdc099ec35f920d (patch)
tree5bcc55a86c1d884586d327939c028d3855f4f459
parent2cb6a5648f6c4a21f83a41faad6b598bd0a02832 (diff)
Fix 2 FIXMEs.
git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/gudhi/trunk@790 636b058d-ea47-450e-bf9e-a15bfbe3eedb Former-commit-id: a44798f1fcaa8d5992e5c7e56d3d13f11bfdb3e6
-rw-r--r--src/Simplex_tree/example/mini_simplex_tree.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/Simplex_tree/example/mini_simplex_tree.cpp b/src/Simplex_tree/example/mini_simplex_tree.cpp
index 9c07f15f..08d626d3 100644
--- a/src/Simplex_tree/example/mini_simplex_tree.cpp
+++ b/src/Simplex_tree/example/mini_simplex_tree.cpp
@@ -20,8 +20,6 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-// FIXME: remove the first include
-#include <gudhi/graph_simplicial_complex.h>
#include <gudhi/Simplex_tree.h>
#include <iostream>
#include <initializer_list>
@@ -51,15 +49,14 @@ int main() {
/* o---o---o */
/* 2 0 3 */
- // FIXME: Replace std::vector<short> with auto
- std::vector<short> triangle012 = {0, 1, 2};
- std::vector<short> edge03 = {0, 3};
+ auto triangle012 = {0, 1, 2};
+ auto edge03 = {0, 3};
st.insert_simplex_and_subfaces(triangle012);
st.insert_simplex_and_subfaces(edge03);
// FIXME: Remove this line
st.set_dimension(2);
- std::vector<short> edge02 = {0, 2};
+ auto edge02 = {0, 2};
ST::Simplex_handle e = st.find(edge02);
assert(st.filtration(e) == 0); // We are not using filtrations so everything has value 0
for(ST::Simplex_handle t : st.cofaces_simplex_range(e, 1)) // Only coface is 012