alifestd_unfurl_traversal_postorder_contiguous_asexual

alifestd_unfurl_traversal_postorder_contiguous_asexual(phylogeny_df: DataFrame, mutate: bool = False, child_order: Literal['asc', 'desc'] | None = None) ndarray

List node indices in DFS postorder traversal order, with subtree contiguity.

The provided dataframe must be asexual with contiguous ids and topologically sorted rows.

Input dataframe is not mutated by this operation unless mutate set True. If mutate set True, operation does not occur in place; still use return value to get transformed phylogeny dataframe.

Parameters

phylogeny_dfpd.DataFrame

Asexual phylogeny in alife standard format with contiguous ids and topologically sorted rows.

mutatebool, default False

If True, allow modification of the input dataframe.

child_order{“asc”, “desc”, None}, default None

Order in which siblings are visited when descending the tree. "asc" visits smallest-id child first, "desc" visits largest-id child first, and None uses an arbitrary (implementation-defined) order.