vector<const_branchview> randomized_branches_after(const const_branchview& b) { vector<const_branchview> branches; append(b.branches_after(), branches); sort(branches.begin(), branches.end()); return randomize(branches); }
vector<const_branchview> sorted_branches_after(const_branchview b) { vector<const_branchview> branches; append(b.branches_after(),branches); std::sort(branches.begin(),branches.end(),branch_order); return branches; }