alifestd_unfurl_traversal_postorder_contiguous_polars
- alifestd_unfurl_traversal_postorder_contiguous_polars(phylogeny_df: DataFrame, child_order: Literal['asc', 'desc'] | None = None) ndarray
List node indices in DFS postorder traversal order, with subtree contiguity.
Parameters
- phylogeny_dfpolars.DataFrame or polars.LazyFrame
The phylogeny as a dataframe in alife standard format.
Must represent an asexual phylogeny with contiguous ids and topologically sorted rows.
- 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, andNoneuses an arbitrary (implementation-defined) order.
Returns
- np.ndarray
Index array giving DFS postorder traversal order.
See Also
- alifestd_unfurl_traversal_postorder_asexual :
Pandas-based implementation.