debug path_enclosed_tree and path_enclosed_tree_augmented