Intersecting longest paths in chordal graphs
Abstract
We consider the size of the smallest set of vertices required to intersect every longest path in a chordal graph. Such sets are known as longest path transversals. We show that if is the clique number of a chordal graph , then there is a transversal of order at most . We also consider the analogous question for longest cycles, and show that if is a 2-connected chordal graph then there is a transversal intersecting all longest cycles of order at most .
1 Introduction
In this paper we consider the paths of maximum length among all paths in a graph. As longest paths represent the most indirect way one could travel through the graph from some place to another, we will adopt the terminology of Kapoor et al. [14, 12] and refer to them as detours. It is not too difficult to convince yourself that any two detours in a connected graph must intersect. In 1966 Gallai asked whether all detours in a connected graph share a common vertex [8]. While the answer turned out to be negative for graphs in general, this question has led to a large number of positive results for particular graph classes.
In the negative direction, Walther gave a counterexample with 25 vertices soon after the question was posed [19]. The smallest possible counterexample is obtained from the Petersen graph by breaking one vertex into three degree one vertices [22, 20]. Thomassen showed there are infinitely many planar counterexamples (the ‘hypotraceable’ planar graphs) [17]. The known counterexamples contain sets of at least seven detours that do not have a common intersection. It remains an open question whether every detours in any connected graph have a vertex in common, for [23, 18].
On the other hand, there are a number of classes of connected graphs for which it has been proven that all detours intersect in some vertex. These include trees, cacti [15], split graphs [15], circular arc graphs [2, 13], outerplanar graphs [7, 1], 2-trees [7], graphs with all non-trivial blocks Hamiltonian [7], partial 2-trees [6], connected dually chordal graphs [12], cographs [12] and more [4, 10, 5]. The motivating question for the present research is whether chordal graphs (and thus all -trees) can be added to this list [21]. Recall that a graph is chordal if every cycle of four or more vertices contains a chord, or in other words, the only induced cycles are triangles.
Even if there is no single vertex intersecting every detour, we may ask for the smallest transversal of vertices that intersects all detours [16]. This is the approach we take in our study of chordal graphs, and the main result of this paper is the following, where is the clique number.
Theorem 1.
Given a connected chordal graph , there exists a transversal of order at most that intersects every detour. Moreover, this transversal induces a clique in .
The order of the smallest transversal intersecting all detours in a chordal graph was recently studied by Cerioli et al. [3]. They showed that there is a transversal of order at most . Theorem 1 is an improvement on their result for and .
The intersection properties of longest cycles in graphs have also been investigated, perhaps to a lesser extent. We also prove the following.
Theorem 2.
Given a -connected chordal graph , there exists a transversal of order at most that intersects every longest cycle of . Moreover, this transversal induces a clique in .
For large this improves on recent results of Gutiérrez [11], who showed that a 2-connected chordal graph contains a transversal intersecting all longest cycles of order at most . Thus Theorem 2 is an improvement for and .
We also note the following result about the order of a transversal of detours in a planar graph. Cerioli et al. [3] showed that, given a connected graph with treewidth , there exists a transversal intersecting every detour of order at most . Fomin and Thilikos [9] showed that a planar graph of order has treewidth at most . Together these give the following result.
Theorem 3.
Given a connected planar graph with vertices, there exists a transversal intersecting every detour of order at most .
This improves a previous result of Rautenbach and Sereni [16].
2 Preliminaries
Given a graph , a tree decomposition of consists of a tree and a collection of bags indexed by the nodes of such that:
-
•
the bags of contain vertices of ,
-
•
for each , the set of bags containing correspond to a non-empty connected subtree of ,
-
•
for each edge there is at least one bag containing both and .
The width of a tree-decomposition is the order of the largest bag, minus 1. The treewidth of a graph is the minimum width over all tree decompositions of . Technically, we should distinguish a node of the tree and the bag of indexed by the node, but in practice there is rarely any need, and as such we conflate the two.
The following key result about tree decompositions of chordal graph we shall use extensively:
Lemma 1.
If is a chordal graph, then has a tree decomposition of minimum width in which every bag corresponds to a clique.
This result is well-known, and can be proven multiple ways. A result of Gavril showed that the chordal graphs are equivalent to the subtree graphs: the intersection graph of subtrees of a tree. It is reasonably clear that the collection of subtrees corresponding to a chordal graph can be used to construct a tree decomposition for with the desired properties; we omit the full proof.
Now we consider the behaviour of the detours in a chordal graph. We start with an extremely straight-forward result which will be helpful later.
Proposition 1.
Let be a connected chordal graph, a clique in and a detour in . If has either an end vertex in or contains an edge of , then must contain every vertex of .
Proof.
If has an end vertex in or contains an edge of but is not in , we could extend to contain either by adding an edge from the end vertex to , or by replacing an edge of in with a 2-edge path containing . Since is a detour, this is a contradiction. ∎
A clique-cut in is a clique that is also a cut-set. Suppose is a detour and is a clique such that .
-
•
If all the vertices of are in a single component of then we say touches (or is touching with respect to ). Alternatively, if is a clique-cut and there are vertices of in at least two components of then we say that crosses (or is crossing with respect to ).
-
•
If has both end vertices in the same component of then we say is closed with respect to , and we call the component of containing both end vertices the home component of with respect to . Alternatively, if the end vertices of are in different components we say is open with respect to .
-
•
If then we say is small with respect to , otherwise it is large.
Often the clique will be clear from context, in these cases we will often drop “with respect to ”. We call a clique total if every detour intersects , otherwise it is non-total. When is total, every detour is either small or large, and either closed touching, closed crossing or open crossing. It is not possible from the definition for a detour to be open and touching.
Recall a separation is a partition of the vertex set such that no edge exists with an end vertex in and in . Note that if is a non-leaf bag in a tree decomposition, then is disconnected and is a separation where the components of are sorted into and . Given a path , let denote the number of end vertices of the path in (and define equivalently). Clearly , and if has no end vertices in , then .
Lemma 2.
Let be a separation in where is a cut-clique. If there exist two detours in such that
-
1.
neither ends in ,
-
2.
both intersect both of and , and
-
3.
then .
Proof.
Suppose otherwise for the sake of a contradiction, that is, there exist detours and satisfying the three properties but also . Note that since neither nor end in and since every path has two ends, it follows also. We construct a path as follows:
-
•
Consider the graph and the path inside this graph. Since intersects , will not contain all of . It is possible that is a set of subpaths of , and as such the number of end vertices of may not be two. However note that the number of end vertices of the subpaths in that are contained in is still ; all other end vertices must be in . Since enters , there is at least one end vertex in ; if then there are at least two end vertices in (as exactly one end vertex only occurs when starts in and ends in ).
-
•
Since is a clique, we can join the subpaths of together using edges of to create one long path. Call this . Note again that . If then has two end vertices in , if then has one end vertex in , and if then has no end vertices in but since enters at least one edge of is in .
Construct and equivalently. Note that since , it follows and . Also note , and also . We now construct a new path . If , then create by linking the endvertex of in and the endvertex of in via an edge of . Since , will be a path. Alternatively without loss of generality and . Now create by deleting an edge of in and attaching these new end vertices to the two end vertices of in . Again this will be a path. Also create a second path in the same way using and . Now every vertex of and is in . However, let be a vertex of . The vertex is in and and so is in both and . Thus . But since have maximum length, , a contradiction. ∎
3 Proof of Theorem 1
We now provide a proof of Theorem 1. This proof proceeds in several stages. First, we show that a connected chordal graph contains a special kind of clique, in which we shall find our traversal.
Note that by Lemma 1 and the Helly property of subtrees, there must exist at least one total clique in . We define a central clique to be a total clique that satisfies at least one of the following properties:
-
1.
is a total clique such that there is no detour which is small and touching with respect to , but there is a small crossing detour,
-
2.
is a total clique such that there exist two detours that are both small and touching with respect to , and have different home components,
-
3.
is a total clique such that either or there are no small detours at all with respect to .
We will use the above numbers to refer to the different types of central cliques.
Lemma 3.
A connected chordal graph has a central clique.
Proof.
Suppose no central clique exists. Fix a tree decomposition of such that each bag is a clique and such that for any two adjacent bags and neither nor . (The first property follows from being a chordal graph, and the second is achieved by contracting an edge in the tree decomposition whenever the property is violated.) We construct a set of directed edges with one going out of each bag as follows:
-
•
If is a total clique, then since is not a central clique, there must be at least one small touching detour, and all small touching detours have the same home component, which we call . Direct the arc from towards the subtree of containing .
-
•
If is a non-total clique, there is some detour that does not intersect , and so there is a component of such that . The component is entirely within a single subtree of , and so we construct an arc from towards its neighbour in said subtree. Note that even if several detours do not intersect , they must be inside the same component since any two detours intersect, and so our arc is well-defined.
Using the bags of as nodes and the directed edges we construct a directed graph where the underlying graph is acyclic and every node has outdegree exactly one. Thus there exists at least one 2-cycle. Let be the underlying edge of the tree-decomposition corresponding to a -cycle, and label the bags at the end vertices and . The edge splits into two sides, which we label left and right such that is on the left and is on the right.
There are now three possibilities to consider. Firstly, suppose that and are both non-total cliques. So there exists a detour that does not intersect and is entirely on the right, and a detour that does not intersect and is entirely on the left. But then , which cannot occur as detours pairwise intersect.
Secondly, suppose that and are both total cliques. Let be a small touching detour with respect to , which will have its home component to the right of . Label the home component of by . Let be a small touching detour with respect to with its home component to the left of . Define . Suppose contains a vertex in . Now every vertex of is contained within or , but has no neighbours in as and are separated by . Thus, since is incident to some edge in , the vertex at the other end of this edge must be in , and so all of is in by Proposition 1. Since is small with respect to , it follows is a central clique of type 3. Hence does not visit , and similarly does not visit . Thus both and are small and touching with respect to the clique-cut . The detours still have different home components (to the right and left of respectively) and so is a central clique of type 2.
Thirdly, suppose (without loss of generality) that is total and is non-total. Let be a small touching detour with respect to , which thus has its home component to the right of . Let be a detour that does not intersect (since it is non-total). Note intersects , and is entirely to the left of . Again, let . As in the previous case, if contains a vertex in , then all of is in and is a central clique of type 3. Hence we suppose that does not intersect . However, and must intersect, and does not intersect and therefore does not intersect , which leaves nowhere for the two detours to intersect. This gives our final contradiction. ∎
We now let be a central clique as guaranteed by Lemma 3. If is a central clique of type 3, then either itself or any subset of of size satisfies the requirements for Theorem 1. So we assume that is a central clique of type 1 or type 2, and not type 3. The next step is to construct a special set of detours which will help us find our transversal. We do so via the following algorithm:
-
1.
Initialise .
-
2.
Consider the small, closed, crossing detours with respect to .
-
(a)
If no such detours exist, go to Step 3.
-
(b)
Otherwise, if all such detours have the same home component, add one of them to , then go to Step 3.
-
(c)
Otherwise, there exist small closed crossing detours with different home components. If there exists two such detours with different home components that do not intersect in , add them both to . Go to Step 3.
-
(d)
Finally, there exist small closed crossing detours with different home components, but they all pairwise intersect in . Add one such pair to , then go to Step 3.
-
(a)
-
3.
Now consider small touching detours with respect to . If none exist, go to Step 4, otherwise go to Step 5.
-
4.
If there exists a small open crossing detour, add it to and finish.
-
5.
Add two small touching detours with different home components to and finish.
Note that if the algorithm reaches Step 5, had at least one small touching detour (from the condition in Step 3). Thus was a central clique of type 2, so it has two small touching detours with different home components. Hence Step 5 is a valid operation. All other steps of the algorithm are self-evidently valid.
From the construction of it is clear that every detour in is small, and contains at most four detours (e.g. if Steps 2(c) and 5 operate). Also, no detour has an end vertex in , otherwise by Proposition 1 all of is in and so, since is small, is a central clique of type 3. Initially define . Since contains at most four small detours, it follows and since , is itself a clique of . If , then add other vertices of to in order to force while maintaining the fact that is a clique. Our final step is to show that is the transversal we require.
Claim 1.
is a transversal for the set of detours in .
Proof.
Let be a detour in . There are two cases to consider: either is large with respect to or is small with respect to . If is large with respect to , then . If , then
which is a clear contradiction. Hence we may assume that is small with respect to . We may also assume that , since that case is clear. Suppose is a touching detour. Thus by Step 5, contains two small touching detours with different home components. Without loss of generality, suppose that the home component for is different to the home component for . Since and are touching detours and need to intersect while having different home components, it follows they intersect in itself, and thus intersects . Hence we may assume that is a crossing detour. The first subcase we will now consider is the case when is open and no touching detours exist. Thus by Step 4 and the existence of there exists a small open crossing detour . We construct a separation where the detours and both have one endvertex in and one in . Thus by Lemma 2 it follows , and hence intersects .
The next subcase is when is open and crossing but some touching detours exist. Then by Step 5 there exist two small touching detours with different home components. Partition the components of into and such that the home component of is in , the home component of is in and both and contain one endvertex of ; since is open this partition is achievable. Let be the subpath of created by deleting and pasting the remaining subpaths of together using the edges of . Define analogously, and without loss of generality we say . Let be a subpath of with one endvertex in , one endvertex in such that . If and do not intersect in then they can be concatinated to create a longer detour, if they do intersect in then so do and , and so intersects . These subcases account for when is open and crossing.
Finally we need to account for when is closed and crossing. Since exists, Step 2 will add some detours to . First suppose that all of the small, closed crossing detours have the same home component, and let be the detour Step 2(b) added to . Now let be the home component of (and ), and let be all other components of . Thus by Lemma 2 applied to the separation it follows that and intersect in , and thus intersects .
Hence we may assume there exists a pair of small closed crossing detours in with different home components. Suppose do not intersect in (that is, Step 2(c) occurred). Clearly we may also assume that does not intersect either or in . Label the home components of by and respectively, and note . If , then let and and apply Lemma 2 to , so that intersects in . So we assume and similarly that , that is, that are three distinct components. Let and . If both and intersect then by Lemma 2 the paths and must intersect in , which they do not. Hence without loss of generality we suppose does not intersect , that is, . Since is crossing it must intersect both and . By a similar argument one of and cannot intersect ; since intersects it must be that and that intersects and . Again, by a similar argument one of and cannot intersect , and given previous results it must be and that intersects and .
We will now argue in a similar fashion to Lemma 2 to construct a longer detour. Consider the subpaths of . All of the end vertices of these subpaths are in itself except for two inside , and since crosses there are at least two subpaths in . Create by connecting the subpaths of using the edges of ; because has at least two subpaths it follows that will contain at least one edge of . Similarly, consider the subpaths of and connect them up using edges of to create a path . Note that will have both end vertices in .
Construct in the same way (substituting different components as appropriate). Finally, construct the path from and by removing an edge of in and adding the edges from the two endvertices of to the endvertices of . This will be a path since and and do not intersect in . Construct from and and from and in the same fashion. Every vertex of is used at least once in , but the vertices of are used twice (in both and ). Hence , but since are detours, it follows at least one of is longer than a detour, a contradiction. This accounts for the case when there exists a pair of small closed crossing detours with different home components that do not intersect in .
The final subcase we must consider is when every pair of small closed crossing detours with different home components has an intersection between the detours in . (That is, Step 2(d) occurred.) Let denote the pair we added to . Now at least one of these detours has a different home component to ; without loss of generality we suppose it is . Then and would have been a legitimate choice of detours to add to instead of and . But we know that for each valid choice the detours intersect in , that is, must intersect in and is therefore intersects . This completes all possible cases. ∎
4 Longest cycles in chordal graphs
In this section we discuss how to apply the same ideas as those used in the proof of Theorem 1 to prove the following result for longest cycles in chordal graphs.
Theorem 2.
Given a -connected chordal graph , there exists a transversal of order at most that intersects every longest cycle of . Moreover, this transversal induces a clique in .
We will describe the modifications required to adapt the proof to longest cycles, rather than including a full proof of this result. First note that longest cycles in -connected graphs have the property that any two intersect [11], and that similarly to Proposition 1, a longest cycle with an edge in a given clique must visit every vertex of that clique.
Cycles have no ends, so there is no need for the open/closed distinction used above. As before, given a clique-cut we say that a cycle touches if lies in a single component of (its home component), and otherwise it crosses . We say a cycle is small with respect to a clique if .
Lemma 2 can be replaced with a lemma that states that any two longest cycles crossing must intersect in ; otherwise the pieces of the cycles can be rearranged into two other cycles that also use some edges of , contradicting the fact they were longest cycles.
For longest cycles, a central clique is a total clique-cut that has either: a small crossing longest cycle but no small touching longest cycles; two small touching longest cycles with different home components; order at most ; or no small longest cycles at all.
To show there exists a central clique we argue as before. Assume there is none, and direct edges of the tree decomposition toward disjoint or small touching longest cycles. This means every bag has out degree one and so there is a directed -cycle. We consider the bags that constitute this 2-cycle, and distinguish cases by whether they are total clique-cuts or not. The argument proceeds exactly as in the proof of Lemma 3.
Given a central clique we construct a transversal as follows. Firstly, if there is a small crossing longest cycle but no small touching longest cycles, we only need to take the vertices from one such longest cycle in . Secondly, if there are small touching longest cycles with different home components then we take the vertices of two such cycles and in . Now any other touching longest cycle must hit or in since it avoids one of the home components. If is a crossing longest cycle, at least half of is outside of one of the home components, say that of . If and don’t intersect in it is possible to take at least half of each of and and combine them into a longer cycle using edges of . Thirdly, if has order at most we take all of . Finally, if is larger but has no small longest cycles at all, we take any vertices from . Thus we have a transversal of order at most as required.
References
- [1] Maria Axenovich. When do three longest paths have a common vertex? Discrete Math. Algorithms Appl., 1(1):115–120, 2009.
- [2] Paul N. Balister, Ervin Győri, Jenő Lehel, and Richard H. Schelp. Longest paths in circular arc graphs. Combin. Probab. Comput., 13(3):311–317, 2004.
- [3] Márcia R. Cerioli, Cristina G. Fernandes, Renzo Gómez, Juan Gutiérrez, and Paloma T. Lima. Transversals of longest paths. Discrete Math., 343(3):111717, 10, 2020.
- [4] Márcia R. Cerioli and Paloma T. Lima. Intersection of longest paths in graph classes. Discrete Appl. Math., 281:96–105, 2020.
- [5] Fuyuan Chen. Nonempty intersection of longest paths in a graph with a small matching number. Czechoslovak Math. J., 65(140)(2):545–553, 2015.
- [6] Guantao Chen, Julia Ehrenmüller, Cristina G. Fernandes, Carl Georg Heise, Songling Shan, Ping Yang, and Amy N. Yates. Nonempty intersection of longest paths in series-parallel graphs. Discrete Math., 340(3):287–304, 2017.
- [7] Susanna F. de Rezende, Cristina G. Fernandes, Daniel M. Martin, and Yoshiko Wakabayashi. Intersecting longest paths. Discrete Math., 313(12):1401–1408, 2013.
- [8] P. Erdős and G. Katona, editors. Theory of Graphs: Proceedings of the Colloquium Held at Tihany, Hungary, September 1966. Academic Press, 1968.
- [9] Fedor V. Fomin and Dimitrios M. Thilikos. New upper bounds on the decomposability of planar graphs. Journal of Graph Theory, 51(1):53–81, 2006.
- [10] Gili Golan and Songling Shan. Nonempty intersection of longest paths in -free graphs. Electron. J. Combin., 25(2):Paper No. 2.37, 5, 2018.
- [11] Juan Gutiérrez. Transversals of longest cycles in chordal and bounded tree-width graphs. In LATIN 2018: Theoretical informatics, volume 10807 of Lecture Notes in Comput. Sci., pages 558–571. Springer, Cham, 2018.
- [12] Adam S. Jobson, André E. Kézdy, Jenő Lehel, and Susan C. White. Detour trees. Discrete Appl. Math., 206:73–80, 2016.
- [13] Felix Joos. A note on longest paths in circular arc graphs. Discuss. Math. Graph Theory, 35(3):419–426, 2015.
- [14] S. F. Kapoor, H. V. Kronk, and D. R. Lick. On detours in graphs. Canad. Math. Bull., 11:195–201, 1968.
- [15] S. Klavžar and M. Petkovšek. Graphs with nonempty intersection of longest paths. Ars Combin., 29:43–52, 1990.
- [16] Dieter Rautenbach and Jean-Sébastien Sereni. Transversals of longest paths and cycles. SIAM J. Discrete Math., 28(1):335–341, 2014.
- [17] C. Thomassen. Planar and infinite hypohamiltonian and hypotraceable graphs. Discrete Math., 14(4):377–389, 1976.
- [18] H-J. Voss. Cycles and bridges in graphs, volume 49 of Mathematics and its Applications (East European Series). Kluwer Academic Publishers Group, Dordrecht; VEB Deutscher Verlag der Wissenschaften, Berlin, 1991.
- [19] H. Walther. Über die Nichtexistenz eines Knotenpunktes, durch den alle längsten Wege eines Graphen gehen. J. Combinatorial Theory, 6:1–6, 1969.
- [20] H. Walther and H-J. Voss. Uber Kreise in Graphen. Deutscher Verlag der Wissenschaften, Berlin, 1974.
- [21] D. B. West. Open problem: Hitting all longest paths, (accessed November 10, 2020). https://faculty.math.illinois.edu/~west/openp/pathtran.html.
- [22] T. Zamfirescu. On longest paths and circuits in graphs. Math. Scand., 38(2):211–239, 1976.
- [23] T. Zamfirescu. Intersecting longest paths or cycles: a short survey. An. Univ. Craiova Ser. Mat. Inform., 28:1–9, 2001.