Review: Comparison of Phylogenetic Trees¶
Citation
- Robinson, D. F., & Foulds, L. R. (1981). Comparison of phylogenetic trees. Mathematical Biosciences, 53(1–2), 131–147.
- DOI
Abstract¶
A metric on general phylogenetic trees is presented. This extends the work of most previous authors, who constructed metrics for binary trees. The metric presented in this paper makes possible the comparison of the many nonbinary phylogenetic trees appearing in the literature. This provides an objective procedure for comparing the different methods for constructing phylogenetic trees. The metric is based on elementary operations which transform one tree into another. Various results obtained in applying these operations are given. They enable the distance between any pair of trees to be calculated efficiently. This generalizes previous work by Bourque to the case where interior vertices can be labeled, and labels may contain more than one element or may be empty.
Robinson and Foulds measure how far apart two trees on the same species set are in topology alone. They work with general trees: interior vertices may carry labels, and a label may hold several species or none. Two elementary operations change a tree. The first, Bourque's contraction, shrinks an edge to a single point whose label is the union of the two labels. Its inverse splits a point in two. The distance \( d(T_1, T_2) \) is the least number of these operations that turns \( T_1 \) into \( T_2 \), and Section 3 shows it is a metric.
The distance as a count of unmatched edges¶
Removing an edge splits the species set into two parts, the partition the edge induces. Two edges of different trees are matched when they induce the same partition. Let \( E_1' \) be the edges of \( T_1 \) matched in \( T_2 \), and \( E_2' \) the edges of \( T_2 \) matched in \( T_1 \). A corollary in the paper gives a tree \( T_1 \wedge T_2 \) that each tree reaches by contracting its unmatched edges, \( |E_1 \setminus E_1'| \) and \( |E_2 \setminus E_2'| \) contractions, and \( d(T_1, T_2) \) is the sum of the two. The distance is therefore the number of edges of either tree whose partition the other tree does not have, which is why it can be computed efficiently.
For trees without labeled interior vertices this is the familiar form: with \( B(T) \) the set of splits of \( T \),
Two binary trees on \( n \) leaves each have \( n - 3 \) interior splits, and the
\( n \) leaf splits are common to both, so the distance is at most
\( 2(n - 3) \). The paper does not state this bound; it is derived in
docs/theory/algebra/robinson1981rf-shared-count.py.
Relevance to Hifuku¶
The RF distance is the topological term of Hifuku's tree metric (Section 3):
computed over the \( m \) taxa two trees share. RF counts split disagreements and ignores branch lengths; the first term compares how the two trees distribute length over their splits. The weight \( w \in [0, 1] \) moves the metric from branch length alone (\( w = 0 \)) to topology alone (\( w = 1 \)). On the GPU the RF term is computed from a count of shared splits.