Skip to content

Commit

Permalink
Update python/tskit/trees.py
Browse files Browse the repository at this point in the history
Co-authored-by: Peter Ralph <[email protected]>
  • Loading branch information
hyanwong and petrelharp authored Sep 27, 2024
1 parent 31a07c1 commit 78a0375
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/tskit/trees.py
Original file line number Diff line number Diff line change
Expand Up @@ -2970,7 +2970,7 @@ def rf_distance(self, other):

def path_length(self, u, v):
"""
Returns a count of the number of edges between two nodes in this tree.
Returns the number of edges on the path in this tree between the two nodes.
If the two nodes have a most recent common ancestor, then this is defined as
``tree.depth(u) + tree.depth(v) - 2 * tree.depth(tree.mrca(u, v))``. If the nodes
do not have an MRCA (i.e., they are in disconnected subtrees) the path length
Expand Down

0 comments on commit 78a0375

Please sign in to comment.