tskit icon indicating copy to clipboard operation
tskit copied to clipboard

Add distance_between function and tests

Open Billyzhang1229 opened this issue 2 years ago • 0 comments

Description

This function calculates the total distance between two nodes in the tree. This is expressed as the sum of the "branch lengths" from both nodes to their most recent common ancestor.

Fixes #2627

  • [X] Added tests that cover the distance_between function.

Billyzhang1229 avatar Jun 22 '23 16:06 Billyzhang1229