# skbio.tree.TreeNode.tip_tip_distances¶

TreeNode.tip_tip_distances(endpoints=None)[source]

Returns distance matrix between pairs of tips, and a tip order.

By default, all pairwise distances are calculated in the tree. If endpoints are specified, then only the distances between those tips are computed.

Parameters: endpoints : list of TreeNode or str, or None A list of TreeNode objects or names of TreeNode objects DistanceMatrix The distance matrix ValueError If any of the specified endpoints are not tips NoLengthError If a node without length is encountered

Examples

>>> from six import StringIO
>>> from skbio import TreeNode