get_next_root
while ((root = get_next_root(root))) {
while (node < num_nodes && (root = get_next_root(root))) {