25 std::stringstream res;
26 std::vector<DynTreeNode *> roots;
27 roots.reserve(nodes_.size());
28 for(
const auto &n : nodes_) {
29 roots.emplace_back(n.findRoot());
31 std::sort(roots.begin(), roots.end());
32 const auto it = std::unique(roots.begin(), roots.end());
33 roots.erase(it, roots.end());
34 res <<
"nb nodes " << nodes_.size() << std::endl;
35 res <<
"nb cc " << roots.size() << std::endl;