summaryrefslogtreecommitdiff
path: root/src/Skeleton_blocker/example/Skeleton_blocker_iteration.cpp
diff options
context:
space:
mode:
authorvrouvrea <vrouvrea@636b058d-ea47-450e-bf9e-a15bfbe3eedb>2016-01-07 10:00:58 +0000
committervrouvrea <vrouvrea@636b058d-ea47-450e-bf9e-a15bfbe3eedb>2016-01-07 10:00:58 +0000
commit73fe516c21272bdd0a18955acb497e79d5b494f8 (patch)
treedf8f8ee17205c9d5debeaab384b1ea060cd767b0 /src/Skeleton_blocker/example/Skeleton_blocker_iteration.cpp
parente6f639a50ecbad06d3c61a2cd4a7cb2822318914 (diff)
parent4f73cb4a01692dbbe9547177b5b59425eae0d157 (diff)
Backmerge of trunk
git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/gudhi/branches/contiguous_vertices@949 636b058d-ea47-450e-bf9e-a15bfbe3eedb Former-commit-id: b20b49bab38fdcbc6571c159200125148e9a1bd6
Diffstat (limited to 'src/Skeleton_blocker/example/Skeleton_blocker_iteration.cpp')
-rw-r--r--src/Skeleton_blocker/example/Skeleton_blocker_iteration.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/Skeleton_blocker/example/Skeleton_blocker_iteration.cpp b/src/Skeleton_blocker/example/Skeleton_blocker_iteration.cpp
index 69557694..41b5ee00 100644
--- a/src/Skeleton_blocker/example/Skeleton_blocker_iteration.cpp
+++ b/src/Skeleton_blocker/example/Skeleton_blocker_iteration.cpp
@@ -37,7 +37,7 @@ using namespace skbl;
typedef Skeleton_blocker_complex<Skeleton_blocker_simple_traits> Complex;
typedef Complex::Vertex_handle Vertex_handle;
-typedef Complex::Simplex_handle Simplex;
+typedef Complex::Simplex Simplex;
Complex build_complete_complex(int n) {
// build a full complex with n vertices and 2^n-1 simplices
@@ -46,8 +46,7 @@ Complex build_complete_complex(int n) {
complex.add_vertex();
for (int i = 0; i < n; i++)
for (int j = 0; j < i; j++)
- // note that add_edge, add the edge and all its cofaces
- complex.add_edge(Vertex_handle(i), Vertex_handle(j));
+ complex.add_edge_without_blockers(Vertex_handle(i), Vertex_handle(j));
return complex;
}
@@ -77,7 +76,7 @@ int main(int argc, char *argv[]) {
// we use a reference to a simplex instead of a copy
// value here because a simplex is a set of integers
// and copying it cost time
- for (const Simplex & s : complex.simplex_range()) {
+ for (const Simplex & s : complex.complex_simplex_range()) {
++num_simplices;
if (s.dimension() % 2 == 0)
euler += 1;