alifestd_mark_right_child_polars

alifestd_mark_right_child_polars(phylogeny_df: DataFrame, *, mark_as: str = 'right_child_id') DataFrame

Add column right_child_id, containing for each node its largest-id child.

The output column name can be changed via the mark_as parameter.

Leaf nodes will be marked with their own id.