whole_subtree
if (rel_type != whole_subtree)
if ((rel_type == whole_subtree) || is_leaf_bridge)
rel_type = whole_subtree;
whole_subtree);