## Intrinsic Interleaving Distance for Merge Trees

Ellen Gasparovic, Elizabeth Munch, Steve Oudot, ∗ † ‡ Katharine Turner, Bei Wang, Yusu Wang § ¶ ‖

## Abstract

Merge trees are a type of graph-based topological summary that track the evolution of connected components in the sublevel sets of scalar functions. They enjoy widespread applications in data analysis and scientific visualization. In this paper, we consider the problem of comparing two merge trees via the notion of interleaving distance in the metric space setting. We investigate various theoretical properties of such a metric. In particular, we show that the interleaving distance is intrinsic on the space of labeled merge trees and provide an algorithm to construct metric 1-centers for collections of labeled merge trees. We further prove that the intrinsic property of the interleaving distance also holds for the space of unlabeled merge trees. Our results are a first step toward performing statistics on graph-based topological summaries.

## 1 Introduction

Many applications in science and engineering use scalar functions to describe and model their data. For example, atmospheric scientists compare simulated data from the Weather Research and Forecasting (WRF) Model with daily surface observations in weather forecasts, where both simulated and observed parameters (such as surface temperature, pressure, precipitation, and wind speed) can be modeled as scalar functions. We are interested in comparing scalar functions by comparing their topological summaries. There are several types of summaries constructed from topological methods, including vector-based summaries such as persistence diagrams [36] and barcodes [41], as well as graph-based summaries such as merge trees, contour trees [16], and Reeb graphs [59].

The merge tree (sometimes referred to as a barrier tree [39] or a join tree [16]) for a given topological space X equipped with a continuous scalar function is a combinatorial construction that tracks the evolution of sublevel sets. For a given function f : X → R , the merge tree encodes the connected components of the sublevel sets f -1 ( -∞ , a ] for a ∈ R . This construction is closely related to that of the Reeb graph [59], which analogously encodes connected components of the level sets f -1 ( a ). The contour tree [16] is a special type of Reeb graph for a simply connected domain. Both merge trees and Reeb graphs are related to the level set topology through critical points of the scalar functions [53]. Furthermore, the mapper graph [63], which has found considerable success in applications, can be viewed as an approximation of a Reeb graph [19, 56, 17]. These constructions are referred to as graph-based summaries as the output object of study is always a graph G equipped with an induced real-valued function f : G → R . They have appeared in many

∗ Union College, gasparoe@union.edu

† Michigan State University, muncheli@msu.edu

‡ Inria Saclay, steve.oudot@inria.fr

§ Australian National University, katharine.turner@anu.edu.au

¶ University of Utah, beiwang@sci.utah.edu

‖ Ohio State University, yusu@cse.ohio-state.edu

contexts and applications over the last few decades [69, 57, 70]. Similar concepts also appeared within probability theory as trees created through excursion sets of random functions, and these trees are shown to be related to random branching processes (e.g. [46, 38]).

Related work Considerable recent effort has gone into understanding how to perform proper statistics on graph-based summaries. For instance, how does one define the mean of a collection of these objects? The first step toward answering this question is to determine a metric for the comparison of two summaries. This has been extensively studied recently with the creation of a veritable zoo of metric options for Reeb graphs and merge trees [54, 28, 3, 5, 2, 31, 4, 66, 18, 6]; see two recent surveys [71, 10] and Section 2.3 for a discussion of some of these metrics. In particular, Carri´re and Oudot [18] have investigated whether some of these metrics are e intrinsic in the more general case of Reeb graphs; i.e., that the distance between two (close enough) graphs can be realized by a geodesic.

In this paper, we continue the investigation into the intrinsic-ness of these metrics with the more narrow view of merge trees. The main distance we study is the interleaving distance. This metric was originally given in the context of persistence modules [20, 21] as a generalization of the bottleneck distance, and has been ported to merge trees [54, 67] and Reeb graphs [28, 24] via a category-theoretic viewpoint [11, 29]. When restricting ourselves from Reeb graphs to merge trees, we can actually work in an even more restrictive setting that has desirable theoretical properties, namely, labeled merge trees. In this case, we study a data triple: a merge tree T with its function f : T → R , and a labeling π : { 1 , · · · , n } → V ( T ) of its vertices, which at a minimum encompasses the leaves of T . The interleaving distance for labeled merge trees has been investigated in [55], where it is shown that the metric can be naturally realized as the L ∞ -distance for a particular matrix construction. This matrix construction has already been discovered in the context of dendrograms [65] and phylogenetic trees [14], where the objects of interest are closely related to merge trees. The phylogenetic tree literature, in particular, provides a wealth of other options for metrics [60, 61, 27, 26, 32, 7, 9, 8, 37, 13, 23, 47]. There has also been interest in that community for creating summaries of collections of phylogenetic trees [52, 51, 40].

These ideas are also closely related to those of ultrametrics, a strengthening of the triangle inequality for a metric into a requirement that d x, y ( ) ≤ max { d x, z ( ) , d ( z, y ) } (for all z ). Independent of the phylogenetic tree work, there has been extensive interest in what is known as Gelfand's Problem from the ultrametric literature, that is, to describe all finite ultrametric spaces up to isometry using graph theory. The answer to this question is exactly a restriction of the labeled merge tree, although their literature never calls it such [42, 44, 50, 34, 33].

Furthermore, our work has close ties with the literature on consensus of classification [49]. In the language used therein, labeled merge trees belong to the class of valued classification trees, with the path-length distance being actually induced by the function values. Geodesic midpoints between two merge trees are called medians and defined as Fr´chet means in the considered metric e between trees. Finding medians is a special instance of the so-called consensus problem, and it is known to have an easily computable solution when the metric between merge trees is chosen to be the glyph[lscript] ∞ -distance between their corresponding ultra matrices [22], as is the case in our work. By contrast, the problem is known to be NP-hard when other glyph[lscript] p -distances are put on the ultra matrices, typically when p = 1 or 2 [1], and in such situations one must resort to approximate solutions-e.g., mean-squares approximations in the case p = 2 [30, 48].

Our contributions In this paper, we prove that the interleaving distance is intrinsic on both the space of labeled merge trees as well as on the space of unlabeled merge trees. Furthermore,

in the labeled merge tree setting, we provide explicit procedures for constructing geodesics and metric 1-centers. Our results mark important progress toward the goal of performing statistics on graph-based topological summaries to be used for topological data analysis and visualization. For instance, using results in this paper, Yan et al. [72] computed geodesics of merge trees and their structural averages for ensemble analysis and uncertainty visualization, and Curry et al. [25] utilized an estimation of the interleaving distance between unlabeled merge trees in order to classify and compare point cloud data.

In Section 2, we provide the necessary background on labeled merge trees and establish a correspondence between labeled merge trees and a particular class of matrices known as ultra matrices (Lemma 2.9). Then, in Section 3, we prove a stability result for the labeled interleaving distance d L I (Lemma 3.1), which we use both to show that d L I is strictly intrinsic on the space of labeled merge trees (Corollary 3.2) as well as to construct 1-centers for collections of labeled merge trees in Section 3.3.

Section 4 focuses on unlabeled merge trees and the interleaving distance. In particular, given two unlabeled merge trees, we show that the unlabeled interleaving distance between them is equal to the infimum over all finite labelings for the two trees of the labeled interleaving distance between them (Theorem 4.1). In fact, we show in Corollary 4.4 that the infimum is always achieved. Section 4 concludes with the result that the interleaving distance is intrinsic on the space of unlabeled merge trees (Corollary 4.5). We end with a discussion of open problems and future work in Section 5.

## 2 Background

In this section, we give the basic definitions for our constructions of interest. We refer to Fig. 1 for an overview of notations. For the entirety of the section, we fix n , and denote { 1 , · · · , n } by [ n ] and isomorphism by =. We note that some of the notions here appear in the literature under different ∼ names. For example, the concept of ultra matrix is the same as the one induced from the ultra network proposed in [64], both of which correspond to the distance matrix for a relaxed version of the ultrametric (see Definition 2.4). The concept of a merge tree is also the same as the tree gram in [64], both of which generalize the standard dendrogram. A dendrogram could be represented as an ultrametric, as shown by Jardine and Sibson [45], Hartigan [43], Carlsson and M´moli [15]. e

Figure 1: A roadmap of key notations.

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.00063v2-figure-06487bb1-e0f5-4d0e-902b-c0289c76fb6e.jpg)

## 2.1 Labeled Merge Trees

First, we give the definition of a merge tree (which we shall also refer to as an unlabeled merge tree to contrast it with its labeled counterpart, defined subsequently) and related notions arising from the phylogenetic tree literature that we will make use of shortly.

Definition 2.1. A merge tree is a pair ( T, f ) of a finite rooted tree T with vertex set V ( T ) and a function f : V ( T ) → R ∪ ∞ such that adjacent vertices do not have equal function value, every non-root vertex has exactly one neighbor with higher function value, and the root (a degree one node) is the only point with the value ∞ . The space of merge trees is denoted MT .

Note that the topology on the space of merge trees is the one induced by viewing MT as a metric space with a given choice of metric (in this paper, we shall assume it is the interleaving distance, as defined later in this section). We commonly call the function f a height function , the non-root vertices with degree 1 are called leaves , and we let depth u ( ) denote the largest height difference between the vertex u in T and any node in the subtree rooted at u . All merge trees under consideration in this paper are assumed to be finite .

Note that in some cases - for instance, when a merge tree is constructed from sublevel sets of input data given by a topological space with a function g : X → R - we prefer to think of a merge tree as a continuous object. Specifically, a merge tree is constructed as a quotient space X / ∼ , with the equivalence relation x ∼ x ′ iff g x ( ) = g x ( ′ ) = a and x and x ′ are in the same connected component of g -1 ( ∞ , a ]. In this case, with nice enough assumptions on the input data, a merge tree is a 1-dimensional stratified space equipped with a function, that is, its edges are homeomorphic to intervals rather than being combinatorial elements. In this setting, replacing a merge tree edge e = ( u, v ) with f ( u ) &lt; f v ( ) by a subdivision of that edge where the interior vertex w satisfies f ( u ) &lt; f w ( ) &lt; f v ( ) does not change the inherent structure of the tree (sometimes such a tree is referred to as an augmented merge tree ). We consider two merge trees to be the same if one can be obtained from the other by a sequence of such subdivisions or the inverse operation.

Furthermore, the merge tree structure induces a poset relation on the vertices of T . We say v is an ancestor of w and write v glyph[follows] w if the unique path from v to w strictly decreases in f . This occurs if and only if w is in the subtree of v . We use LCA( v, w ) ∈ T to mean the lowest common ancestor of v and w (or LCA ( f v, w ) if the function needs to be emphasized), and f (LCA( v, w )) for its function value. We have LCA( v, v ) = v. We abuse notation and write LCA( S ) for the lowest common ancestor of any finite set S ⊂ V ( T ).

Note that the merge tree as defined is closely related to the construction of a rooted, weighted tree. In fact, a merge tree induces a rooted weighted tree by putting the weight f ( u ) -f ( v ) on each directed edge of the tree T . However, because of the function setting, the merge tree requirements are stricter since, for instance, a merge tree ( T, f ) and its shift (i.e., translation) ( T, f +100) are considered different as merge trees but induce the same weighting.

The merge tree structure provides a method for inducing a metric on the underlying tree vertices via the metric given by the length of the unique path between two points. Note that there is a canonical weighting associated to any merge tree ( T, f ), namely, ω u, v ( ) = | f ( u ) -f ( v ) | for any two adjacent vertices u and v in the tree. Furthermore, as paths are unique in a tree, we can define a metric for any pair of vertices by δ T ( u, v ) = ∑ ω e ( ) for the edges in the path from u to v .

We remind the reader that we use the terms merge tree and unlabeled merge tree interchangeably. In Section 3, we will be focusing on labeled merge trees , defined as follows.

Definition 2.2. A labeled merge tree is a triple ( T, f, π ) consisting of a merge tree ( T, f ) along with a map π : [ n ] → V ( T ) that is surjective on the set of leaves. When additional data are unnecessary or clear from context, we sometimes write T for ( T, f, π ) . The space of labeled merge trees is denoted LMT .

Note that the topology on LMT comes from viewing it as a metric space with the labeled interleaving distance, as defined later in this section. Analogous to the unlabeled case, we consider

Figure 2: An example of a labeled merge tree with two types of degenerate labels. As all matrices used are symmetric, we only show the upper triangular portion.

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.00063v2-figure-aea08bf9-f5cb-454e-8804-d20cd4e357bc.jpg)

two labeled merge trees to be the same if one can be obtained via edge contractions or insertions that respect the function values and existing labels.

Definition 2.2 is closely related to that of a weighted, rooted X -tree from the phylogenetic literature [62]. Specifically, given a set X , an X -tree is a pair ( T, φ ) where T is a tree and φ : X → V ( T ) is a map so that every vertex of degree at most 2 is in the image. The difference is that such weighted graphs do not keep track of function values, so that two different labeled merge trees that induce the same weighting might be considered to be the same X -tree. Thus, a labeled merge tree can be thought of as a weighted, labeled X -tree (where X = [ n ]) with f ( u ) specified for a subset of vertices u that includes all leaves, and function values for the remaining vertices can be deduced from the weights on leaves.

As with X -trees, labels for our merge tree are allowed to go to vertices that are not leaves; we essentially think of these as degenerate labeled leaves. Furthermore, we do allow π to be noninjectivite, so a vertex can have multiple labels. See Fig. 2 for an example with labels on degenerate leaves and vertices with more than one label.

## 2.2 Relating Merge Trees and Matrices

In this section, we give the relationship between labeled merge trees and a particular class of matrices. Again, see Fig. 1 for an overview of notation.

We begin with the traditional notion of an ultrametric and our variant of it that relaxes one of the conditions, which will be closely related to our labeled merge trees.

Definition 2.3. An ultrametric is a function d : X × X → R such that for any x, y, z ∈ X ,

- · d x, y ( ) ≥ 0 and is equal to 0 if and only if x = y ,
- · d x, y ( ) = d y, x ( ) , and
- · d x, y ( ) ≤ max { d x, z ( ) , d ( z, y ) } .

Definition 2.4. A relaxed ultrametric is a function d : X × X → R such that for any x, y, z ∈ X ,

- · d x, y ( ) = d y, x ( ) , and
- · d x, y ( ) ≤ max { d x, z ( ) , d ( z, y ) } .

glyph[negationslash]

It is well known that ultrametrics satisfy the isosceles triangle property. That is, for any triple x, y, z , at least two of d x, y ( ), d y, z ( ), and d x, z ( ) must be equal. Otherwise, assume without loss of generality that d x, y ( ) &lt; d y, z ( ) &lt; d x, z ( ), and then d x, z ( ) ≤ max { d x, y ( ) , d ( y, z ) } . Note that

this further implies that the pair that are equal must be at least as big as the third value, since d x, y ( ) = d y, z ( ) &lt; d x, z ( ) still violates the ultrametric property. Note that relaxed ultrametrics still satisfy the isosceles triangle property.

When we have a set X ∼ = [ n ], the information in a relaxed ultrametric can be stored as follows.

Definition 2.5. A symmetric matrix M ∈ R n × n is called valid if M ii ≤ M ij for all 1 ≤ i, j ≤ n . A valid matrix M is called ultra if M ij ≤ max { M ,M ik kj } for every 1 ≤ k ≤ n . The spaces of valid and ultra matrices are denoted VM and UM , respectively.

In particular, a relaxed ultrametric on [ n ] is represented by an ultra matrix. As with merge trees, we will endow VM and UM with the topology induced by the relevant metric, in this case, the glyph[lscript] ∞ distance between matrices, ‖ M -M ′ ‖ ∞ = max i,j | m i,j -m ′ i,j | .

Inspired by the cophenetic matrix construction of Cardona et al. [14] that is studied in relation to merge trees in [55], there is a natural way to associate a matrix to a labeled merge tree as follows.

Definition 2.6. The induced matrix of a labeled merge tree ( T, f, π ) , denoted M ( T, f, π ) ∈ R n × n , is the matrix

$$\mathcal { M } ( T, f, \pi ) _ { i j } = f ( \text{LCA} ( \pi ( i ), \pi ( j ) ) ).$$

See Fig. 2 for an example.

Lemma 2.7. The induced matrix of a labeled merge tree is an ultra matrix. That is, M ( T, f, π ) ∈ UM for ( T, f, π ) ∈ LMT .

Proof. Let M = M ( T, f, π ) for ( T, f, π ) ∈ LMT . First, to check that it is a valid matrix, we see that M ii is simply the function value f ( π i ( )). So, as f ( u ) ≤ f ( LCA u,v ( )) by definition, we have

$$M _ { i i } = f ( \pi ( i ) ) \leq f ( \text{LCA} ( \pi ( i ), \pi ( j ) ) ) = M _ { i j }.$$

To check that M is an ultra matrix, let u = LCA( π i , π ( ) ( k )), v = LCA( π j , π ( ) ( k )), w = LCA( π i , π ( ) ( j ) , π ( k )). This means that u glyph[precedesequal] w and v glyph[precedesequal] w . If u and v are not comparable, then there are two distinct paths from π j ( ) to each of them, and thus we have a loop π j ( ) → u → w → v → π j ( ), contradicting the tree property of T . If u and v are comparable, assume without loss of generality that u glyph[precedesequal] v ; then v is a common ancestor for π i ( ), π j ( ), and π k ( ), and thus w glyph[precedesequal] v . This implies f ( w ) ≤ f ( v ), and so for all k ,

$$M _ { i j } \leq f ( w ) \leq f ( v ) = \max \{ f ( u ), f ( v ) \} = \max \{ M _ { i k }, M _ { j k } \}.$$

A valid matrix may be viewed as representing a function f M on a complete graph K of n vertices, with function value M ii defined on vertex i and function value M ij defined on edge ( i, j ). Note that because M is a valid matrix, any sublevel set of the resulting function f : K → R satisfies the condition that every edge has equal or higher function value than either of its vertices. Given a valid matrix, one thus may obtain a labeled merge tree and subsequently an ultra matrix in the following way.

Definition 2.8. Let M ∈ R n × n be a valid matrix, K be a complete graph over n vertices, and f M : K → R be a function induced from M with f M ( v i ) = M ii and f M (( v , v i j )) = M ij . The labeled merge tree of a valid matrix M , denoted as T ( M ) , is the labeled merge tree of the complete graph K with the induced function f M .

Basically, given a valid matrix M , we can consider M to induce weights of a complete graph K on n vertices. We then compute a minimal spanning tree T ( M ) of this complete graph based on the weights. The resulting tree T ( M ) is the labeled merge tree of M . It gives rise to an induced

relaxed ultra matrix MT ( M ) (recall Definition 2.4). This procedure corresponds to the maximal subdominant construction in [22].

glyph[negationslash]

Note that the labeling is inherited by including internally labeled vertices if there is any pair i = j for which M ii = M ij . See Fig. 2 for a labeled tree containing an example where M ii = M ij = M jj creates a leaf with two labels, as well as an example where M ii = M ij &gt; M jj creates an internal labeled vertex.

## Lemma 2.9. M induces a bijection between labeled merge trees and ultra matrices.

glyph[negationslash]

Proof. We start with injectivity of M . From [62, Def. 7.1.2], a metric δ is called a tree metric if there exists a weighted [ n ]-tree (i.e., a weighted X -tree with X = [ n ]) ( T, f, π, ω ) for which δ i, j ( ) = ∑ e ∈ γ ω e ( ) for γ the unique path from π i ( ) to π j ( ) if π i ( ) = π j ( ), and is 0 otherwise. By [62, Thm. 7.1.8], such a weighted [ n ]-tree representation is unique. For any ( T, f, π ) ∈ LMT , we can construct a tree metric δ T : [ n ] × [ n ] → R ≥ 0 uniquely from M ( T, f, π ) by setting

$$\delta _ { T } ( i, j ) = 2 \mathcal { M } ( T ) _ { i j } - \mathcal { M } ( T ) _ { i i } - \mathcal { M } ( T ) _ { j j }.$$

glyph[negationslash]

To see this is a tree metric, observe that we first assign a length to each edge as the height difference of its two end points. For i = , we are not traveling along any edges, and this formula j gives δ T ( i, i ) = 0, as desired. For i = j , we want the length of the path from π i ( ) to π j ( ). This path starts at π i ( ) with height M ( T ) ii , moves upward to the least common ancestor of π i ( ) and π j ( ) at height M ( T ) ij , and moves downward to π j ( ) at height M ( T ) jj . The formula combines these two upward and downward paths together.

So, given any ( T, f, π ) , ( T , f , π ′ ′ ′ ) ∈ LMT , we construct the two tree metrics δ T and δ ′ T . However, these two tree metrics are equivalent as δ ′ T ( x, y ) ≤ δ T ( x, y ) ≤ 2 δ ′ T ( x, y ). This implies that any continuity condition is the same under either choice of metric.

For ease of notation, denote M ( T, f, π ) by M ( T ); similarly for M ( T ′ ). If M ( T ) = M ( T ′ ), then ( T, f, π, ω ) = ( T , f , π , ω ′ ′ ′ ′ ) as weighted [ n ]-trees by keeping the weighting but ignoring the function values and which vertex is the root. Since the function value of any labeled vertex can be determined by M ( T ) ii , this implies that T = T ′ as labeled merge trees.

glyph[negationslash]

Next, we tackle surjectivity of M . Given any ultra matrix M , we want a labeled merge tree T for which M ( T ) = M . In particular, we will show that T = T ( M ) satisfies this requirement, which further gives that T is the inverse of M . To construct T ( M ), let K be the complete graph on n vertices with vertices labeled v , 1 · · · , v n . Define the map s : K → R on the complete graph K by s v ( i ) = M ii (vertex map) and s v , v ( i j ) = M ij (edge map). Because M is a valid matrix, this gives a well-defined map; in particular, s v ( i ) ≤ s v , v ( i j ) for any i = . j

First, we check that the diagonal entries of the matrices MT ( ( M )) and M agree. By definition of the construction of T ( M ), there is a vertex π i ( ) in the resulting tree with function value f ( π i ( )) = s v ( i ) = M ii , so clearly MT ( ( M )) ii = f (LCA( π i , π ( ) ( ))) = i f ( π i ( )) = M ii .

glyph[negationslash]

Finally, we check the off-diagonal entries, so assume i = j and consider M ij . Note that MT ( ( M )) i,j = f (LCA( π i , π ( ) ( j ))) is exactly the function value for which the components containing v i and v j merge in the sublevel set of s : K → R (see [35] for a discussion on sublevel set persistence). Because s v , v ( i j ) = M ij , this means that MT ( ( M )) i,j ≤ M ij . Seeking a contradiction, assume that MT ( ( M )) i,j &lt; M ij . In order for the components with v i and v j to have merged before M ij , there must be a path γ = v u u i 1 2 · · · u v k j for which every internal edge e has s e ( ) &lt; M ij . By the isosceles property using the triangle v v u i j 1 , we know that s v , v ( i j ) = M ij and s v , u ( i 1 ) &lt; M ij , so s v , u ( j 1 ) = M ij . The same logic for triangle u u v 1 2 j implies that s v , u ( j 2 ) = M ij . Repeating this process for the entire path, we conclude finally that s v , u ( j k -1 ) = M ij . However,

then the triangle v u j k -1 u k has both s u ( k -1 , u k ) and s u , v ( k j ) strictly less than s u ( k -1 , v j ), contradicting the isosceles triangle property. Thus, we conclude that no such path exists, and therefore MT ( ( M )) ij = M ij .

In the course of the above proof, we have showed that MT is the identity when restricted to ultra matrices, but this is not the case when extending to only valid matrices. However, this construction does offer a method for turning a valid matrix into an ultra matrix.

Definition 2.10. The ultra matrix of a valid matrix M ∈ VM , denoted U ( M ) , is defined to be the induced matrix of T ( M ) . That is, U = MT .

## 2.3 Available Metrics

There are a number of metrics that may be defined on the space of (labeled) merge trees. Note that any metric defined on labeled merge trees can be extended to unlabeled merge trees by simply ignoring the labeling information, while likely turning the metric into a pseudometric. In this paper, we focus on interleaving distance d I and labeled interleaving distance d L I . Other popular distances include the functional distortion distance d FD [3] and the bottleneck distance d B .

Interleaving distance The interleaving distance is an idea arising from the generalization of the bottleneck distance for persistence diagrams to arbitrary persistence modules [20]. Generalizations abound [11, 56, 29], but the analog for merge trees was first given in [54]. We give a modified (nonstandard) formulation here, which was shown to be equivalent to the original [67] (see Theorem 7 of [67] for the statement and Appendix A of [67] for its proof).

Definition 2.11. Given two merge trees ( T, f ) , ( T , f ′ ′ ) , a δ -good map α : ( T, f ) → ( T , f ′ ′ ) is a continuous map on the metric trees such that the following properties hold:

- (i) For any x in the geometric realization | T | , f ′ ( α x ( )) -f ( x ) = δ ;
- (ii) For any w ∈ Im( α ) with x ′ := LCA( α -1 ( w )) , f ( x ′ ) -f ( u ) ≤ 2 δ for all u ∈ α -1 ( w ) ; and
- (iii) For any w / ∈ Im( α ) , depth w ( ) ≤ 2 δ .

The interleaving distance is then defined to be

$$d _ { I } ( ( T, f ), ( T ^ { \prime }, f ^ { \prime } ) ) = \inf \{ \delta \, | \, \exists \, \delta \text{-good } \alpha \, \colon ( T, f ) \to ( T ^ { \prime }, f ^ { \prime } ) \}.$$

One particularly useful property that we will use later is the following.

Lemma 2.12. Let α : ( T, f ) → ( T , f ′ ′ ) be a continuous map such that f ′ ( α x ( )) = f ( x ) + δ for any x ∈ | T | . Assume u glyph[precedesequal] v . Then

- · α u ( ) glyph[precedesequal] α v ( ) , and
- · if w is the unique ancestor of α u ( ) with f ′ ( w ) = f ( v ) + δ , then w = α v ( ) .

Proof. Note that u glyph[precedesequal] v implies that f ( u ) ≤ f ( v ) and further that the unique path γ from u to v in T is monotone increasing in f . Then the image of γ in T ′ , α γ ( ), satisfies f ′ ( α γ t ( ( ))) = f ( γ t ( )) + δ and thus is monotone increasing in f ′ . Thus, by definition, we have that α u ( ) glyph[precedesequal] α v ( ). Further, the uniqueness of paths implies that if w is the unique ancestor with f ′ ( w ) = f ( v ) + δ , then it must be the endpoint of γ , and so w = α v ( ).

Labeled interleaving distance The following metric is closely related to one originally defined in [14] for comparing phylogenetic trees.

Definition 2.13. Given two labeled merge trees sharing the same set of n labels, the labeled interleaving distance is

$$d _ { I } ^ { L } ( ( T, f, \pi ), ( T ^ { \prime }, f ^ { \prime }, \pi ^ { \prime } ) ) = \| \mathcal { M } ( T, f, \pi ) - \mathcal { M } ( T ^ { \prime }, f ^ { \prime }, \pi ^ { \prime } ) \| _ { \infty }.$$

The reason for calling such a distance an interleaving distance comes from [55] where it is shown that this metric arises as an interleaving distance on a particular category with a flow [29]. Note that because we need the labels in order to be able to have a well-defined matrix, this metric only works on labeled merge trees.

## 2.4 Intrinsic Metrics

Given a metric d on merge trees, we may define its intrinsic version as follows; see, e.g., [12].

Definition 2.14. Given two merge trees, let γ : [0 , 1] → MT be a continuous path in d such that γ (0) = T and γ (1) = T ′ . The length of γ induced by the distance d is defined as

$$L _ { d } ( \gamma ) = \sup _ { n, \sum } \, \sum _ { i = 0 } ^ { n - 1 } d ( \gamma ( t _ { i } ), \gamma ( t _ { i + 1 } ) ),$$

where n ranges over N and ∑ ranges over all partitions 0 = t 0 ≤ t 1 ≤ . . . ≤ t n = 1 of [0 , 1] . The intrinsic metric ˆ d induced by the distance d is

$$\hat { d } ( T, T ^ { \prime } ) = \inf _ { \gamma } L _ { d } ( \gamma ).$$

Thus, the induced intrinsic metric on a metric space is the infimum of the lengths of all paths from one point to another. It is known that d is always less than or equal to ˆ . d

A metric space is said to be a length space if the original metric d coincides with the intrinsic metric ˆ . d Recall that a metric space is said to be a geodesic space if any two points in the space can be connected by a curve of length equal to the distance between the two points. In this case, the metric is said to be strictly intrinsic . Note that a geodesic space is necessarily a length space.

## 3 Geodesics and 1-Centers for Labeled Merge Trees

In this section, we prove an inequality involving the labeled interleaving distance and provide methods for constructing geodesics and 1-centers for collections of labeled merge trees.

## 3.1 More on the Labeled Interleaving Distance

The following result is not new. It follows from Theorem 2 of [64], which is slightly more general than the lemma below in the sense that the matrices M and M ′ are allowed to be non-valid as well. It is also a slight generalization of Lemma 15 of [15] (which is the following result restricted to the metric setting). It can also be deduced from Proposition 1 and Corollary 1 of [22] because the set of relaxed ultra matrices (which are the matrices corresponding to merge trees) is stable under translations along the diagonal. See Section 3 of [22] for the special case of ultra matrices (equivalently, labeled dendrograms), which adapts straightforwardly to our slightly more general setting. Neverthelss, here we provide simple and direct proofs, both for completeness and clarity.

Lemma 3.1. For any pair of valid matrices M,M ′ ∈ VM ,

$$d _ { I } ^ { L } ( \mathcal { T } ( M ), \, \mathcal { T } ( M ^ { \prime } ) ) \leq \| M - M ^ { \prime } \| _ { \infty }.$$

Proof. Since, by definition, d L I ( T ( M , ) T ( M ′ )) = ‖U ( M ) -U ( M ′ ) ‖ ∞ , we will actually establish the inequality ‖U ( M ) -U ( M ′ ) ‖ ∞ ≤ ‖ M -M ′ ‖ ∞ .

Let δ = ‖ M -M ′ ‖ ∞ . Let T = M ( M ) and T ′ = M ( M ′ ) be the associated merge trees, and ˜ M = U ( M ) and ˜ M ′ = U ( M ′ ) the induced ultra matrices. Consider any pair of (possibly equal) labels i and j with 1 ≤ i ≤ j ≤ n . We consider the vertices v i and v j in the complete graph K with s, s ′ : K → R the maps on K induced by M and M ′ , respectively. As v i and v j are in the same component of the ( M ij )-sublevel set of s (i.e., sublevel set of s at value M ij , s -1 ( ∞ , M ij ]), there is a path γ in K with s e ( ) ≤ ˜ M ij for all edges e in the path. Because ‖ M -M ′ ‖ ∞ ≤ δ , we have that

$$s ^ { \prime } ( e ) \leq s ( e ) + \delta \leq \widetilde { M _ { i j } } + \delta$$

for every e ∈ γ . So, v i and v j are in the same component of the ( ˜ M ij + )-sublevel set of δ s ′ and thus ˜ M ′ ij ≤ ˜ M ij + . δ

Symmetrically, for any t &lt; M ˜ ij -δ , v i and v j do not lie in the same connected component of the t -sublevel set of s ′ . Otherwise, by the same argument as above, v i and v j would belong to the same connected component of the ( t + )-sublevel set of δ T with t + δ &lt; M ˜ ij , a contradiction. Hence, ˜ M ′ ij ≥ ˜ M ij -δ . It follows that | ˜ M ′ ij -˜ M ij | ≤ δ , and since this is true for all labels 1 ≤ i ≤ j ≤ n , the symmetric matrices ˜ ˜ M,M ′ satisfy ‖ ˜ M -˜ M ′ ‖ ∞ ≤ δ . Hence, d L I ( T, T ′ ) = ‖ ˜ M -˜ M ′ ‖ ∞ ≤ δ .

## 3.2 Geodesics in LMT

The next corollary looks at the straight line between the matrices associated to two labeled merge trees. Specifically, given any two labeled merge trees T, T ′ ∈ LMT , we know that their associated matrices M = M ( T , M ) ′ = M ( T ′ ) are ultra matrices. We can define the line between them by setting M λ := (1 -λ M ) + λM ′ for λ ∈ [0 , 1]. While not necessarily ultra matrices, it is easy to check that M λ ∈ VM for all λ ∈ [0 , 1]. We can then pull this back to a path of labeled merge trees by setting T λ = T ( M λ ).

Corollary 3.2 (LMT Geodesics) . Given any two labeled merge trees T, T ′ ∈ LMT , and their corresponding ultra matrices M = M ( T , M ) ′ = M ( T ′ ) , the family of merge trees { T λ := T ( M λ )} λ ∈ [0 1] , defines a geodesic between T and T ′ in the metric d L I . As a consequence, on the space of labeled merge trees, the metric d L I is strictly intrinsic.

Proof. Let δ denote the distance d L I ( T, T ′ ) = ‖ M -M ′ ‖ ∞ ′ . For any 0 ≤ λ ≤ λ ′ ≤ 1, the linearly interpolating matrices M ,M λ λ ′ satisfy ‖ M λ -M λ ′ ‖ ∞ ≤ ( λ -λ δ ) . Hence, by Lemma 3.1, we have d L I ( T λ , T λ ′ ) ≤ ( λ ′ -λ δ ) . Since this is true for all 0 ≤ λ ≤ λ ′ ≤ 1, the triangle inequality implies that the family { T λ } λ ∈ [0 1] , defines a geodesic between T and T ′ .

See the example of Fig. 3. Setting λ = 1 2, / M λ is the matrix (labeled M ) shown in the middle green circle, and T λ (labeled T ( M )) is the tree shown at the far right. Corollary 3.2 discusses the geodesics in the space of labeled merge trees. A metric space in general may have no geodesics; thus Corollary 3.2 provides an additional property for the space of interest. Furthermore, a geodesic can be used to perform shape morphing between a pair of merge trees (see [72]).

Figure 3: An example of the averaging process for labeled merge trees. T 1 and T 2 are labeled merge trees with induced matrices M 1 and M 2 . M is the pointwise average of M 1 and M 2 , but is not an ultra matrix. The labeled merge tree T ( M ) is shown, whose induced matrix is the ultra matrix U ( M ).

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.00063v2-figure-2ae02395-323d-4bf2-88dc-73ca9f03ca91.jpg)

## 3.3 1-centers in LMT

Our 1-center merge tree originates from the notion of a metric k -center in graph theory. Given m number of cities, one aims to build k facilities that minimize the maximum distance between a city to a facility. For k = 1, a metric 1-center of a finite set of labeled merge trees is one that minimizes the maximum distance to any other tree in the set. A metric 1-center may or may not be unique.

Definition 3.3. Given a metric space ( X,d ) , a 1 -center c ∈ X of a finite point set P = { p , 1 · · · , p m } ⊂ X is

$$c \in \underset { x \in X } { \arg \min } \max _ { p \in P } d ( x, p ).$$

That is, c is a center of the minimum enclosing ball of P .

Here, we use the set notation ∈ to indicate that c may not be unique. In the case of a finite collection of numbers χ in R , the 1-center is simply the midpoint of the enclosing interval, (max( χ )+ min( χ )) / 2. Now suppose we are given a collection of matrices { M , 1 · · · , M N } . Let M mid denote the matrix consisting of the entry-wise 1-center of the matrices, i.e., M i j [ ][ ] is the midpoint of the enclosing interval of numbers { M i j ,M 1 [ ][ ] 2 [ i ][ j , ..., M ] N [ i ][ j ] } . It is easy to see that M mid is a 1-center for these matrices in the space of all matrices equipped with the glyph[lscript] ∞ norm. A similar statement holds for a collection of valid matrices, and we include its simple proof for completeness.

Claim 3.4. Let M , 1 · · · , M N be valid n × n matrices, and M mid be the matrix consisting of the entry-wise 1-center of these matrices. Then M mid must be valid as well and M mid is a 1-center of { M ,...,M 1 N } in the space of valid matrices equipped with the glyph[lscript] ∞ norm.

Proof. In what follows, all spaces of matrices are equipped with the glyph[lscript] ∞ norm. Since the space of valid matrices is a subspace of the space of all matrices, it follows that M mid is a 1-center of

{ M ,...,M 1 N } in the space of all matrices. Hence to prove the claim we only need to show that M mid is a valid matrix. In other words, M mid [ i ][ i ] ≤ M mid [ i ][ j ] for any i, j ∈ [ n ]. To see why this holds, note that for any i, j ∈ [ n ],

$$M _ { m i d } [ i ] [ i ] = \frac { \max _ { k } ( M _ { i i } ^ { k } ) + \min _ { k } ( M _ { i i } ^ { k } ) } { 2 } \leq \frac { \max _ { k } ( M _ { i j } ^ { k } ) + \min _ { k } ( M _ { i j } ^ { k } ) } { 2 } = M _ { m i d } [ i ] [ j ].$$

The claim thus follows.

M mid as a 1-center of valid matrices is, by itself, a valid matrix, but may not be an ultra matrix, so we can replace it by its labeled merge tree (following the procedure described by Definition 2.8) and take its corresponding ultra matrix, thus turning it back to an ultra matrix.

The main result of this section is an algorithm to compute the 1-center of a collection of labeled merge trees under the labeled interleaving distance d L I . In particular, suppose we are given a set of labeled merge trees { T , . . . , T 1 N } , whose corresponding induced matrices {M 1 , · · · , M } N are both valid and ultra. We compute a 1-center valid matrix M mid of {M 1 , · · · , M } N following Claim 3.4, and convert it to a labeled merge tree, denoted T ∗ . Then T ∗ is a 1-center of the labeled merge trees, see Fig. 3 for a simple example. The correctness of this procedure is established in the following Proposition 3.5.

Proposition 3.5 (LMT 1-Center) . Let { T , 1 · · · , T N } be a set of labeled merge trees, which gives rise to a set of valid and ultra matrices {M 1 , · · · , M } N . Let T ∗ be a merge tree constructed as above. Then T ∗ is a 1-center of { T , . . . , T 1 N } . Furthermore, let U ∗ = M ( T ∗ ) = MT ( M mid ) be the ultra matrix corresponding to T ∗ . Then U ∗ is a 1-center of the set of ultra matrices { M ,...,M 1 N } .

Proof. Recall that (the valid matrix) M mid is the 1-center of ultra matrices { M ,...,M 1 N } in the space of valid matrices following Claim 3.4. Set δ = max i ‖ M mid -M i ‖ ∞ . Then d L I ( T, T i ) ≤ ‖ M mid -M i ‖ ∞ by Lemma 3.1. It then follows that

$$\max _ { i } d _ { I } ^ { L } ( T ^ { * }, T ^ { i } ) \leq \max _ { i } \| M _ { m i d } - M ^ { i } \| _ { \infty } \leq \delta.$$

Thus { T i } N i =1 is contained in a ball of radius δ centered at T ∗ .

Wenow show that this is in fact a minimum enclosing ball of { T , . . . , T 1 N } in the space of labeled merge trees, which would then imply that T ∗ is a 1-center for these merge trees. Specifically, assume there exists a ˜ T such that max i d L I ( ˜ T, T i ) &lt; δ . Set ˜ U = M ( ˜ T ). Then for any i ,

$$\| \widetilde { U } - M ^ { i } \| _ { \infty } = d _ { I } ^ { L } ( \mathcal { T } ( \widetilde { U } ), \mathcal { T } ( M ^ { i } ) ) = d _ { I } ^ { L } ( \widetilde { T }, T ^ { i } ) < \delta.$$

Hence ˜ U , as a valid matrix, gives rise to a smaller max i ‖ ˜ U -M i ‖ , which contradicts the assumption that M mid is a 1-center within the space of valid matrices (i.e, M mid = arg min M max i ‖ M -M i ‖ ). Hence such a ˜ T cannot exist, and T ∗ is a 1-center for { T , 1 · · · , T N } . By the relation between distance for ultra matrices and for their corresponding labeled merge trees, U ∗ = M ( T ∗ ) is a 1-center for { M , 1 · · · , M N } , as well.

Remark. As a corollary of the above result, if we are given a collection of ultra matrices { M ,...,M 1 N } , then U ∗ = MT ( M mid ) is a 1-center for them in the space of ultra matrices, where M mid as defined earlier is the matrix consisting of the entry-wise 1-center of the input ultra matrices and M mid is itself not necessarily a ultra matrix. Computing 1-centers for ultrametrics has been explored in the literature. While in general, this problem is NP-hard, for the case when we consider the glyph[lscript] ∞ -norm on the space of ultrametrics (which is the same as our setting), it is known that there is a simple algorithm to compute it [22]. However, our approach above is completely different from the previous approach in [22], and has a different interpretation as well.

## 4 Interleaving Distances for Unlabeled Merge Trees

Moving to the unlabeled setting, we establish the existence of a certain labeling for a pair of merge trees that allows us to show that the interleaving distance for unlabeled merge trees is intrinsic.

Theorem 4.1. Given two merge trees ( T, f ) and ( T , f ′ ′ ) , let L and L ′ be the respective leaf sets. Then

$$d _ { I } ( ( T, f ), ( T ^ { \prime }, f ^ { \prime } ) ) = \inf _ { \pi, \pi ^ { \prime } } d _ { I } ^ { L } ( ( T, f, \pi ), ( T ^ { \prime }, f ^ { \prime }, \pi ^ { \prime } ) )$$

where the infimum is taken over all finite labelings of the two given merge trees, π and π ′ , using at most | L | + | L ′ | labels.

Prior to proving the theorem, we will investigate the following construction of a labeling when given a δ -good map. First, note that given two labeled merge trees ( T, f, π ) and ( T , f , π ′ ′ ′ ), where π : [ n ] → V ( T ) and π ′ : [ n ] → V ( T ′ ), the labeling information can be equivalently stored as an ordered collection of pairs Π = { ( π i , π ( ) ′ ( )) i | i ∈ [ n ] } ⊆ V ( T ) × V ( T ′ ). Since the order of the labels does not matter for this particular application, we will build Π iteratively and assign the integers at the end.

Let L and L ′ denote the leaf sets for T and T ′ , respectively. Assume we are given a δ -good map α as described in Definition 2.11. While this map is defined on the underlying metric trees, note that we can subdivide the trees so that α v ( ) is a vertex in T ′ for any vertex in T , and further that every point in the set α -1 ( w ) is a vertex in T if w is a vertex in T ′ .

Then, we construct the labeling Π as follows.

- (S-1) Fix some v ∈ L , and let w = α v ( ). Then for every u ∈ α -1 ( w ), add ( u, w ) to Π. Repeat this for every vertex in L .
- (S-2) For any leaf node w ∈ L ′ \ Im( α ), let x be its lowest ancestor contained in Im( α ). Let u ∈ α -1 ( x ) be an arbitrary preimage of x from | T | . Add ( u, w ) to Π. Repeat for all leaves in L ′ .

(S-3) Fix an ordering on the pairs in Π = { ( u , w i i ) | i ∈ [ n ] } and define π i ( ) = u i ∈ T and π ′ ( ) = i w i ∈ T ′ .

Observe that since the preimage of any leaf node w ∈ L ′ ∩ Im( α ) must be some vertex (or vertices) in L , any w ∈ L ′ ∩ Im( α ) will be paired with some u ∈ L by the process in (S-1), so this procedure does not miss any leaves in T ′ . See Fig. 4 for an example.

To use this construction to prove Theorem 4.1, we will use the following two lemmas.

Lemma 4.2. For any ( u, w ) ∈ Π , | f ( u ) -f ′ ( w ) | ≤ δ .

Figure 4: Given α : ( T, f ) → ( T , f ′ ′ ), this is an example of the labeling induced by the procedure discussed after Theorem 4.1. The image of the map α is given by the red dashed lines, and α is δ -good for δ = a i +1 -a i . Labels 1-4 were generated in (S-1), the rest in (S-2). Note that there were two options for the location of label 7 in T . The other choice would be the same as the vertex labeled 3, and would only change the red entries in M ( T, f, π ).

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.00063v2-figure-2f46653b-d3f8-47f8-b758-3c5c71e26991.jpg)

Proof. If ( u, w ) is generated from (S-1) above, then the lemma holds by property (i) in the definition of the δ -good map α (see Definition 2.11). If ( u, w ) is generated from (S-2), then the lemma follows from property (iii) of the δ -good map α . Indeed, let x be the lowest ancestor of w contained in Im( α ), so that α u ( ) = x . Then 0 ≤ f ′ ( x ) -f ′ ( w ) ≤ 2 δ and f ′ ( x ) -f ( u ) = δ , implying that | f ′ ( w ) -f ( u ) | ≤ δ .

$$\text{Lemma } 4. 3. \text{ For any } ( u _ { 1 }, w _ { 1 } ), ( u _ { 2 }, w _ { 2 } ) \in \Pi, \, | f ( \text{LCA} ( u _ { 1 }, u _ { 2 } ) ) - f ^ { \prime } ( \text{LCA} ( w _ { 1 }, w _ { 2 } ) ) | \leq \delta.$$

Proof. Assume we are given α , a δ -good map. If ( u , w i i ) is generated from (S-1), set w ′ i = w i . If ( u , w i i ) is generated via (S-2), then let w ′ i be the lowest ancestor of w i in Im( α ). In both cases, we have that α u ( i ) = w ′ i and w i glyph[precedesequal] w ′ i .

glyph[negationslash]

We will now prove the main claim, namely, that | f ( u 0 ) -f ′ ( w 0 ) | ≤ δ . To see that this is the case, assume that the claim does not hold; that is, either f ( u 0 ) -f ′ ( w 0 ) &gt; δ or f ′ ( w 0 ) -f ( u 0 ) &gt; δ . Suppose first that f ′ ( w 0 ) -f ( u 0 ) &gt; δ , and consider α u ( 0 ). Because u i glyph[precedesequal] u 0 for i = 1 2, by , Lemma 2.12 we must have that w ′ i = α u ( i ) glyph[precedesequal] α u ( 0 ) for i = 1 2. However, then , α u ( 0 ) is an ancestor of both w ′ 1 and w ′ 2 with

Set u 0 = LCA( u , u 1 2 ), w 0 = LCA( w , w 1 2 ) and w ′ 0 = LCA( w , w ′ 1 ′ 2 ). We will first show that w 0 = w ′ 0 . If both pairs come from (S-1), then w i = w ′ i and the claim is obvious. So, assume that at least one, say ( u , w 1 1 ), comes from (S-2) and thus w 1 = w ′ 1 . As w i glyph[precedesequal] w ′ i glyph[precedesequal] w ′ 0 for each i , the least common ancestor property implies w 0 glyph[precedesequal] w ′ 0 . Seeking a contradiction, assume that w 0 is not a common ancestor of both w ′ i ; without loss of generality, say w 0 is not an ancestor of w ′ 1 . Let z = LCA( w , w , w 0 ′ 1 ′ 2 ). Then there are two paths in T ′ from w 1 to z : one through w 0 and one through w ′ 1 . This contradicts the tree assumption of T ′ . Therefore, w 0 is a common ancestor of w ′ i , implying w ′ 0 glyph[precedesequal] w 0 , and so w 0 = w ′ 0 .

$$f ^ { \prime } ( \alpha ( u _ { 0 } ) ) = f ( u _ { 0 } ) + \delta < f ^ { \prime } ( w _ { 0 } ),$$

contradicting the least common ancestor assumption of w 0 .

Next, suppose f ( u 0 ) -f ′ ( w 0 ) &gt; δ and consider α -1 ( w 0 ). We claim that any point in α -1 ( w 0 ) is a descendant of u 0 ; i.e., v glyph[precedesequal] u 0 for all v ∈ α -1 ( w 0 ). Otherwise, we have that

$$f ( \text{LCA} ( \alpha ^ { - 1 } ( w _ { 0 } ) ) ) > f ( u _ { 0 } ) > f ^ { \prime } ( w _ { 0 } ) + \delta = f ( v ) + 2 \delta$$

for any v ∈ α -1 ( w 0 ), contradicting property (ii) of Definition 2.11. For i = 1 2, let , v i be the unique ancestor of u i with f ( v i ) = f ′ ( w 0 ) -δ . By Lemma 2.12, since α u ( i ) = w ′ i and w 0 is the

glyph[negationslash]

unique ancestor of w ′ i with f ′ ( w 0 ) = f ( v i ) + δ , this implies that α v ( i ) = w 0 . That is, v i ∈ α -1 ( w 0 ). Further, v 1 = v 2 . Otherwise if v := v 1 = v 2 , then

$$f ( v ) = f ^ { \prime } ( w _ { 0 } ) - \delta < f ( u _ { 0 } ) - 2 \delta < f ( u _ { 0 } )$$

and thus v is a lower common ancestor of u 1 and u 2 than u 0 , a contradiction. Hence, LCA( v , v 1 2 ) = u 0 . However,

$$f ( u _ { 0 } ) - f ( v _ { i } ) = f ( u _ { 0 } ) - f ^ { \prime } ( w _ { 0 } ) + \delta > 2 \delta.$$

This also contradicts property (ii) of Definition 2.11, finishing the proof of Lemma 4.3.

Proof of Theorem 4.1. Say we have a δ -good map α for some δ ≥ d I (( T, f ) , ( T , f ′ ′ )). We construct the labelings π, π ′ as described above. Then Lemma 4.2 and Lemma 4.3 imply that

$$d _ { I } ^ { L } ( ( T, f, \pi ), ( T ^ { \prime }, f ^ { \prime }, \pi ^ { \prime } ) ) \leq \delta.$$

As this is true for any δ , inf Π d L I (( T, f, π ) , ( T , f , π ′ ′ ′ )) ≤ d I (( T, f ) , ( T , f ′ ′ )).

To show the other inequality, assume we are given any pair of labelings π , π ′ and assume

$$d _ { I } ^ { L } ( ( T, f, \pi ), ( T ^ { \prime }, f ^ { \prime }, \pi ^ { \prime } ) ) = \delta.$$

We will construct the map α and show that it is δ -good. For any x ∈ | T | , let S x ⊆ [ n ] be the labels in the subtree of x . Let y i be the unique ancestor of π ′ ( ) i ∈ | T ′ | for i ∈ S x with f ′ ( y i ) = f ( x ) + δ . First, we note that y i = y j for all i, j ∈ S x . Indeed, let M = M ( T, f, π ) and M ′ = M ( T , f , π ′ ′ ′ ). Then we know M ′ ij ≤ δ + M ij and so

$$f ^ { \prime } ( y _ { i } ) = f ( x ) + \delta \geq f ( \text{LCA} ( \pi ( S _ { x } ) ) ) = M _ { i j } + \delta \geq M ^ { \prime } _ { i j } = f ^ { \prime } ( \text{LCA} ( \pi ^ { \prime } ( S _ { x } ) ) ).$$

Because every y i has function value greater than the lowest common ancestor of π ′ ( S x ), the tree property implies that all y i are equal. Thus, we can set α x ( ) = y i for any i ∈ S x and it is well-defined.

We need to ensure that the α constructed is δ -good as given in Definition 2.11. The map satisfies property (i) by construction, so we move on to (ii). Let w ∈ | T ′ | ∩ Im( α ) and set x ′ = LCA( α -1 ( w )) ∈ | T | . Fix any u ∈ α -1 ( w ), and clearly f ( u ) ≤ f ( x ′ ). Now x ′ must be LCA( u, u ′ ) for some other u ′ ∈ α -1 ( w ). Let i be a label in the subtree of u , and let j be a label in the subtree of u ′ . This further implies that x ′ = LCA( ( ) π i , π ( j )). Set w ′ = LCA( π ′ ( ) i , π ′ ( j )) and note that as π ′ ( ) i glyph[precedesequal] w and π ′ ( j ) glyph[precedesequal] w , this implies that w ′ glyph[precedesequal] w . In particular, this means f ′ ( w ′ ) ≤ f ′ ( w ). Further, by assumption | f ( x ′ ) -f ′ ( w ′ ) | = | M ij -M ′ ij | ≤ δ . Thus,

$$f ( x ^ { \prime } ) - f ( u ) \leq ( f ^ { \prime } ( w ) - f ( u ) ) + ( f ( x ^ { \prime } ) - f ^ { \prime } ( w ^ { \prime } ) ) + ( f ^ { \prime } ( w ^ { \prime } ) - f ^ { \prime } ( w ) ) \leq 2 \delta$$

as the first part of the middle term is exactly δ , the second is ≤ δ , and the last is negative, showing that α satisfies property (ii).

Finally, we ensure property (iii). Let w ∈ | T ′ | \ Im( α ). Let i be the label of any leaf in the subtree of w , and set y = α π i ( ( )) to be the image of the vertex labeled i in T . Then the tree property implies that π ′ ( ) i glyph[precedesequal] w glyph[precedesequal] y and thus f ′ ( π ′ ( )) i ≤ f ′ ( w ) ≤ f ′ ( y ). So,

$$| f ^ { \prime } ( w ) - f ^ { \prime } ( \pi ^ { \prime } ( i ) ) | \leq | f ^ { \prime } ( \pi ^ { \prime } ( i ) ) - f ^ { \prime } ( y ) | \leq | f ^ { \prime } ( \pi ^ { \prime } ( i ) ) - f ( \pi ( i ) ) | + \delta = | M _ { i i } - M _ { i i } ^ { \prime } | + \delta \leq 2 \delta.$$

As this is true for every leaf in the subtree of w , depth( w ) ≤ 2 δ and so α satisfies property (iii).

Thus, we have that d I (( T, f ) , ( T , f ′ ′ )) ≤ d L I (( T, f, π ) , ( T , f , π ′ ′ ′ )) for any given Π, completing the proof of the theorem.

We can use the construction from the proof to state something stronger. Recall that we work with finite labeled and unlabeled merge trees throughout the paper.

Corollary 4.4. There exist an n and a pair of labelings π, π ′ so that

$$d _ { I } ( ( T, f ), ( T ^ { \prime }, f ^ { \prime } ) ) = d _ { I } ^ { L } ( ( T, f, \pi ), ( T ^ { \prime }, f ^ { \prime }, \pi ^ { \prime } ) ),$$

where L (resp. L ′ ) is the set of leaves of T (resp. T ′ ). Thus, the interleaving distance for finite merge trees is always achieved by a map α .

Proof. The right side of Equation (1) in Theorem 4.1 is taken over labelings using at most N = | L | + | L ′ | labels, which is finite. (Here, L ′ is the set of leaves of T ′ .) Up to reordering, we can use the first | L | numbers to label the leaves in T and the last | L ′ | to label the leaves in T ′ . All that remains to show is that there are finitely many possible locations to place the remaining labels in each tree. Indeed, if d I ( T, T ′ ) = δ , then for each i ∈ { 1 , · · · , | L |} , one has the option of placing i at any point in ( f ′ ) -1 ( f ( π i ( )) + δ ) ⊂ T ′ . Note that | ( f ′ ) -1 ( f ( π i ( )) + δ ) | is finite. Similarly, there are | f -1 ( f ′ ( π ′ ( )) + i δ ) | possible locations available for i ∈ {| L | +1 , N } to be placed in T . For any fixed choice from this set for every i , let M and M ′ be the associated matrices for T and T ′ , respectively.

The options are set up so that any choice of location for label i in the opposite tree will automatically satisfy | M ii -M ′ ii | = , so we need only ensure that some choice in each tree of these δ locations for every i promises | M ij -M ′ ij | ≤ δ . For every choice of remaining labels, say there is some i, j for which | M ij -M ′ ij | &gt; δ . As we have finitely many options, there is an glyph[epsilon1] so that | M ij -M ′ ij | &gt; δ + . glyph[epsilon1] However, there is certainly a ( δ + glyph[epsilon1]/ 2)-good map α that does not take the labels into consideration, and we could then build the labeling as discussed in Theorem 4.1, giving a contradiction. Thus, one of finitely many options achieves the left infimum of (1), and thus there is a δ -good map α that also achieves the unlabeled distance.

We conclude this section by showing that the interleaving distance is intrinsic on the space of finite (unlabeled) merge trees. Recall from Definition 2.14, ˆ denotes the intrinsic metric induced d by a metric d .

Corollary 4.5. For the space of finite (unlabeled) merge trees, d I = ˆ d I .

′ ′ ′ ′

Note that γ can be projected to a path γ ′ from T to T ′ in the space of (unlabeled) merge trees MT by simply ignoring the labeling. As d I (( T, f ) , ( T , f ′ ′ )) ≤ d L I (( T, f, π 1 ) , ( T , f , π ′ ′ 2 )) for any labelings π 1 , π 2 between any two trees T and T ′ , we have

Proof. Let T and T be two merge trees, and set δ = d I (( T, f ) , ( T , f )). Let π, π be optimal labelings such that d I (( T, f ) , ( T , f ′ ′ )) = d L I (( T, f, π ) , ( T , f , π ′ ′ ′ )) = δ , as established by Corollary 4.4. Now consider the space of labeled merge trees LMT . By Corollary 3.2, there exists a geodesic γ : ( T, f, π ) glyph[squiggleright] ( T , f , π ′ ′ ′ ) in LMT such that the length L d L I ( γ ) = δ .

$$\hat { d } _ { I } ( T, T ^ { \prime } ) \leq L _ { d _ { I } } ( \gamma ^ { \prime } ) \leq L _ { d _ { I } ^ { L } } ( \gamma ) = \delta.$$

On the other hand, by definition of the intrinsic metric ˆ d I induced by d I ,

$$\hat { d } _ { I } ( T, T ^ { \prime } ) \geq d _ { I } ( T, T ^ { \prime } ) = \delta.$$

Combining equations (2) and (3), we conclude that ˆ ( d I T, T ′ ) = d I ( T, T ′ ) for any two merge trees T and T ′ .

## 5 Concluding Remarks and Discussion

In this paper, we investigated whether interleaving-type distances for (finite) labeled or unlabeled merge trees are intrinsic or not, and presented positive answers in both cases. In the case of labeled trees, the geodesic between two labeled merge trees can be characterized and computed easily, and we also showed how to compute the 1-center of a set of labeled merge trees. For unlabeled merge trees, however, computing the geodesic (even if just numerically estimating it) between two merge trees appears to be significantly harder, part of the reason being that it is NP-hard to approximate the interleaving distance between two merge trees, as pointed out in [67].

On the other hand, a simpler and easier to compute object is the bottleneck distance d B ( T , T 1 2 ) between two (unlabeled) merge trees. We conjecture that the intrinsic distance ˆ d B induced by d B is in fact equivalent to ˆ (= d I d I ).

Another natural question is whether (some of the) results for merge trees in this paper can be extended to contour trees. As a first question, can we characterize and compute the midpoint (i.e., the contour tree representing the 1-center) for two labeled contour trees under either ˆ , d I ˆ d B , or ˆ d FD (where we remind the reader that d FD denotes the functional distortion distance)? One idea is to compute the join and split trees of input contour trees, and compute the midpoint of the pair of join trees (resp., the pair of split trees). Note that each join or split tree can be viewed as a merge tree. Next we need to use the common ancestor information in both trees to construct a midpoint for the two contour trees. This step could be subtle: in particular, it is known [68] that in general, given a descending (join) tree T J and an ascending (split) tree T S with consistent functions associated to them, there may not exist a contour tree (or even a graph) whose join and split trees are equal to T J and T S , respectively. If such a contour tree exists, then it is unique, and the algorithm by Carr et al. [16] will compute this tree in near linear time.

Finally, understanding theoretical properties of distances between merge trees has many practical implications. For instance, in scientific visualization, such distances may be employed to study ensemble data sets that arise from scientific simulations (e.g., [72, 58]). Theorem 4.1 suggests the potential development of computing interleaving distances between unlabeled merge trees. Building on the work presented in this paper, Yan et al. [72] computed the structural average and geodesics of merge trees for uncertainty visualization. They explored various labeling strategies for computing interleaving distances between merge trees. Furthermore, Curry et al. [25] estimated the interleaving distance between unlabeled merge trees by searching for an optimal alignment between nodes in the trees with respect to a certain cost function; such estimation was used for classification and comparison of point cloud data. Moving beyond this paper, we envision a number of future applications in topological data analysis and visualization.

Acknowledgments Our initial research collaboration began during the Dagstuhl Seminar 17292: Topology, Computation and Data Analysis in July 2017 (organized by Bei Wang, Hamish Carr, and Michael Kerber). We thank all members of the breakout session on Reeb graphs for stimulating discussions. We are grateful to the Institute for Computational and Experimental Research in Mathematics (ICERM) for supporting us through the Collaborate@ICERM program in August 2018. EM was partially supported by National Science Foundation (NSF) through grants CMMI1800466, DMS-1800446, and CCF-1907591. KT was supported by an ARC Discovery Early Career fellowship. BW was partially supported by Department of Energy (DOE) DE-SC0021015, NSF IIS-1513616 and DBI-1661375, as well as National Institutes of Health (NIH) R01EB022876. YW was partially supported by NSF CCF-1740761 and DMS-1547357, as well as NIH R01EB022899.

## References

- [1] J.-P. Barth´lemy and B. Leclerc. The median procedure for partitions. e Partitioning Data Sets , 19:3-34, 1993.
- [2] U. Bauer, B. Di Fabio, and C. Landi. An edit distance for Reeb graphs. Proceedings of the Eurographics Workshop on 3D Object Retrieval , pages 27-34, 2016.
- [3] U. Bauer, X. Ge, and Y. Wang. Measuring distance between Reeb graphs. Proceedings of the 13th Annual Symposium on Computational Geometry , pages 464-473, 2014.
- [4] U. Bauer, C. Landi, and F. Memoli. The Reeb graph edit distance is universal. Foundations of Computational Mathematics , 21:1441-1464, 2021.
- [5] U. Bauer, E. Munch, and Y. Wang. Strong equivalence of the interleaving and functional distortion metrics for Reeb graphs. Proceedings of the 31st International Symposium on Computational Geometry , 34:461-475, 2015.
- [6] K. Beketayev, D. Yeliussizov, D. Morozov, G. H. Weber, and B. Hamann. Measuring the distance between merge trees. In Mathematics and Visualization , pages 151-165. Springer International Publishing, 2014.
- [7] L. J. Billera, S. P. Holmes, and K. Vogtmann. Geometry of the space of phylogenetic trees. Advances in Applied Mathematics , 27(4):733-767, 2001.
- [8] D. Bogdanowicz and K. Giaro. Matching split distance for unrooted binary phylogenetic trees. IEEE/ACM Transactions on Computational Biology and Bioinformatics , 9(1):150-160, 2012.
- [9] D. Bogdanowicz and K. Giaro. On a matching distance between rooted phylogenetic trees. International Journal of Applied Mathematics and Computer Science , 23(3):669-684, 2013.
- [10] B. Bollen, E. Chambers, J. A. Levine, and E. Munch. Reeb graph metrics from the ground up. arXiv preprint arXiv:2110.05631 , 2021.
- [11] P. Bubenik, V. de Silva, and J. Scott. Metrics for generalized persistence modules. Foundations of Computational Mathematics , 15(6):1501-1531, 2014.
- [12] D. Burago, Y. Burago, and S. Ivanov. A Course in Metric Geometry . American Mathematical Society, 2001.
- [13] G. Cardona, M. Llabr´ es, F. Rossell´, and G. Valiente. Nodal distances for rooted phylogenetic o trees. Journal of Mathematical Biology , 61(2):253-276, 2009.
- [14] G. Cardona, A. Mir, F. Rossell´, L. Rotger, and D. S´nchez. Cophenetic metrics for phylogeo a netic trees, after Sokal and Rohlf. BMC Bioinformatics , 14(1):3, 2013.
- [15] G. Carlsson and F. M´ emoli. Characterization, stability and convergence of hierarchical clustering methods. Journal of Machine Learning Research , 11(47):1425-1470, 2010.
- [16] H. Carr, J. Snoeyink, and U. Axen. Computing contour trees in all dimensions. Computational Geometry , 24(2):75-94, 2003.
- [17] M. Carri`re, B. Michel, and S. Oudot. Statistical analysis and parameter selection for mapper. e Journal of Machine Learning Research , 19:1-39, 2018.

| [18]   | M. Carri`re e and S. Oudot. Local equivalence and intrinsic metrics between Reeb graphs. Proceedings of the 33rd International Symposium on Computational Geometry , 77:25:1-25:15, 2017.                             |
|--------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [19]   | M. Carri`re e and S. Oudot. Structure and stability of the one-dimensional mapper. Foundations of Computational Mathematics , 18(6):1333-1396, 2018.                                                                  |
| [20]   | F. Chazal, D. Cohen-Steiner, M. Glisse, L. J. Guibas, and S. Y. Oudot. Proximity of persistence modules and their diagrams. Proceedings of the 25th Annual Symposium on Computational Geometry , pages 237-246, 2009. |
| [21]   | F. Chazal, V. de Silva, M. Glisse, and S. Oudot. The Structure and Stability of Persistence Modules . Springer International Publishing, 2016.                                                                        |
| [22]   | V. Chepoi and B. Fichet. l ∞ -approximation via subdominants. Journal of Mathematical Psychology , 44(4):600-616, 2000.                                                                                               |
| [23]   | K. Choi and S. M. Gomez. Comparison of phylogenetic trees through alignment of embedded evolutionary distances. BMC Bioinformatics , 10(1):423, 2009.                                                                 |
| [24]   | J. Curry. Sheaves, Cosheaves and Applications . PhD thesis, University of Pennsylvania, 2014.                                                                                                                         |
| [25]   | J. Curry, H. Hang, W. Mio, T. Needham, and O. B. Okutan. Decorated merge trees for persistent topology. arXiv preprint arXiv:2103.15804 , 2021.                                                                       |
| [26]   | B. DasGupta, X. He, T. Jiang, M. Li, and J. Tromp. On the linear-cost subtree-transfer distance between phylogenetic trees. Algorithmica , 25(2-3):176-195, 1999.                                                     |
| [27]   | B. DasGupta, X. He, T. Jiang, M. Li, J. Tromp, and L. Zhang. On distances between phylo- genetic trees. Proceedings of the 8th Annual ACM-SIAM Symposium on Discrete Algorithms , 97:427-436, 1997.                   |
| [28]   | V. de Silva, E. Munch, and A. Patel. Categorified Reeb graphs. Discrete & Computational Geometry , pages 1-53, 2016.                                                                                                  |
| [29]   | V. de Silva, E. Munch, and A. Stefanou. Theory of interleavings on categories with a flow. Theory and Applications of Categories , 33(21):583-607, 2018.                                                              |
| [30]   | G. De Soete. A least squares algorithm for fitting additive trees to proximity data. Psychome- trika , 48(4):621-626, 1983.                                                                                           |
| [31]   | B. Di Fabio and C. Landi. The edit distance for Reeb graphs of surfaces. Discrete & Compu- tational Geometry , 55(2):423-461, 2016.                                                                                   |
| [32]   | P. W. Diaconis and S. P. Holmes. Matchings and phylogenetic trees. Proceedings of the National Academy of Sciences , 95(25):14600-14602, 1998.                                                                        |
| [33]   | O. Dovgoshey and E. Petrov. From isomorphic rooted trees to isometric ultrametric spaces. p-Adic Numbers, Ultrametric Analysis and Applications , 10(4):287-298, 2018.                                                |
| [34]   | O. Dovgoshey, E. Petrov, and H.-M. Teichert. How rigid the finite ultrametric spaces can be? Journal of Fixed Point Theory and Applications , 19(2):1083-1102, 2016.                                                  |

| [35]   | H. Edelsbrunner and J. Harer. Persistent homology - a survey. Contemporary Mathematics 453:257-282, 2008.                                                                                                                          |
|--------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [36]   | H. Edelsbrunner, D. Letscher, and A. Zomorodian. Topological persistence and simplification. Discrete & Computational Geometry , 28:511-533, 2002.                                                                                 |
| [37]   | G. F. Estabrook, F. McMorris, and C. A. Meacham. Comparison of undirected phylogenetic trees based on subtrees of four evolutionary units. Systematic Biology , 34(2):193-200, 1985.                                               |
| [38]   | S. N. Evans. Probability and Real Trees . Springer, 2006.                                                                                                                                                                          |
| [39]   | C. Flamm, I. L. Hofacker, P. F. Stadler, and M. T. Wolfinger. Barrier trees of degenerate landscapes. Zeitschrift f¨r u Physikalische Chemie , 216(2), 2002.                                                                       |
| [40]   | A. Gavryushkin and A. J. Drummond. The space of ultrametric phylogenetic trees. Journal of Theoretical Biology , 403:197-208, 2016.                                                                                                |
| [41]   | R. Ghrist. Barcodes: the persistent topology of data. Bulletin of the American Mathematical Society , 45(1):61-75, 2008.                                                                                                           |
| [42]   | V. Gurvich and M. Vyalyi. Characterizing (quasi-)ultrametric finite spaces in terms of (di- rected) graphs. Discrete Applied Mathematics , 160(12):1742-1756, 2012.                                                                |
| [43]   | J. A. Hartigan. Statistical theory in clustering. Journal of Classification , 2:63-76, 1985.                                                                                                                                       |
| [44]   | B. Hughes. Trees and ultrametric spaces: A categorical equivalence. Advances in Mathematics 189(1):148-191, 2004.                                                                                                                  |
| [45]   | N. Jardine and R. Sibson. Mathematical Taxonomy . WileySeries in Probability and Mathe- matical Statistics. John Wiley & Sons Ltd., London, 1971.                                                                                  |
| [46]   | Jean-Francois Le Gall. Brownian excursions, trees and measure-valued branching processes. The Annals of Probability , 19(4):1399-1439, 1991.                                                                                       |
| [47]   | M. Lafond, N. El-Mabrouk, K. Huber, and V. Moulton. The complexity of comparing multiply- labelled trees by extending phylogenetic-tree metrics. Theoretical Computer Science , 760:15- 34, 2019.                                  |
| [48]   | F.-J. Lapointe and G. Cucumel. The average consensus procedure: combination of weighted trees containing identical or overlapping sets of taxa. Systematic Biology , 46(2):306-312, 1997.                                          |
| [49]   | B. Leclerc. Consensus of classifications: the case of trees. In A. Rizzi, M. Vichi, and H.-H. Bock, editors, Advances in Data Science and Classification , pages 81-90, Berlin, Heidelberg, 1998. Springer Berlin Heidelberg.      |
| [50]   | A. J. Lemin. The category of ultrametric spaces is isomorphic to the category of complete, atomic, tree-like, and real graduated lattices LAT ∗ . Algebra Universalis , 50(1):35-49, 2003.                                         |
| [51]   | A. Markin and O. Eulenstein. Cophenetic median trees under the manhattan distance. In Proceedings of the 8th ACM International Conference on Bioinformatics, Computational Bi- ology,and Health Informatics , pages 194-202, 2017. |
| [52]   | E. Miller, M. Owen, and J. S. Provan. Polyhedral computational geometry for averaging metric phylogenetic trees. Advances in Applied Mathematics , 68:51-91, 2015.                                                                 |

| [53]   | J. Milnor. Morse Theory . Princeton University Press, New Jersey, NY, USA, 1963.                                                                                                                                                                    |
|--------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [54]   | D. Morozov, K. Beketayev, and G. Weber. Interleaving distance between merge trees. Pro- ceedings of Topology-Based Methods in Visualization , 2013.                                                                                                 |
| [55]   | E. Munch and A. Stefanou. The glyph[lscript] ∞ -cophenetic metric for phylogenetic trees as an interleaving distance. In Research in Data Science , pages 109-127. Springer, 2019.                                                                  |
| [56]   | E. Munch and B. Wang. Convergence between categorical representations of Reeb space and Mapper. Proceedings of the 32nd International Symposium on Computational Geometry , 51:53:1-53:16, 2016.                                                    |
| [57]   | P. Oesterling, C. Heine, H. Jaenicke, G. Scheuermann, and G. Heyer. Visualization of high- dimensional point clouds using their density distribution's topology. IEEE Transactions on Visualization and Computer Graphics , 17(11):1547-1559, 2011. |
| [58]   | M. Pont, J. Vidal, J. Delon, and J. Tierny. Wasserstein distances, geodesics and barycenters of merge trees. IEEE Transactions on Visualization and Computer Graphics , 1(28):291-301, 2022.                                                        |
| [59]   | G. Reeb. Sur les points singuliers d'une forme de Pfaff compl`ment e int´grable e ou d'une fonction num´rique. e Comptes Rendus de L'Acad´mie e ses S´ances e , 222:847-849, 1946.                                                                  |
| [60]   | D. F. Robinson and L. R. Foulds. Comparison of weighted labelled trees. In Combinatorial mathematics VI , pages 119-126. Springer, 1979.                                                                                                            |
| [61]   | D. F. Robinson and L. R. Foulds. Comparison of phylogenetic trees. Mathematical Biosciences , 53(1):131-147, 1981.                                                                                                                                  |
| [62]   | C. Semple, M. Steel, and R. A. Caplan. Phylogenetics . Oxford University Press, 2003.                                                                                                                                                               |
| [63]   | G. Singh, F. M´moli, e and G. Carlsson. Topological methods for the analysis of high dimensional data sets and 3D object recognition. Eurographics Symposium on Point-Based Graphics , pages 91-100, 2007.                                          |
| [64]   | Z. Smith, S. Chowdhury, and F. M´moli. e Hierarchical representations of network data with optimal distortion bounds. Proceedings of 50th Asilomar Conference on Signals, Systems and Computers , pages 1834-1838, 2016.                            |
| [65]   | R. R. Sokal and F. J. Rohlf. The comparison of dendrograms by objective methods. Taxon , 11(2):33, 1962.                                                                                                                                            |
| [66]   | R. Sridharamurthy, T. B. Masood, A. Kamakshidasan, and V. Natarajan. Edit distance between merge trees. IEEE Transactions on Visualization and Computer Graphics , 26(3):1518- 1531, 2020.                                                          |
| [67]   | E. F. Touli and Y. Wang. FPT-algorithms for computing Gromov-Hausdorff and interleaving distances between trees. Proceedings of the 27th Annual European Symposium on Algorithms , pages 83:1-83:14, 2019.                                          |
| [68]   | S. Wang, Y. Wang, and R. Wenger. The JS-graph of join and split trees. Proceedings of the 30th Annual Symposium on Computational Geometry , pages 539-548, 2014.                                                                                    |

- [69] G. Weber, P.-T. Bremer, and V. Pascucci. Topological landscapes: A terrain metaphor for scientific data. IEEE Transactions on Visualization and Computer Graphics , 13(6):1416-1423, 2007.
- [70] W. Widanagamaachchi, A. Jacques, B. Wang, E. Crosman, P.-T. Bremer, V. Pascucci, and J. Horel. Exploring the evolution of pressure-perturbations to understand atmospheric phenomena. IEEE Pacific Visualization Symposium , 2017.
- [71] L. Yan, T. B. Masood, R. Sridharamurthy, F. Rasheed, V. Natarajan, I. Hotz, and B. Wang. Scalar field comparison with topological descriptors: Properties and applications for scientific visualization. Computer Graphics Forum , 40(3):599-633, 2021.
- [72] L. Yan, Y. Wang, E. Munch, E. Gasparovic, and B. Wang. A structural average of labeled merge trees for uncertainty visualization. IEEE Transactions on Visualization and Computer Graphics , 26(1):832-842, 2020.
Ellen Gasparovic Elizabeth Munch Steve Oudot Katharine Turner Bei Wang Yusu Wang
Intrinsic Interleaving Distance for Merge Trees
Merge trees are a type of graph-based topological summary that tracks the
evolution of connected components in the sublevel sets of scalar functions.
They enjoy widespread applications in data analysis and scientific
visualization. In this paper, we consider the problem of comparing two merge
trees via the notion of interleaving distance in the metric space setting. We
investigate various theoretical properties of such a metric. In particular, we
show that the interleaving distance is intrinsic on the space of labeled merge
trees and provide an algorithm to construct metric 1-centers for collections of
labeled merge trees. We further prove that the intrinsic property of the
interleaving distance also holds for the space of unlabeled merge trees. Our
results are a first step toward performing statistics on graph-based
topological summaries.