Skip to main content
Fig. 1 | Algorithms for Molecular Biology

Fig. 1

From: The Bourque distances for mutation trees of cancers

Fig. 1

Illustration of the NNI operation on phylogenetic trees. A In a phylogenetic tree, an NNI operation on an internal edge (ab) first selects two edges (ax) and (by) that are, respectively, incident to a and b such that \((a, x)\ne (a, b)\ne (y, b)\); it then rewires them to the opposite end so that (ay) and (bx) are the two edges in the resulting tree (red). Since a and b are labeled differently, a unrooted tree can be transformed into one of four possible trees in one NNI. B In a rooted phylogenetic tree T, an NNI operation on an internal edge (ab) (where b is a child of a) transforms T by either (i) selecting two edges (ax) and (by) that leave from a and b, respectively, and replacing them with (ay) and (bx) (left), where \(x\ne b\), or (ii) selecting an edge (by) leaving from b and replacing the unique edge (za) that enters a, (ab) and (by) with (zb), (ba) and (ay) (right), respectively. A rooted tree can be transformed into four different trees in one NNI. C An illustration of the interchange of two labels of the ends of an internal edge in two NNIs in an 1-labeled phylogenetic tree

Back to article page