MotivationComparing trees is a basic task for many purposes, and especially in phylogeny where different tree reconstruction tools may lead to different trees, likely representing contradictory evolutionary information. While a large variety of pairwise measures of similarity or dissimilarity have been developed for comparing trees with no information on internal nodes, very few measures have been designed for node labeled trees, which is for instance the case of reconciled gene trees. Recently, we proposed a formulation of the Labeled Robinson Foulds (LRF) edit distance with edge extensions, edge contractions between identically labeled nodes, and node label flips. However, this distance (the size of a most parsimonious path of such events transforming one node-labeled tree into the other) proved difficult to compute, in particular because “good” edges, i.e. edges present in the two trees, may have to be contracted.ResultsHere, we report on a different formulation of the LRF edit distance — based on node insertion, deletion and label substitution — comparing two node-labeled trees, which we show can be computed in linear time. The new formulation also maintains other desirable properties: being a metric, reducing to Robinson Foulds for unlabeled trees and maintaining an intuitive interpretation. The new distance is computable for an arbitrary number of label types, thus making it useful for applications involving not only speciations and duplications, but also horizontal gene transfers and further events associated with the internal nodes of the tree. To illustrate the utility of the new distance, we use it to study the impact of taxon sampling on labeled gene tree inference, and conclude that denser taxon sampling yields better trees.Availabilityhttps://github.com/DessimozLab/pylabeledrfContactsambriand6@gmail.com, Christophe.Dessimoz@unil.ch, mabrouk@iro.umontreal.caNote to reviewersThe reference Briand et al. (2020) is in press and can be downloaded from here: http://www.iro.umontreal.ca/~mabrouk/Publications/APBC2020.pdf