TreeNode.
get_max_distance
()[source]¶Returns the max tip tip distance between any pair of tips
State: Experimental as of 0.4.0.
Returns: |
|
---|---|
Raises: | NoLengthError – A NoLengthError will be thrown if a node without length is
encountered |
See also
Examples
>>> from skbio import TreeNode
>>> tree = TreeNode.read(["((a:1,b:2)c:3,(d:4,e:5)f:6)root;"])
>>> dist, tips = tree.get_max_distance()
>>> dist
16.0
>>> [n.name for n in tips]
['b', 'e']