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
2 people authored and benjeffery committed Oct 1, 2024
1 parent 2b88d31 commit 63ad45d
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 @@ -2976,7 +2976,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 63ad45d

Please sign in to comment.