Isometric-Universal Graphs for Trees
Abstract
We consider the problem of finding the smallest graph that contains two input trees each with at most vertices preserving their distances. In other words, we look for an isometric-universal graph with the minimum number of vertices for two given trees. We prove that this problem can be solved in time . We extend this result to forests instead of trees, and propose an algorithm with running time . As a key ingredient, we show that a smallest isometric-universal graph of two trees essentially is a tree. Furthermore, we prove that these results cannot be extended. Firstly, we show that deciding whether there exists an isometric-universal graph with vertices for three forests is NP-complete. Secondly, we show that any smallest isometric-universal graph cannot be a tree for some families of three trees. This latter result has implications for greedy strategies solving the smallest isometric-universal graph problem.
Keywords and phrases:
tree, forest, isometric subgraph, universal graph, distance-preservingCopyright and License:
2012 ACM Subject Classification:
Theory of computation Design and analysis of algorithmsEditors:
Paweł Gawrychowski, Filip Mazowiecki, and Michał SkrzypczakSeries and Publisher:
Leibniz International Proceedings in Informatics, Schloss Dagstuhl – Leibniz-Zentrum für Informatik
1 Introduction
Trees are one of the most natural and basic graph classes that can be studied. Studying problems on trees is thus natural, and is at the crux of the intersection between Graph Theory and Computer Science. Even for a general problem such as “finding a graph that contains two input trees”, there are a multitude of variants. To cite few of them, there is the case where the final graph is constrained to be a tree, where “containing” can be either as a subgraph or as a topological embedding [17]. There is also the more general case where the input is two graphs instead of two trees [1, 2, 8], or where the input is composed of more than two trees contained as minors [5, 16].
In this paper, we consider the problem of constructing a graph containing as isometric subgraphs two given trees (or forests) with the aim of minimizing its number of vertices. An isometric subgraph of a graph is a subgraph in which the distances between all the vertices of are preserved in . This is equivalent to the notion of distance-preserving embedding used by Winkler [19], and then reworded as distance-preservers [6, 7, 10] with important applications to spanners and distance labeling schemes.
This basic problem can be extended in many ways. First of all, one can consider a family of graphs as input rather than two trees. This leads to the notion of universal graphs, a notion that has been widely studied. More precisely, a graph is isometric-universal for a graph family if every graph of appears as an isometric subgraph in . In this line of research, and are often constrained. For instance, if and are limited to caterpillars111A tree whose vertices of degree at least two induce a path., Chung, Graham, and Shearer [9] proved that -vertex caterpillars have an isometric-universal caterpillar with vertices, which is tight. And, for the family of all -vertex graphs, Esperet, Gavoille, and Groenland [12] showed that there exists an isometric-universal graph with at most vertices, and with a lower bound of .
The notion of isometric subgraph can also be extended to -isometric subgraphs as follows. A subgraph of is called -isometric if the distances between all the vertices of at distance at most in are preserved in . This definition generalizes several classical notions of graph containment. Indeed, a subgraph is simply a -isometric subgraph, an induced subgraph is a -isometric subgraph, and a distance-preserving embedding or isometric subgraph is an -isometric subgraph. This leads to the notion of -isometric-universal graphs for a given family of graphs. Note that sparse universal graphs () and small induced-universal graphs () are well-studied topics in Graph Theory, see for instance [4, 11, 13] and the references therein. Thus, the initial problem we consider in this paper corresponds to the case where and is composed of two trees, and more generally two forests.
1.1 Our contribution
On the positive side, we prove that constructing a minimum isometric-universal graph for two forests, each with at most vertices, can be done in time . On the negative side, we show that this result cannot be extended to three forests by proving that the associated decision problem is NP-complete.
More precisely, in Section 2, we demonstrate that a minimum isometric-universal graph for two trees can be constructed in time thanks to an algorithm due to Gupta and Nishimura [17]. Additionally, we show how to reduce the problem for two forests from the Assignment Problem, a variant of the maximum matching of maximum weight problem in bipartite graphs, with an slow-down factor in time complexity. As a key ingredient, we show that two trees always admit a minimum isometric-universal graph that is a tree. We believe that this nice property for two trees is an important technical contribution of the paper.
On the other hand, in Section 3, we show that these positive results cannot be extended in at least two ways. First, we show that deciding whether there exists an isometric-universal graph with vertices for three forests is NP-complete. This is achieved by a technical reduction from the 3D-Matching Problem. Second, we exhibit an infinite family of triples of trees having no minimum isometric-universal graph that is a tree. Implications to approximation algorithms are discussed in Section 3.2. In particular, we demonstrate that no greedy strategy can build a minimum isometric-universal graph, even with access to an optimal oracle for a pair of graphs. Finally, we show that the property used for two trees cannot be extended to minimum -isometric-universal graphs if .
1.2 Preliminaries and definitions
We consider finite and undirected graphs with no loops and no multi-edges. The union graph of two graphs , denoted by , is defined by and . Similarly, the intersection graph of , denoted by , is defined by and . The disjoint union is denoted by .
Given a graph , and two vertices of , we denote by the minimum number of edges of a path connecting to in , if it exists, and we set otherwise, i.e., if and are in different connected components of .
A subgraph of is -isometric if, for all vertices of , if . Note that, in that case, if , then . In particular, since is a subgraph of , if , then .
A -isometric-universal graph for a given graph family is a graph such that every graph of is isomorphic to a -isometric subgraph of . Moreover, is called minimum if it has the smallest possible number of vertices. is minimal if no proper subgraph of is a -isometric-universal graph for . Note that if is minimal, then, for every -isometric embedding from the graphs of to , we have . Whenever , we rather use the term isometric-universal graph as introduced by Esperet et al. [12].
2 Universal Graph for Two Forests
Let us first remark that computing the minimum isometric-universal graph is hard in general, even for two graphs. More precisely, given two graphs , and some number , the -Isometric-Universal Graph for Two Graphs Problem asks for finding a -isometric-universal graph with vertices for , that is a -vertex graph containing and as -isometric subgraphs.
Indeed, the problem is NP-complete for each and for two graphs with the same number of vertices. For , this is simple reduction222It is easy to check that the problem is in NP, the certificate being composed of the universal graph and of the embedding from each graph to the universal graph, both can be described polynomially in the size of . from Hamiltonian Path, and for , this is a reduction from Clique of size . Indeed, for a graph with vertices, set to a path (if ) or to a clique (for ) with vertices, and ask whether the there exists a -isometric-universal graph for the family , with respectively vertices for , or with vertices for .
We will consider the variant where the pair is composed of two forests. The problem is known to be NP-complete for , even if one of the two forests is a tree [14, Theorem 4.6, p. 105]. As shown by Gavoille and Jacques [15], this NP-completeness result can be extended to two trees of the same size for . Nevertheless, as we will see in this section, the problem becomes polynomial for two forests if .
2.1 Connected components reduction
We start with the following result, that will allow us to reduce the problem of computing the minimum isometric-universal graph for a pair of graphs (possibly non-connected) to the case of their connected components. The reduction is based on a polynomial solution of the Assignment Problem whose goal is to optimally assign agents to individual tasks. For the purpose of the next statement, we say that a function is superlinear if is non-decreasing. Typically, polynomials and exponentials for are superlinear functions.
Theorem 1.
Let be two graphs with at most vertices, composed respectively of and connected components. Let be any superlinear function bounding above the time complexity of computing a minimum isometric-universal graph for any pair of graphs with at most vertices composed of a component of and of . Then, assuming , a minimum isometric-universal graph for can be computed in time
The proof is available in the full version [3].
2.2 The case of two trees
To compute the minimum isometric-universal graph of two forests in polynomial time, we will combine Theorem 1 and the next result about two trees.
Theorem 2.
Every minimum and minimal isometric-universal graph for two trees is a tree.
Before presenting its technical proof, we remark that both properties, minimum and minimal, are required. Indeed, the disjoint union of any pair of trees is isometric-universal for this pair, is minimal but not minimum (as implied by Theorem 2, the minimum one must be connected). Moreover, the graph composed of two pendant vertices attached to some vertex of a (see Figure 1) is a minimum isometric-universal graph for the family composed of two -vertex trees, where denotes here the graph where one edge has been subdivided into two edges. However, it is not minimal: it contains as proper subgraph which is isometric-universal for . This example can be generalized to two trees with vertices, for every .
Proof of Theorem 2.
Let be any minimum and minimal isometric-universal graph for composed of two trees. We consider a given isometric embedding of and in , and denote by and their corresponding embedded subgraphs in . Since is minimal, . So, each vertex or edge of , belongs either to , , or to .
For convenience, let us denote by , and by the length of path , i.e., its number of edges. We will often use the property that every path of of , for some , satisfies , where are the extremities of . This is because every path of a tree is a shortest path in this tree, and because is an isometric subgraph of .
must be connected, otherwise we could merge two connected components of by a vertex, and this without modifying any distance in or which are finite. This would contradicting the fact that is minimum. If is a tree, we are done. It remains to show that if has a cycle, then is not minimum. Consider the shortest cycle in . Let us show that:
Claim 3.
The edges of can be partitioned into two paths and such that (see Figure 2 on the left):
-
with
-
-
Proof.
Consider the connected components of . Obviously, such components are trees. In particular, is impossible. It is also clear that intersects at least two such components. Indeed, first, if it intersects no components, then is wholly contained in or in , contradicting they are trees. Secondly, if it intersects only one, then is wholly contained in or in as well, since the part of outside the component exists and belongs to one tree, and the part inside the component belongs to both trees.
Define and as any two vertices of that belong to two different components of , and such that is minimum. Let be a path of realizing this distance. By construction, the only vertices of that are in are precisely its extremities . Indeed, if contains a vertex in , then both and would be less than , which is not possible by the choice of . Thus, contains only vertices and edges of a same tree , because if two consecutive edges belong to different trees, their common vertex must be in the intersection. W.l.o.g., assume that . Note that we have because is a path of . We set to be the path of induced by the edges of not in .
Clearly, the first two points hold: and , and we have seen that , and thus .
For the third point, by way of contradiction, assume that contains a vertex of . We have . By the choice of and on , we must have , i.e., . On the other hand, let us consider the path between and in . We have . So, creates a cycle of length at most . By minimality of , this implies that . But, if , then both and would be less than : a contradiction with the choice of that minimizes the distance on . So, has no vertex in . Thus, contains only vertices and edges of a same tree . Clearly, is not possible, since otherwise would be wholly contained in . So, as required.
Let be as in Claim 3. Note that . Indeed, we have seen that the size of is , and is not possible since is a cycle. Then, we can define to be the neighbor of in , for each . See Figure 2 on the left. And, consider the graph obtained from by identifying and into a new vertex , and by removing double edges created. We call this operation on a contraction, since it corresponds to a classical edge-contraction if and are adjacent. See Figure 2.
We will show that is still isometric-universal for , contradicting the fact that has the minimum number of vertices. This will prove that does not exist in , and so is a tree.
Let us show that and are isometric subgraphs of . We have to prove that the contraction of and does not change any distance between any pair of vertices that belong to a same tree , for each .
First we remark that is a subgraph of . Indeed, and belong to different trees, and thus the edge of in , after contraction, is in in . So, the distances between vertices taken in can only decrease in .
We proceed by way of contradiction. Assume there are two vertices and at distance in that both belong to , for some , and such that . We consider only the case , the case being symmetric.
Let us show that:
Claim 4.
There exists a path between and in of length that passes through the path or the path .
Proof.
For every path in , we denote by , its contraction, i.e., the path obtained by contracting all the edges of the subpath of between and . If or is not in , we set . Note that is a path of .
Let be a shortest path in between and . By hypothesis on , . Let us show that there exists a path in such that and . If does not contain , then . Otherwise, . There are two cases: (1) if contain , then we can set as the path where is replaced or (depending on the other edge incident to in ); (2) if does not contain , then since is a shortest path, it cannot contain . We can set as the path where is replaced by the path or . We check that in both cases, , and , that implies .
Let be a path as in Claim 4. Note that is a witness for , i.e., a path connecting to and such that after contracting and , its length decreases by in , and becomes less than . W.l.o.g. we will assume that visits in this order when going from to . If not, we can exchange the role of and .
Now, let us define the vertices as follows (see Figure 3):
-
Vertex is the last vertex of , when going from to , that belongs to . Note that is between and on , possibly with . See Figure 3 on the left.
-
Vertex is the first vertex of , when going from to , that belongs to , possibly with . Note that . See Figure 3 on the right.
-
Vertex is the last vertex of the path between to in , when going from to , that belongs to , possibly with . See Figure 3 on the right.
Since passes successively through vertices , we have:
The quantity is equal to , since are consecutive in . On the other hand, by definition of . By the triangle inequality between and , . Therefore:
| (1) |
In fact, we will show that:
Claim 5.
.
Before presenting its proof, observe that the inequality of Claim 5 contradicts Equation 1, and the fact that some distance between two vertices of the same tree, namely and , is shortened in . So is universal-isometric for , and thus cannot be minimum, and thus does not contain any cycle.
Proof.
We will actually prove a stronger statement which is:
We first remark that vertex . Indeed, we have . If , then the edge on the path from to is not in . So, , which implies : a contradiction with the fact that is the first vertex on from to that is in . So .
As a preliminary step, let us show that , cf. Equation 5 hereafter. Recall that , and that distances in coincide with distances in .
By definition, is on the path from to in . Thus
Similarly for , which is on the path in from to , we have . Combining these two equations, we get:
| (2) |
We use the following fact:
Fact.
For any three vertices in a tree, the three paths between them have exactly one vertex in common.
In particular, whenever applied to and in , pairwise connected by the three tree paths in , the fact implies the last vertex of that is on is also the last vertex of that is on . From this, we deduce that is on the path from to in . Thus . With the same argument applied to the same vertices but in , we deduce that is on the shortest path in from to , we have . Therefore:
| (3) |
By subtracting Equation 3 from Equation 2, we have:
| (4) |
Note that and are paths of and respectively, thus they are shortest paths in . Since and are on and respectively, we have . And by adding to Equation 4, we get:
| (5) |
as claimed.
We now show that:
| (6) |
Indeed, either , i.e., , and thus . Or, , and thus is on the path from to on , and is on the path from to on . This implies , and thus .
Furthermore, applying Equation 5 on Equation 2 gives that:
| (7) |
Equation 6 and Equation 7 completes the proof of Claim 5. This completes the proof of Theorem 2.
This structural result allows us to predict that every minimum isometric-universal graph of two trees either is a tree, or contains an isometric-universal graph for as a subgraph (only by removing edges). However, as the proof of Theorem 6 will explain, if we can compute a tree that contains and as subgraphs, then we can compute a minimum isometric-universal graph for . More precisely:
Theorem 6.
A minimum isometric-universal graph for a pair of trees with at most vertices each can be computed in time .
Proof.
Let be two trees with at most vertices. From Theorem 2, there always exists a minimum isometric-universal graph of two trees that is a tree itself. Thus, any algorithm that computes a minimum isometric-universal tree for computes a minimum isometric-universal graph for too.
In a tree there exists only one path connecting any pair of vertices. Thus, every tree that contains and as subgraphs (such a tree is called a supertree under graph isomorphism in [17]) is also an isometric-universal tree. According to Gupta and Nishimura [17, Theorem 9.6], a minimum supertree of two trees can be computed in time .
From the above discussion, the minimum supertree for is a minimum isometric-universal tree and also a minimum isometric-universal graph for , which concludes the proof.
2.3 The case of two forests
Now we extend the previous result to forests instead of trees. The combination of Theorem 1 and Theorem 6 leads to the following result:
Theorem 7.
A minimum isometric-universal graph for a pair of forests with at most vertices each can be computed in time .
Proof.
This is a direct application of Theorem 1 applied on two forests, composed respectively of and trees. In the complexity formula of Theorem 1, we can bound , , and as follows:
-
.
-
, for some constant , since, from Theorem 6, the time complexity of finding a minimum isometric-universal graph of two trees is at most . Note that is superlinear.
We have:
Applying Theorem 1, this completes the proof.
3 Universal Graph for Three Forests
3.1 Three trees and more
Unfortunately, Theorem 2 cannot be extended to three trees. Indeed, as we will show in Theorem 8, there are triples of trees with no minimum isometric-universal graph that is a tree. As we will see later in Section 3.2, this implies that no greedy strategy can build a minimum isometric-universal graph, even if equipped with an optimal oracle for isometric-universal graphs for a pair of graphs.
Theorem 8.
For every integer , there is a family of trees , each with vertices and with pathwidth333The pathwidth of a graph is the smallest integer such that is a subgraph of some interval graphs with maximum clique size . two, for which every isometric-universal tree is not minimum.
The proof is available in the full version [3]. See Figure 4 and Figure 5 for an illustration of the construction.
The smallest example provided by Theorem 8, for , consists of three trees of vertices. We suspect that this vertex amount can be lowered significantly, with perhaps more complex arguments.
3.2 Consequences for greedy strategies
As we will see, Theorem 2 and Theorem 8 imply that there exist graph families where no greedy strategies can build a minimum isometric-universal graph. Informally, a greedy strategy consists in starting with some initial graph of a given family , and then, at each step, picking a new graph of and computing a minimum isometric-universal graph for the pair composed of the current graph and this new graph, and updates the current graph with this new isometric-universal graph.
More formally, let A be any algorithm (considered as a black-box or oracle) computing an isometric-universal graph for a pair of graphs. A greedy strategy, parametrized by A, selects the graphs of a given family in some order, say , and builds the following sequence of graphs :
By construction, is an isometric-universal graph for , since, by induction, is an isometric-universal graph for .
Unfortunately, no greedy strategies can determine the minimum isometric-universal graph for all families of trees, if the routine A constructs a minimum and minimal isometric-universal graph for any two graphs. (Recall that, for two general graphs, this is NP-hard.) This is due to the fact that, at every step , will return a tree, since, by Theorem 2, every minimum and minimal isometric-universal graph of two trees has to be a tree. In particular, the final graph will be a tree.
Now, by Theorem 8, there is a family of trees whose minimum isometric-universal graph cannot be a tree. So, it implies that whatever the order of the trees chosen for the greedy strategy, the result cannot be a minimum isometric-universal graph.
Since by Theorem 2, must be a tree, it is legitimate to ask whether, for tree families, greedy strategies can help in computing a minimum isometric-universal tree, rather than a minimum isometric-universal graph. Unfortunately, this will fail as well for the following reason.
Consider the family , where is composed of two copies of a , whose centers are connected by a path of length , where and are large enough. See Figure 6 for an example.
It is not difficult to see that the minimum isometric-universal graph of , i.e., , must contain three stars, i.e., three copies of intersecting only within a constant number of vertices. Indeed, assuming444As , the order of the two first trees does not matter. , must be composed of where the center of a star of belongs to the path of , the other star being in common. In this universal tree, the distances between these three centers are , , and . For instance, for and , we have the distance set . The two other distance sets being (for ) and (for ).
Now, by adding the third tree to , by computing , one obtain a universal tree that must contain four stars. Indeed, the only way to get three stars would be to share both stars of with two out of the three stars already in . Unfortunately, the distance between the two star centers of does not belong to the distance set of .
The construction as depicted in Figure 7 shows that has an isometric-universal tree with only three stars, and thus with vertices, whereas the greedy strategy gives vertices, which is bigger for for instance.
To summarize the above discussion, we have shown:
Proposition 9.
Let A be any algorithm computing a minimum and minimal isometric-universal graph for a pair of graphs. Then, no greedy strategies based on A can compute a minimum isometric-universal graph (or tree) for all tree families.
We note that we have analyzed greedy strategies for its best-case running (and not its worst-case as usual), that is for best ordering of the graphs in the family. So, these greedy strategies fail in a strong sense (i.e. whatever the ordering is).
3.3 Extending Theorem 2 to -isometric-universal trees
Another natural extension of Theorem 2 is to ask whether it holds for -isometric-universal graphs, for large enough and depending of . More formally, we may ask what is the smallest function defined as:
For every , every minimum and minimal -isometric-universal graph for a pair of trees each with at most vertices is a tree.
Clearly, every graph containing an -vertex tree as an -isometric subgraph, also contains as an isometric subgraph. Thus, by Theorem 2, for all . On the other hand, as we will see hereafter in Theorem 10, there are pairs of -vertex trees for which every minimum -isometric-universal graph is not a tree whenever . Thus, for all .
We establish the following lower bound for :
Theorem 10.
For every , . In other words, there is a pair of trees, each with at most vertices, for which every minimum -isometric-universal graph is not a tree.
The proof is available in the full version [3].
Despite Theorem 10 showing that , we suspect that , and we leave open to determine the right asymptotic value for . On one side we believe that the above proof can be enhanced to reach . On the other hand, in the -isometric-universal graph, it seems far-fetched to have two disjoint paths of length .
3.4 NP-completeness
In this section we show that Theorem 7 cannot be extended to more than two forests (unless P = NP). In several decision problems, setting the input from to costs to pass from P to NP-C (for instance -SAT has a polynomial solution and -SAT is NP-complete, same for graph -coloring). We present here the same pattern with the problem of isometric-universal graph from to forests. As a byproduct of our proof, the NP-completeness holds if we restrict the isometric-universal graph to be a forest. This restriction has also been claimed by Rautenbach and Werner [18, Theorem 3].
Theorem 11.
Determining whether there exists an isometric-universal graph (or forest) with vertices for three forests is NP-complete, even if the three forests have pathwidth at most two.
Proof.
It is not difficult to see that this problem is in NP. We use a reduction from the 3D-Matching problem that is NP-complete even if each element is contained in at most three sets (see [14, Problem SP1 in Appendix A.3.1]). This restriction can be seen as determining a perfect matching in a 3-partite sub-cubic hypergraph.
For the 3D-Matching problem, we are given three disjoint sets of size , and a set of triples . We ask whether there exists or not a subset of triples of that are pairwise independent. In other words, a solution for the problem, called matching, is a subset of size such that no two triples of agree in any coordinate.
In order to encode the 3D-Matching problem into our problem, consider a instance where each element of , or is contained in two or three triples555Clearly, any element has to appear at least once in , and if it appears only once, then we have to take it in any solution, and so reducing the instance. of . We have and , so that the instance is of size .
We construct a family composed of three forests, each with trees, one tree for each element of , , and . More precisely, for each set , the set of connected components of is denoted by , where is the tree associated with the element of the forest . Each tree will be described precisely hereafter.
For every , let be a subdivided star obtained from a whose three of its edges have been replaced by a path of length . Let be the collection of all such stars that are pairwise non-isomorphic. See Figure 8 for examples of such stars.
It is easy to check that:
Claim 12.
Each is a tree of pathwidth two with vertices, its center has degree , branches of length one, and three branches of length .
The forests and .
For convenience, we will assume that and , so that . Actually, any one-to-one mapping from to is fine. For each , the tree is composed of a copy of the star where is attached a claw, i.e., a copy of a . More precisely, the center of is merged with a leaf of the claw. The tree has vertices, and pathwidth two. See Figure 9.
The forest .
Consider any , and define to be the set of triples of containing element . From the restriction of the input, .
Let us denote by and the elements of and that are contained in the triples of , where . The tree of the forest is obtained from the copies of the stars where their centers are connected by a path in which each edge is alternatively replaced by a path of length two or three. Furthermore, along the path, the star centers are encountered in the specific order if (dashes mean edges), and in the order if . See Figure 10 with the notation therein.
Clearly, is a tree of pathwidth two. Since each star has vertices (cf. Claim 12), the number of vertices of is depending on . By construction, we have .
An important property of is that if , then a copy of the stars and appears as an isometric subgraph of . However, neither nor can appear in as an isometric subgraph because of their claws. Another important property is that if , then the stars and cannot appear consecutively in the main path of (if they appear). This is due to the specific order of the stars along the path. In that case, the distance between their centers is at least 5.
Let be any minimum isometric-universal graph for . We note that has polynomial size w.r.t. the instance , since each of the forests is composed of trees with vertices each.
Intuition behind the proof.
Each component of must contain the trees , and for some elements . In a favorable case, this component is composed of plus only one single vertex. Indeed, if are both contained in , then and each appears in . It follows that and will almost fit in but for one vertex of their claw. The only way to pack in using one extra vertex is to share this vertex with their claw by being consecutive on the main path of . This favorable situation will occur simultaneously on each if has a solution, i.e., if contains a matching for . Unfortunately, if or are not in , and still want to pack in , then the resulting component would contain more than one vertex more as in . This situation will necessarily occur if has no solution. Overall, the number of vertices in will allow us to determine whether a solution exists or not for .
More formally, our goal is to prove the following claim:
Claim 13.
if and only if has a solution.
The proof of this claim is available in the full version [3].
4 Conclusion and Open Question
We have introduced the notion of -isometric-universal graph, which captures several well-studied variants of universal graph, by taking different values for , with (classical universal graphs), (induced-universal graphs), or (isometric-universal graphs). We have also considered limited families of graphs (by taking two graphs, two trees or forests, all -vertex graphs, …).
We have mainly proved that, for , the problem of minimizing the number of vertices of a minimum -isometric-universal graph is polynomial for two forests and NP-hard for three forests. The variants for are known to be NP-hard.
Along the way, we have proved that any minimum and minimal isometric-universal graph for two trees has to be a tree (Theorem 2). We propose two open questions, one about the structure of minimum isometric-universal graphs, and one about the complexity for two graphs. More precisely,
What is the arboricity of a minimum and minimal isometric-universal graph of trees? Is it ?
Theorem 2 shows that this is indeed for . Note that Theorem 8 shows that for trees, arboricity 1 is not possible.
What is the complexity of finding a minimum isometric-universal graph for two outerplanar graphs? Or two graphs of bounded treewidth?
References
- [1] Faisal N. Abu-Khzam. Maximum common induced subgraph parameterized by vertex cover. Information Processing Letters, 114(3):99–103, March 2014. doi:10.1016/j.ipl.2013.11.007.
- [2] Faisal N. Abu-Khzam, Édouard Bonnet, and Florian Sikora. On the complexity of various parameterizations of common induced subgraph isomorphism. Theoretical Computer Science, 697:69–78, October 2017. doi:10.1016/j.tcs.2017.07.010.
- [3] Edgar Baucher, François Dross, and Cyril Gavoille. Isometric-universal graphs for trees. Technical Report 2506.11704v1 [cs.DS], arXiv, June 2025. doi:10.48550/arXiv.2506.11704.
- [4] Helena Bergold, Vesna Iršič, Robert Lauff, Joachim Orthaber, Manfred Scheucher, and Alexandra Wesolek. Subgraph-universal planar graphs for trees. Technical Report 2409.01678 [quant-ph], arXiv, September 2024. doi:10.48550/arXiv.2409.01678.
- [5] Olivier Bodini. On the minimum size of a contraction-universal tree. In 28th International Workshop on Graph-Theoretic Concepts in Computer Science (WG), volume 2573 of Lecture Notes in Computer Science, pages 25–34. Springer, June 2002. doi:10.1007/3-540-36379-3_3.
- [6] Gregory Bodwin. New results on linear size distance preservers. SIAM Journal on Computing, 50(2):662–673, January 2021. doi:10.1137/19M123662X.
- [7] Béla Bollobás, Don Coppersmith, and Michael Elkin. Sparse distance preservers and additive spanners. SIAM Journal on Discrete Mathematics, 19(4):1029–1055, 2006. doi:10.1137/S0895480103431046.
- [8] Horst Bunke, Xiaoyi Jiang, and Abraham Kandel. On the minimum common supergraph of two graphs. Computing, 65:13–25, July 2000. doi:10.1007/PL00021410.
- [9] Fan R.K. Chung, Ronald Lewis Graham, and J. Shearer. Note: Universal caterpillars. Journal of Combinatorial Theory, Series B, 31(3):348–355, December 1981. doi:10.1016/0095-8956(81)90037-X.
- [10] Don Coppersmith and Michael Elkin. Sparse source-wise and pair-wise distance preservers. SIAM Journal on Discrete Mathematics, 20(2):463–501, 2006. doi:10.1137/S0895480104445319.
- [11] Vida Dujmović, Louis Esperet, Cyril Gavoille, Gwenaël Joret, Piotr Micek, and Pat Morin. Adjacency labelling for planar graphs (and beyond). Journal of the ACM, 68(6):Article No. 42, pp. 1–33, December 2021. doi:10.1145/3477542.
- [12] Louis Esperet, Cyril Gavoille, and Carla Groenland. Isometric universal graphs. SIAM Journal on Discrete Mathematics, 5(2):1224–1237, 2021. doi:10.1137/21M1406155.
- [13] Louis Esperet, Gwenaël Joret, and Pat Morin. Sparse universal graphs for planarity. Journal of the London Mathematical Society, 108(4):1333–1357, October 2023. doi:10.1112/jlms.12781.
- [14] Michael R. Garey and David S. Johnson. Computers and Intractability - A Guide to the Theory of NP-Completeness. W.H. Freeman, 1979.
- [15] Cyril Gavoille and Amaury Jacques. Compact universal graphs for small families of graphs, 2024. In preparation.
- [16] Paweł Gawrychowski, Fabian Kuhn, Jakub Łopuszański, Konstantinos Panagiotou, and Pascal Su. Labeling schemes for nearest common ancestors through minor-universal trees. In 29th Symposium on Discrete Algorithms (SODA), pages 2604–2619. ACM-SIAM, 2018. doi:10.1137/1.9781611975031.166.
- [17] Arvind Gupta and Naomi Nishimura. Finding largest subtrees and smallest supertrees. Algorithmica, 21(2):183–210, June 1998. doi:10.1007/PL00009212.
- [18] Dieter Rautenbach and Florian Werner. Induced subforests and superforests. Technical Report 2403.14492v1 [cs.DS], arXiv, March 2024. doi:10.48550/arXiv.2403.14492.
- [19] Peter Winkler. Proof of the squashed cube conjecture. Combinatorica, 3(1):135–139, March 1983. doi:10.1007/BF02579350.
