Commit 9c9bc048 authored by Edwin Carlinet's avatar Edwin Carlinet
Browse files

Fix assertion in satmaxtree computation.

    *  apps/g2/satmaxtree.cpp: Fixed.
parent 79eaaf78
......@@ -63,7 +63,7 @@ namespace mln
unsigned n = 0;
mln_foreach(auto x, tree.nodes()) {
(void) x;
assert(vmap[x] > vmap[x.parent()]);
assert(vmap[x] > vmap[x.parent()] or x.get_parent_id() == tree.npos());
++n;
}
std::cerr << "Number of nodes after: " << n << std::endl;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment