Avoid unnecessary upwards traversals in tsk_pair_coalescence_stat
#3047
Labels
enhancement
New feature or request
tsk_pair_coalescence_stat
#3047
tsk_pair_coalescence_stat
propagates changes in sample counts/pair counts upwards to the root from edge insertions/deletions. However, ifsample_sets
is such that removing/adding a given edge has no impact on pair counts, there's no need to do the traversal to the roots. This should speed things up substantially whensample_sets
is a small subset of the tree sequence.The text was updated successfully, but these errors were encountered: