X-Git-Url: https://fleuret.org/cgi-bin/gitweb/gitweb.cgi?p=mtp.git;a=blobdiff_plain;f=mtp_graph.cc;fp=mtp_graph.cc;h=2abe52b543fe9b6190c47d6da55f678af66bcd0d;hp=a7b942d2cf0870259cbbafbfd3341579280761f2;hb=656afdeaf084a2b7d173f3710678d0c9bb0cc90a;hpb=92097e3a0db0c86ebb26b3a38a0247c6803a12ae diff --git a/mtp_graph.cc b/mtp_graph.cc index a7b942d..2abe52b 100644 --- a/mtp_graph.cc +++ b/mtp_graph.cc @@ -459,7 +459,9 @@ void MTPGraph::compute_dp_ordering() { while(already_processed < front) { // Here, nodes before already_processed can be ignored, nodes // before front were set to 0 predecessors during the previous - // iteration. We will add the + // iteration. During this new iteration, we have to visit the + // successors of these ones only, since they are the only ones + // potentially having now predecessors anymore. new_front = front; while(already_processed < front) { v = *(already_processed++);