}
}
}
- if (flag222 && flag3.size() > 2) {
- rout_new.push_back(flag3);
+ if (flag222 && rout_old[i].size() > 2) {
+ rout_new.push_back(rout_old[i]);
}
}
}
std::cout << rout_old.size() << " -> " << rout_new.size() << "\n";
rout_old = rout_new;
rout_new.resize(0);
-
}
}
}
}*/
+
+ std::cout << "\n test old \n";
+ for (int i = 0; i < rout_old.size(); i++) {
+ for (int j = 0; j < rout_old[i].size(); j++) {
+ std::cout << index[rout_old[i][j]] << " ";
+ }
+ std::cout << "\n";
+ }
+
+ std::cout << "\n test new \n";
+
rout_new.resize(0);
for (int i = rout_old.size() - 1; i > 0; i--) {
bool lflag1 = true;