summaryrefslogtreecommitdiff
path: root/src/Skeleton_blocker
diff options
context:
space:
mode:
Diffstat (limited to 'src/Skeleton_blocker')
-rw-r--r--src/Skeleton_blocker/example/Skeleton_blocker_iteration.cpp6
-rw-r--r--src/Skeleton_blocker/include/gudhi/Skeleton_blocker.h2
-rw-r--r--src/Skeleton_blocker/include/gudhi/Skeleton_blocker_simplifiable_complex.h2
3 files changed, 6 insertions, 4 deletions
diff --git a/src/Skeleton_blocker/example/Skeleton_blocker_iteration.cpp b/src/Skeleton_blocker/example/Skeleton_blocker_iteration.cpp
index 92fa17f3..126e32ec 100644
--- a/src/Skeleton_blocker/example/Skeleton_blocker_iteration.cpp
+++ b/src/Skeleton_blocker/example/Skeleton_blocker_iteration.cpp
@@ -64,8 +64,10 @@ int main (int argc, char *argv[]){
// or edges, complex.num_vertices() and complex.num_edges() are
// more appropriated!
unsigned num_vertices = 0;
- for(auto v : complex.vertex_range())
- ++num_vertices;
+ for(auto v : complex.vertex_range()) {
+ std::cout << "Vertex " << v <<std::endl;
+ ++num_vertices;
+ }
// such loop can also be done directly with distance as iterators are STL compliant
auto edges = complex.edge_range();
diff --git a/src/Skeleton_blocker/include/gudhi/Skeleton_blocker.h b/src/Skeleton_blocker/include/gudhi/Skeleton_blocker.h
index 049db6d5..289819b5 100644
--- a/src/Skeleton_blocker/include/gudhi/Skeleton_blocker.h
+++ b/src/Skeleton_blocker/include/gudhi/Skeleton_blocker.h
@@ -109,7 +109,7 @@ and point access in addition.
\subsection Visitor
The class Skeleton_blocker_complex has a visitor that is called when usual operations such as adding an edge or remove a vertex are called.
-You may want to use this visitor to compute statistics or to update another data-structure (for instance this visitor is heavily used in the \ref contr package.
+You may want to use this visitor to compute statistics or to update another data-structure (for instance this visitor is heavily used in the \ref contr package).
diff --git a/src/Skeleton_blocker/include/gudhi/Skeleton_blocker_simplifiable_complex.h b/src/Skeleton_blocker/include/gudhi/Skeleton_blocker_simplifiable_complex.h
index fa9741b7..57e1daf0 100644
--- a/src/Skeleton_blocker/include/gudhi/Skeleton_blocker_simplifiable_complex.h
+++ b/src/Skeleton_blocker/include/gudhi/Skeleton_blocker_simplifiable_complex.h
@@ -224,7 +224,7 @@ void Skeleton_blocker_complex<SkeletonBlockerDS>::add_simplex(const Simplex_hand
for (auto u_it = sigma.begin(); u_it != sigma.end(); ++u_it)
for (auto v_it = u_it; ++v_it != sigma.end(); /**/) {
- std::cout << "add edge" << *u_it << " " << *v_it << std::endl;
+ // std::cout << "add edge" << *u_it << " " << *v_it << std::endl;
add_edge(*u_it, *v_it);
}
remove_blocker_include_in_simplex(sigma);