Intersection Graphs of Non-crossing Paths
Steven Chaplick

TL;DR
This paper explores intersection graphs formed by non-crossing paths on trees, providing characterizations, recognition algorithms, and solutions for domination and Hamiltonian properties in these graph classes.
Contribution
It introduces new characterizations and linear-time algorithms for recognizing and analyzing intersection graphs of non-crossing paths on trees, extending known graph classes.
Findings
Linear-time certifying recognition algorithms for intersection graphs of NC paths
Characterization of minimum connected dominating sets in these graphs
Conditions for Hamiltonian cycles and minimum-leaf spanning trees
Abstract
We study graph classes modeled by families of non-crossing (NC) connected sets. Two classic graph classes in this context are disk graphs and proper interval graphs. We focus on the cases when the sets are paths and the host is a tree (generalizing proper interval graphs). Forbidden induced subgraph characterizations and linear time certifying recognition algorithms are given for intersection graphs of NC paths of a tree (and related subclasses). A direct consequence of our certifying algorithms is a linear time algorithm certifying the presence/absence of an induced claw in a chordal graph. For the intersection graphs of NC paths of a tree, we characterize the minimum connected dominating sets (leading to a linear time algorithm to compute one). We further observe that there is always an independent dominating set which is a minimum dominating set, leading to the…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsAdvanced Graph Theory Research · Computational Geometry and Mesh Generation
11institutetext: Department of Data Science and Knowledge Engineering, Maastricht University, The Netherlands
11email: [email protected]
Intersection Graphs of Non-Crossing Paths††thanks: A preliminary version of this article appeared at WG 2019 [9], and a preprint is available at arxiv.org/abs/1907.00272
Steven Chaplick Part of this research was conducted while the author was employed at Lehrstuhl für Informatik I, Universität Würzburg, and partially supported by DFG grant WO 758/11-1. 0000-0003-3501-4608
Abstract
We study graph classes modeled by families of non-crossing (NC) connected sets. Two classic graph classes in this context are disk graphs and proper interval graphs. We focus on the cases when the sets are paths and the host is a tree (generalizing proper interval graphs). Forbidden induced subgraph characterizations and linear time certifying recognition algorithms are given for intersection graphs of NC paths of a tree (and related subclasses). A direct consequence of our certifying algorithms is a linear time algorithm certifying the presence/absence of an induced claw in a chordal graph.
For the intersection graphs of NC paths of a tree, we characterize the minimum connected dominating sets (leading to a linear time algorithm to compute one). We further observe that there is always an independent dominating set which is a minimum dominating set, leading to the dominating set problem being solvable in linear time. Finally, each such graph is shown to have a Hamiltonian cycle if and only if it is 2-connected, and when is not 2-connected, a minimum-leaf spanning tree of has leaves if and only if ’s block-cutpoint tree has exactly leaves (e.g., implying that the block-cutpoint tree is a path if and only if the graph has a Hamiltonian path).
Keywords:
Clique Trees Non-crossing Models Dominating Sets Hamiltonian Cycles Minimum-Leaf Spanning Trees.
1 Introduction
Intersection models of graphs are ubiquitous in graph theory and covered in many graph theory textbooks, see, e.g., [31, 47]. Generally, for a given graph with vertex set and edge set , a collection of sets, , is an intersection model of when if and only if . Similarly, we say that is the intersection graph of . One quickly sees that all graphs have intersection models (e.g., by choosing, for every , to be the edges incident to ). Thus, one often considers restrictions either on the host set (i.e., the domain from which the elements of the ’s can be chosen), collection , and/or on the individual sets .
In this paper we consider classes of intersection graphs where the sets are taken from a topological space, are (path) connected, and are pairwise non-crossing. A set is (path) connected when any two of its points can be connected by a curve within the set (note: a curve is a homeomorphic image of a closed interval). Notice that, when the topological space is a graph, connectedness is precisely the usual connectedness of a graph and curves are precisely paths. Two connected sets are called non-crossing when both and are connected. Our focus will be on intersection graphs of non-crossing paths.
The most general case of intersection graphs of non-crossing sets which has been studied is the class of intersection graphs of non-crossing connected (NC-C) sets in the plane [41]. These were considered together with another non-crossing class, the intersection graphs of disks in the plane or simply disk graphs. The recognition of both NC-C graphs and disk graphs is NP-hard [41]. More recently [38], disk graph recognition was shown to complete for the existential theory of the reals (); note that all -hard problems are NP-hard, see [46] for an introduction to .
One of the simplest cases of connected sets one can consider are those which reside in , i.e., the intervals of . The corresponding intersection graphs are precisely the well studied interval graphs. Moreover, imposing the non-crossing property on these intervals leads to the proper interval graphs – which are usually (and equivalently) defined by restricting the guests intervals so that no interval strictly contain any other. It has often been considered how to generalize proper interval graphs to more complicated hosts, but simple attempts to do so involving the property that the sets are proper are often uninteresting. For example, the intersection graphs of proper paths in trees or proper subtrees of a tree are easily seen as the same as their non-proper versions. We will see that the non-crossing property leads to natural new classes which generalize proper interval graphs.
We formalize the setting as follows. For graph classes and , a graph is an - graph when each has an such that:
- •
the graph is in , and
- •
is an edge of if and only if .
Additionally, we say that is an - model of where is the host and each is a guest, we will also refer to as the model of . We further state that is a non-crossing-- (NC--) graph when the sets are pairwise non-crossing. In this context the proper interval graphs are the NC-path-path graphs.
Many classes of - graphs have been studied in the literature; see, e.g., [47]. Some of these are described in the table below together with the complexity of their recognition problems and whether a forbidden induced subgraph characterization (FISC) is known. The table utilizes the following terminology. A directed tree (d.tree) is a tree in which every edge has been assigned one direction. A rooted tree (r.tree) is a directed tree where there is exactly one source node. A survey of path-tree graph classes is given in [48].
Two further key graph classes here are the chordal graphs and the split graphs, defined as follows. A graph is chordal when it has no induced cycles of length four or more. A graph is a split graph when its vertices can be partitioned into a clique and an independent set. The split graphs are easily seen as a subset of the chordal graphs.
[TABLE]
Results and outline.
We study the non-crossing graph classes corresponding to graph classes 1–4 given in the table. Section 2 contains background, terminology, and notation concerning intersection models.
In Section 3, we provide forbidden induced subgraph characterizations for the non-crossing classes corresponding to 1–4 and certifying linear time recognition algorithms for them. Interestingly, this implies that one can test whether a chordal graph contains a claw in linear time. (In contrast, for general graphs, the best deterministic claw-detection algorithms run in time [19], and [40], whereas the best randomized algorithm (succeeding with high probability) runs in time [59]; here is the exponent from square matrix multiplication and the is based on the time to compute the product of an matrix and an matrix [26].)
The next two sections concern algorithmic results on domination and Hamiltonicity problems on NC-path-tree graphs. To obtain these results, we use the special structure of NC-path-tree models established in Section 3.1. Note that the problems mentioned below are formalized in the corresponding sections.
In Section 4, our main result is a characterization of the minimum connected dominating sets in NC-path-tree graphs. This leads to a linear time algorithm to solve the minimum connected dominating set problem, which also implies a linear time algorithm for the cardinality Steiner tree (ST) problem. In contrast, the minimum connected dominating set problem is known to be NP-hard on split graphs [58], and, as such, on chordal graphs as well. We further discuss the relationship between the (standard) minimum dominating set problem and the minimum independent dominating set problem on these graphs, observing that both can be solved in linear time on NC-path-tree graphs. Notably, the minimum dominating set problem is NP-hard on PT graphs [6], and split graphs [15], but it is polynomial time solvable on RPT graphs [6]. Further references and background on domination problems are given in Section 4.
In Section 5, we again consider NC-path-tree graphs but now study the Hamiltonian cycle (HC) problem and minimum-leaf spanning tree problem (which generalizes the Hamiltonian path (HP) problem), on them. We show that 2-connectedness implies that each plane drawing of an NC-path-tree model leads to a distinct HC, and from each such plane drawing, an HC can be found in linear time. When such a graph is not 2-connected (i.e., when it has a cut-vertex) it cannot have an HC, but we can similarly observe a nice spanning substructure. Namely, we show that for any NC-path-tree graph containing a cut-vertex, its block-cutpoint tree having leaves characterizes the presence of an -leaf spanning tree in . For example, as a special case, we obtain that ’s block-cutpoint tree is a path (i.e., has at most two leaves) if and only if has an HP. Our characterization also leads to a linear time algorithm for the minimum-leaf spanning tree problem. Note that, the HC and HP problems are NP-complete on strongly chordal split graphs [49], and DPT graphs [51], but easily solved (and similarly characterized) on proper interval graphs [3].
We conclude with avenues for further research.
2 Preliminaries
Notation.
Unless explicitly stated otherwise, all the graphs we discuss in this work are connected, undirected, simple, and loopless. For a graph with a vertex , we use to denote the neighborhood of , and to denote the closed neighborhood of , i.e., . The subscript will be omitted when it is clear. For a subset of , we use to denote the subgraph of induced by . For a set of graphs , we say that a graph is -free when does not contain any as an induced subgraph.
For graph classes and , and an - model of a graph , we use the following notation. We refer to elements of as vertices and use symbols and to refer them whereas we call elements of nodes and use , , and to refer to them. For a node of we use to denote the set of vertices in where contains . Observe that every set induces a clique in . Note that Section 3.1 defines the terms terminal, junction, and mixed that are also used in later sections of the paper.
Several special graphs are named and depicted in Fig. 1 along with models of them. We will refer to these throughout this paper. Of particular note is the middle graph, aka the claw, where we will refer to its degree 3 vertex as its central vertex.
Twin-free Graphs.
For a graph , two vertices and are called twins when they have the same closed neighborhood, i.e., . Note that, for the MDS problem, it is an easy exercise to show that it suffices to consider twin-free graphs. Also, as the vertex set of a graph can be easily partitioned into its equivalence classes of twins in linear time, one can distill the relevant twin-free induced subgraph of in linear time.
Chordality and Clique Trees.
This area is deeply studied and while there are many interesting results related to our work, we only pick out a few concepts and results which are useful in this paper. The starting point is that the chordal graphs are well-known to be the tree-tree graphs [8, 27, 56].
For a chordal graph , a clique tree of has the maximal cliques of as its vertices, and for every vertex of , the set of maximal cliques containing induces a subtree of . In other words, a clique tree of is a tree-tree model of whose nodes are in bijection with the maximal cliques of . Clique trees are very useful when discussing models where the host graph is a tree. When a graph has a tree-tree [8, 27, 56], path-tree [29], path-d.tree [48], path-r.tree [28], or path-path [24] model, then it also has one that is a clique tree. Such results are also summarized in [47].
We establish similar clique tree results for the corresponding NC graphs when the guests are paths. However, we remark that when the guests are trees, we cannot rely on clique trees. For example, the claw () is an NC-tree-tree graph, but it does not have an NC-tree-tree model that is a clique tree; in particular, in the center of Fig. 1, we depict two tree-tree models of the claw: one is the only clique tree (which is readily seen to fail the NC condition due to the point in the “middle” node) and the other is an NC-tree-tree model.
Essential to the linear running time of our algorithms is the following property of maximal cliques of chordal graphs, and ultimately clique trees. For a chordal graph , [31]. This implies that the total size of a clique tree is . So, any algorithm that is linear in the size of is also linear in the size of . Additionally, one can produce a clique tree of a chordal graph in linear time [4, 25]
One final aspect of clique trees which is relevant for us is the study of chordal graphs with unique clique trees [42]. One observation that they made is that claw-free chordal graphs have unique clique trees. This is relevant for us because, as we will see in Section 3, the claw-free chordal graphs are precisely the NC-path-tree graphs. The uniqueness of the clique trees of proper interval graphs (a subclass of claw-free chordal graphs) was also observed (later) in [36]. In fact, a very recent paper [32] specifically studies the claw-free chordal graphs, providing a logarithmic-space isomorphism test while also re-proving that claw-free chordal graphs have unique clique trees.
3 Non-crossing Paths in Trees: Structure and Recognition
In this section we characterize and recognize classes of intersection graphs of non-crossing paths in trees; namely, the classes of the following types: NC-path-tree, NC-path-d.tree, NC-path-r.tree, and NC-path-path. We first note that the claw () is not an NC-path graph regardless of the host.
Observation 1
If is an NC-path graph, then is claw-free.
Proof
Suppose contains a claw with central vertex and pendant vertices , , . Let be a path- model of where . Clearly, , and are disjoint. As such, at most two of them include an endpoint of . Thus, for some , is disconnected.
This section proceeds as follows. The NC-path-tree graphs are shown to be the claw-free chordal graphs and the structure of NC-path-tree models is described. From this structure, we then show that NC-path-d.tree NC-path-r.tree (claw,3-sun)-free chordal. This provides, as a nearly direct consequence, the classic result that proper interval graphs are precisely the (claw, 3-sun, net)-free chordal graphs [53, 57]. We conclude with linear time certifying recognition algorithms for NC-path-tree and NC-path-r.tree graphs.
3.1 The Structure of NC-path-tree Models
In this subsection we explore the structure of NC-path-tree models and prove our FISCs along the way. We first take a slight detour to claw-free chordal graphs and prove the FISC of NC-path-tree graphs. In doing so we obtain the first insight into NC-path-tree models. Namely, that it suffices to consider clique trees and that the clique trees of these graphs are unique (see Theorem 3.1). We then take a closer examination of these clique NC-path-tree models and carefully describe the nodes they contain – the results of this examination will be used repeatedly in the rest of the paper.
Theorem 3.1
A graph is claw-free chordal if and only if it is an NC-path-tree graph. Moreover, has a unique clique tree and this clique tree is an NC-path-tree model.
Proof
Observation 1 and chordal graphs being tree-tree graphs imply this.
Let be a clique tree of a claw-free chordal graph . In the two claims below, we first show that every subtree must be a path, and then we show that these paths are non-crossing. These two claims prove the characterization. The uniqueness of the clique tree of every claw-free chordal graph has been shown previously [42].
Claim 1: For every , is a path.
Suppose is not a path. Then contains some claw with central node . However, since is a maximal clique (for each ), for each , there is . Thus induces a claw in .
Claim 2: The set is non-crossing.
Suppose that intersects but does not include either end of . Let and be the endpoints of . Now there must be and . That is, induces a claw in .
We now study the structure of the clique NC-path-tree model of a graph . We introduce some terminology. A node of is called a terminal when it is a leaf of every path which contains it, i.e., is not an internal node of any . For example, the leaves of are terminals. Similarly, a node of is a junction when it is an internal node of every path which contains it, i.e., is not a leaf of any . A node of that is neither a terminal nor a junction is called mixed. The remainder of this section consists of
- •
the main lemma describing in these terms (Lemma 2),
- •
an observation connecting these terms with certain induced subgraphs of (Observation 3), and
- •
a corollary regarding how the terminals can be used to partition into “simple” subtrees (Corollary 1).
Lemma 2
For an NC-path-tree graph , let be its clique NC-path-tree model. A node of must satisfy the following properties:
If is mixed, then has degree two. 2. 2.
If is a junction, then (i) has degree 3 and (ii) ’s neighbors are terminals. 3. 3.
If has degree four or more, then is a terminal.
Proof
We establish the claimed properties in order as follows.
1.: Suppose that has degree at least 3, is a leaf of , and is an internal node of . Further, let be the unique neighbor of in . We see that includes (otherwise, and cross). Let be the neighbor of in and let be a neighbor of which is not in . Since is connected, there exists . Furthermore, is not a leaf of (otherwise, crosses ). Thus, similarly to , belongs to . Now, since and are maximal cliques, there is . Thus for to neither cross nor it must include both and . However, this means and cross.
2.: Suppose that is a junction and let be the neighbors of . Since is a junction, for every , contains exactly two ’s. Thus, if , then – contradicting being a clique tree. Now suppose and consider where (w.l.o.g.) contains and . Since is connected, there must be . Furthermore, (w.l.o.g.) contains (otherwise, and cross). Now, since and are maximal cliques, there is . Notice that must contain and in order for to cross neither nor . Finally consider any . Notice that, in order for to not cross any of , , or , it must contain at least two of . In particular, if , then – contradicting being connected. Thus, (establishing (i)).
Now, suppose that is not a terminal. By 1. and 2.(i), is either a junction with degree 3 or mixed with degree 2.
Case 1: * is a junction with neighbors , , .* Notice that each of and must contain exactly one of or . Moreover, w.l.o.g. they both must contain otherwise they will cross. However, since is a junction, we have vertices such that , and . Moreover, both and must contain either or . Regardless of this choice, we end up with a crossing between either and or and . Thus, junctions cannot be neighbors.
Case 2: * has degree 2 and is mixed.* Let be the neighbor of other than and let be a vertex of where is not a leaf of , i.e., w.l.o.g. . Notice that, must also contain otherwise and would cross. Similarly, since now contains , must also contain otherwise and would cross. However, now a vertex must have but then crosses . Thus, no neighbor of a junction is mixed.
3.: This follows immediately from 1. and 2.(i).
Observation 3
For an NC-path-tree graph , let be its clique NC-path-tree model. Let be a node of of degree at least three.
If is a junction, then contains a 3-sun. Also, if is twin-free, . 2. 2.
If is a terminal, then contains a net.
Proof
We establish the claimed properties in order as follows.
1.: As in the proof of Lemma 2.2.(i) a junction in has three neighbors and vertices such that , and . Additionally, since are maximal cliques, there are vertices such that for each . Moreover, all of these vertices are distinct due to their paths being incomparable. Thus, by considering the 3-sun and its clique tree model given in Fig. 1, it is now easy to see that is a 3-sun. Furthermore, since are terminals, the paths are the only distinct paths which are possible for vertices in . In other words, every vertex in is a twin of one of , , or .
2.: Let be distinct neighbors of . Since is connected and are maximal cliques, we have and for each . The ’s are distinct since is a terminal, and the ’s are distinct since their paths are disjoint. Thus, by considering the net and its clique tree model given in Fig. 1, it is easy to see that is a net.
Corollary 1
For an NC-path-tree graph and its clique NC-path-tree model , the edges of uniquely partition into connected subtrees so that each subtree has one of the following two types.
* consists of the three edges incident to a junction , i.e., is the formed by together with its three neighbors (all of which are terminals).* 2. 2.
* is a path where the two end nodes are terminals and each inner node (if there are any) has degree 2 and is mixed.*
Proof
This follows from Lemma 2 and by simply partitioning the edges of into maximal connected sets delimited by the terminals of .
3.2 Restricted Host Trees
Here we relate and characterize the classes of NC-path-d.tree, NC-path-r.tree, and NC-path-path graphs as stated in the next two theorems. While Theorem 3.3 (concerning NC-path-path graphs) is well known [53, 57], it also follows directly from our study of NC-path-tree graphs.
Theorem 3.2
A graph is (claw,3-sun)-free chordal if and only if it is NC-path-r.tree. Moreover, a graph has an NC-path-d.tree model if and only if it has a clique NC-path-r.tree.
Proof
It is known and easy to see that the 3-sun is not a path-d.tree graph [11]. Thus, NC-path-d.tree is a subclass of (3-sun)-free NC-path-tree = (claw,3-sun)-free chordal by Theorem 3.1.
By Theorem 3.1 and Observation 3, for every (3-sun,claw)-free chordal graph , there are no junctions in the clique NC-path-tree model of . Thus, since every node of with degree at least three is a terminal, rooting at any terminal results in an NC-path-r.tree model.
Theorem 3.3
A graph is (claw,3-sun,net)-free chordal if and only if it is NC-path-path, i.e., proper interval.
Proof
It is known and easy to see that the net is not a path-path (interval) graph [44]. Thus, NC-path-path is a subclass of (net)-free NC-path-r.tree = (claw,3-sun,net)-free chordal by Theorem 3.2.
As in the proof of Theorem 3.2, we note that since is a (net,3-sun)-free NC-path-tree graph, by Observation 3, its unique clique NC-path-tree model has maximum degree two. Thus, the host is a path.
3.3 Recognition Algorithms
From our characterizations, there are straightforward polynomial-time certifying algorithms for the classes of NC-path-tree and NC-path-r.tree graphs. Specifically, since these classes are characterized as chordal graphs with an additional finite set of forbidden induced subgraphs, we can apply a linear time certifying algorithm for chordal graphs [54], and then apply brute-force search for our additional forbidden induced subgraphs. If no forbidden induced subgraph is found, we can simply construct the unique clique tree of the given graph (e.g., using [25]) and it will be an NC-path-tree (or NC-path-r.tree) model as needed to positively certify membership in our classes. However, we can do this more carefully and obtain linear time certifying algorithms as in the next theorem. A direct consequence of our certifying algorithm is that one can determine whether a chordal graph contains an induced claw in linear time. As we mentioned before, this stands in contrast to the case of general graphs where the best deterministic algorithms run in time [19], and [40].
Theorem 3.4
The classes NC-path-tree and NC-path-r.tree (= NC-path-d.tree) have linear-time certifying algorithms. In particular, one can certify the presence/absence of an induced claw in a chordal graph in linear time.
Proof
Recall that the size of a clique tree is (we use this implicitly throughout the following). First, we run a linear-time certifying algorithm for chordal graphs, e.g., [54]. Then, we construct a clique tree in linear-time [25]. We then annotate the clique tree to mark, for each vertex, for each maximal clique in , if is a leaf or an internal node of the model of . This annotation can be carried out in linear time because the total size of the clique tree is . If some vertex uses cliques as leaves, we produce a claw as in Claim 1 of the proof of Theorem 3.1. If there is a mixed node of degree , then we proceed as in the proof of Lemma 2.1. This provides us with a pair of paths that cross in linear time. Then, proceeding as in Claim 2 in the proof of Theorem 3.1, we identify a claw. Now all of the nodes of degree are either terminals or junctions, and we mark them as such. So, if there is a junction with degree , we proceed as in Lemma 2.2.(i) to identify a pair of paths that cross and, as before, report a corresponding claw. Furthermore, if a junction neighbors a non-terminal , we proceed as in Lemma 2.2.(i) to identify a pair of paths that cross and (again) a corresponding claw.
Now, no crossing between two paths can involve a node of degree . So, it remains just to ensure no crossings occur on a path between such nodes. In particular, since the neighbors of all junctions are terminals, such a crossing must occur on a path connecting two terminals (where all of the inner nodes are mixed, and, by Lemma 2, have degree two in ). Let be such a path. Clearly, this path of cliques represents an interval graph. Moreover, we will find a pair of crossing paths on it precisely when this interval graph is not a proper interval graph. Conveniently, this problem is known to be solvable in linear time [16]. However, to obtain linear time in total (when processing all such paths) we need to be a bit careful. Namely, rather than simply checking whether each is a proper interval graph, for each such path we create the following auxiliary graph .
The graph built from a path in where and are terminals and each () is mixed.
The vertex set of is . In , for each , we make a clique. Also, we make adjacent to and is adjacent to . In this way, the size of can easily be seen as linear in the size of . Moreover, since we only consider paths connecting terminals, each vertex and edge of is contained in at most one . Finally, observe that is interval and is a proper interval graph if and only if is as well.
Thus, running the certifying recognition algorithm for proper interval graphs on will provide a claw when is not a proper interval graph, and such a claw is easily mapped back to a claw in .
This completes the case of NC-path-tree graphs. For NC-path-r.tree graphs, we additionally check if contains junctions and proceed as in Observation 3.1. In particular, if there are no junctions, we have an NC-path-r.tree model, and if a junction is present, we easily report a 3-sun to certify that the graph is not an NC-path-r.tree graph as described in Observation 3.1.
4 Domination Problems
A dominating set in a graph is a subset of such that every vertex is either in or adjacent to a vertex in . In the minimum dominating set (MDS) problem a graph is given and the goal is to determine a dominating set in with the fewest vertices. The MDS problem is NP-complete on PT graphs [6], and split graphs [15], and line graphs of planar graphs [60] (which are of course claw-free).
A dominating set in a graph is independent when the subgraph it induces is edgeless. Interestingly, the minimum independent dominating set (MIDS) problem (defined analgously to the MDS problem) can be solved on chordal graphs in linear time [20]. For NC-path-tree graphs, the size of an MIDS is the same as the size of an MDS as shown in the conference version of this paper [9]. However, this is also true for claw-free graphs [1, 22] (which, due to our characterization, trivially form a superclass of the NC-path-tree graphs). This implies the following theorem.
Theorem 4.1
For any NC-path-tree graph , there is an independent dominating set that is also a minimum dominating set. Moreover, such an independent dominating set can be found in linear time.
So, we turn to another natural domination problem on NC-path-tree graphs. A dominating set in a graph is connected when the subgraph it induces is connected. In the minimum connected dominating set (MCDS) problem, the input is a graph , and the goal is to find a connected dominating set with the fewest vertices. The MCDS problem is NP-hard even on line graphs of planar graphs of maximum degree four [50, Lemma 46][34, Theorem 10.5] (a quite restricted subclass of claw-free graphs) but fixed-parameter tractable on claw-free graphs [34]. (In fact, under the Exponential Time Hypothesis [37], there is no constant such that there is a time algorithm to decide whether a line graph has a connected dominating set of size [34, Corollary 10.9].) This problem is also NP-hard on split graphs but can be solved in polynomial time on strongly chordal graphs [58]. Note that the strongly chordal graphs include the NC-d.path-tree graphs, but do not include the NC-path-tree graphs (since, e.g., the 3-sun is an NC-path-tree graph but it is not strongly chordal [21]). Interestingly, it has also been shown [58, Corollary 4.3, Theorem 4.4] that, for chordal graphs, the MCDS problem and the (cardinality) Steiner tree problem, defined next, are equivalent under linear time reductions.
For a graph and subset of , a Steiner tree (ST) of is a subtree of that includes . In the ST problem, the input is a graph and a subset of , and the aim to find a ST of with the fewest vertices.
We will now establish the following theorem and corollary regarding the MCDS and ST problems on NC-path-tree graphs (note that the corollary follows simply from the theorem and [58, Theorem 4.4]).
Theorem 4.2
For any connected NC-path-tree graph , a minimum connected dominating set of can be produced in linear time.
Corollary 2
For any NC-path-tree graph and subset of the vertices of a connected component of , a minimum cardinality Steiner tree can be produced in linear time.
To establish Theorem 4.2 (and Corollary 2), we design an algorithm based on the following lemma. This lemma characterizes every MCDS in an NC-path-tree graph via the terminals and junctions of its clique NC-path-tree model. Recall that, as formalized in Corollary 1, by thinking of the terminals in the clique NC-path-tree model of any NC-path-tree graph as delimiters, the edges of partition into the following two special types of subtrees.
- •
A junction together with its three neighbors (all of which are terminals).
- •
A path where the two end nodes are terminals and each inner node (if there are any) has degree 2 and is mixed. (In the lemma below, we will also differentiate the case when the is a single edge).
Lemma 4
Let be a clique NC-path-tree model a graph where is not a clique. A subset of is an MCDS of if and only if properties 1–3 below are satisfied.
For each junction in , contains exactly two vertices and from so that includes the three (terminal) neighbors of (i.e., and are not twins). 2. 2.
For each edge in where both and are terminals, contains exactly one vertex of . 3. 3.
For each path in where , both and are terminals, and each () has degree 2, we have that the subgraph of induced by is a shortest path connecting each to each .
Proof
The key to this proof is the next simple claim regarding connected dominating sets.
*Claim : A subset of ’s vertices is a connected dominating set if and only if for every edge of , contains at least one vertex of . *
Proof of Claim .
First, since is not a clique, contains at least one edge. Therefore, since every node of is incident to some edge, contains a vertex of for every node of , i.e., dominates . Second, we have that is connected (since it is equal to ). In particular, is connected.
Suppose that there is an edge of where for every , does not belong to . Let and be the two subtrees of obtained by deleting the edge from . Now, since is dominating, it contains a vertex whose model (path) in is contained in and a vertex whose model (path) in is contained in . However, every -path in must contain a vertex of : This contradicts being connected.
The key consequence of Claim is that an MCDS is, equivalently, a smallest set of vertices where every edge of is included in the path of some vertex in . In particular, to characterize the MCDSs, it suffices to independently consider each subtree of as in the edge-partition with respect to terminals stated in Corollary 1 (and, also as slightly more finely enumerated in the statement of this lemma). With this in mind, we proceed with the proof for each item of the enumeration separately.
1.: Here we have to cover the three edges incident to a junction . Clearly, doing so requires at least two paths arising from non-twin vertices. Moreover, the only vertices whose paths contain edges incident to , are those in . Thus, we must pick two non-twin vertices of , and, since is a junction, by doing so we indeed obtain two paths that cover all three edges.
2.: Here, we just need to ensure the edge is covered. Since, is connected, there must be at least one vertex whose path includes this edge. In particular, and it suffices to just take any such vertex.
3.: Finally, we arrive at the somewhat non-trivial case concerning a path in where and are terminals, and each () is mixed (and as such has degree 2).
Let be a vertex in , and let be a vertex in . In claims (a) and (b) below, we establish that (a) for any induced -path in , the models (paths) of the inner vertices cover the edges of (in ); and, (b) that in any MCDS, the vertices whose models (paths) include edges of constitute the inner vertices of an induced -path. Together, these claims indeed imply Property 2 of this lemma since shortest paths are the smallest induced paths.
Claim (a) For any induced -path in , the models (paths) of the inner vertices cover precisely the edges of (in ).
First, observe that and are not adjacent, i.e., and contains inner vertices. Second, observe that, for any inner vertex ( of , is a subpath of since is an induced path and and are terminals. Finally, similarly to the proof of for Claim , since is connected and includes and where and are separated by the path in , we have that ; thus, , completing the proof of this claim.
Claim (b) In any MCDS of , the vertices whose models (paths) include edges of constitute the inner vertices of an induced -path.
Let be the subset of where if and only if contains an edge of . By Claim , and . Moreover, since and are terminals, the union is contained in , i.e., . In particular, induces a proper interval subgraph of .
We now show that induces a path in such that is adjacent to and is adjacent to .
We first establish the adjacency to and . By Claim , , and we pick as any vertex in . Since , we indeed have that is an edge. Notice that, if there is a vertex such that , then either or , i.e., this would contradict the fact that is an MCDS. Thus, is the only vertex of in . (Symmetrically, we have a vertex adjacent to such that .)
To establish that really induces a path, we remark that it suffices to show that is triangle-free. In particular, it is known [18] that a triangle-free interval graph is a caterpillar. Thus, since is a proper interval graph (and as such claw-free—recall Theorem 3.3), if is triangle-free, then it is indeed a path. Moreover, the subpath of constitutes a set of inner vertices of an induced -path in , and thus, by Claim (a) and the minimality of , is precisely this subpath.
We now establish that is triangle-free to show that it is indeed a path, completing the proof of Claim (b). Suppose (for a contradiction) that contains a triangle . By the Helly property of subtrees of a tree, we have that there is such that . However, since each of , , and is a subpath of , without loss of generality, we have that . This contradicts the minimality of , and establishes that is indeed triangle-free. Therefore, is indeed a path and we have established Claim (b).
Finally, as remarked above, combining Claims (a) and (b) establishes Property 3.
Based on the above lemma we will now prove Theorem 4.2, establishing our linear time algorithm for the MCDS problem.
Proof (Proof of Theorem 4.2)
In essence, this is just describing how to efficiently determine the vertices of an MCDS as described by the properties established in Lemma 4. First, as in our certifying recognition algorithm (in the proof of Theorem 3.4), we construct the clique NC-path-tree model of and mark each node as mixed, terminal, or junction. This allows us to partition according to its terminals as in Corollary 1.
Now, as justified by Property 1, for each junction, we simply pick any two non-twin vertices. Let be this set of vertices.
Similarly, as justified by Property 2, for each edge connecting two terminals, we simply pick any vertex whose path contains this edge (actually, the path of any such vertex will be precisely this edge). Let be this set of vertices.
As justified by Property 3, for each path of mixed nodes connecting two terminals in , we will compute an appropriate shortest path in . Of course, here, to obtain a linear running time, we have to be a bit careful. Let be a path in where and are terminals and for each , is mixed (and, as such, has degree 2). Here, we again construct the auxiliary graph (as described in the proof of Theorem 3.4) for this path , and compute a shortest path between the special vertices and . Note that, since is an interval graph, such a shortest path can be computed in linear time [2]. After doing so, we simply keep the inner vertices of such a path for our MCDS. Moreover, as remarked before, the total size of all of these graphs is linear in the size of , thus we can compute a shortest path for each such graph in linear time in total. This gives us the set consisting of the inner vertices from this collection of paths.
Finally, we output the set as our MCDS.
5 Hamiltonian Cycles and Minimum Leaf Spanning Trees
As mentioned earlier, the HC and HP problems are NP-complete on DPT graphs and split graphs. They are also NP-complete on line graphs of biparite graphs, i.e., (claw, diamond, odd-hole)-free graphs [43], where the diamond is the graph obtained by removing one edge from . In contrast, we show that, like proper interval graphs [3], 2-connectivity suffices for Hamiltonicity in NC-path-tree graphs, but additionally, every tracing of a clique NC-path-tree model provides a distinct HC of its graph. We similarly characterize the presence of an HP via an obvious necessary condition in Theorem 5.2 below. This characterization of HPs directly allows us to characterize the number of leaves in a minimum-leaf spanning tree, see Corollary 3, and ultimately provide a linear time algorithm for the minimum-leaf spanning tree problem on NC-path-tree graphs.
Theorem 5.1
An NC-path-tree graph has a Hamiltonian cycle if and only if it is 2-connected and has at least three vertices. Also, for each plane layout of ’s clique NC-path-tree model , a distinct a Hamiltonian cycle of can be constructed in linear time.
Proof
We build on the fact that 2-connected proper interval graphs are not only Hamiltonian but have an HC with quite special structure, established in [3], and described as follows. Consider a proper interval graph . Let be the maximal cliques ordered according to the clique NC-path-path model of . Further, let be a vertex of and let be a vertex of . When is 2-connected there are internally disjoint -paths and such that every vertex of belongs to either or . Importantly for our claimed time bound is that these two paths can be found in linear time [3]. In essence, we will see (through an auxiliary multigraph constructed below) that such paths also occur in 2-connected NC-path-tree graphs by considering the proper interval graphs occurring between terminals.
Now consider a 2-connected NC-path-tree graph and its clique NC-path-tree model . Recall that, as we noted when designing our certifying algorithm for NC-path-tree graphs, for a path in where and are terminals and each inner node is mixed (and consequently of degree 2), the graph is a proper interval graph. Moreover, since is 2-connected, each such subgraph is also 2-connected. Additionally, the graph created from as before is also 2-connected. However, there is one special case where we use a slightly different auxiliary graph (otherwise we simply use the defined before). When , the graph is the clique together with new vertices and where . Now, it is easy to see that each such graph is 2-connected and proper interval, and since and are not adjacent, we have two non-empty disjoint paths that both start with a vertex of , and end with a vertex of . Moreover, as remarked above these two paths can be built in linear time.
We now consider the case when a neighbor of is a junction before completing our construction of the HC. Let the other two neighbors of the junction be and . Due to the fact that are all terminals, the vertices of form three equivalence classes of twins, where:
- •
each vertex in is represented by the path ,
- •
each vertex in is represented by the path , and
- •
each vertex in is represented by the path .
Namely, using we can “traverse” from to , from to , and from back to . Due to the simple structure here, and the fact that partitioning into equivalence classes of twins is a linear time task, it is easy to construct the three steps of such a traversal “around” all junctions in linear time in total.
Based on the above observations, we can now build our HCs. The intuition here is to consider the tree to be drawn crossing-free in the plane, and trace the outline of terminal-to-terminal by using the paths guaranteed by the above arguments. We will encode the family of all such traces by a multigraph formed on the terminals of where each Eulerian tour of will correspond to a distinct HC of . Namely, for each terminal , and each neighbor of in :
- •
if is a terminal, then in , and are connected by two edges (representing the two paths present in the corresponding ).
- •
if is a mixed node and is the terminal so that occurs on the -path in , then, in , and are connected by two edges (representing the two paths present in the corresponding ).
- •
if is a junction and and are its two other neighbors, then in , we have the edges and .
- •
finally, if contains vertices that do not belong to any other (e.g., when is a leaf of ), we also add a self-loop on in and map to this self-loop the vertices of .
We note the following properties of to complete the proof. The edges of partition the vertices of and each edge corresponds to a path in where one end vertex belongs and the other end vertex belongs to . Furthermore, is Eulerian, each Eulerian cycle provides an HC, and describes a plane layout of , i.e., a cyclic order of the edges around each node of so that traces the outline of this plane layout of . Note that, each such plane layout will often arise from multiple Eulerian cycles in , but no two distinct layouts arise from the same cycle.
We now turn to HPs, and ultimately to minimum-leaf spanning trees. Note that, an -leaf spanning tree of a graph is simply a spanning tree of with exactly leaves, and a minimum-leaf spanning tree is a spanning tree having the fewest leaves. Clearly, checking for an HP is a special case of finding a minimum-leaf spanning tree. A natural lower bound on the number of leaves in a minimum-leaf spanning tree comes from looking at the block-cutpoint tree (defined next).
The block-cutpoint tree of a graph contains a node for each cut-vertex of , a node for each maximal 2-connected subgraph (block) of , and its edge set is : is a cut-vertex, and is a block of containing }. It is well-known that can be computed in linear time [35], and is indeed a tree. Clearly, if has an HP, is a path. In the next theorem, we show the converse is also true in NC-path-tree graphs, and further below we generalize this to -leaf spanning trees. The main idea is to observe where the cut-vertices occur in the model and then reuse our Eulerian structure from the previous proof. More generally, if has a spanning tree with at most leaves, then also can have at most leaves. Here, we observe that once we have the characterization for the presence of an HP, the converse of this easily follows, see Lemma 5. In particular, it holds for NC-path-tree graphs, see Corollary 3.
Theorem 5.2
An NC-path-tree graph contains a Hamiltonian path if and only if its block-cutpoint tree is a path. Moreover, when the block-cutpoint tree of is a path, a Hamiltonian path can be produced in linear time.
Proof
As noted above, it suffices to prove the direction. Let be an NC-path-tree graph and let be its clique NC-path-tree model. Recall that, by Theorem 5.1, if has no cut-vertices, it has an HC, and thus also an HP. Therefore, we suppose contains a cut-vertex . Note that must contain an edge such that, for every vertex distinct from , is not an edge of (otherwise, would not be a cut-vertex). The next claim is the key to the proof.
Claim : is precisely the edge and both and are terminals.
Note that cannot contain any junctions since the vertices whose paths use junctions cannot be cut-vertices (recall that, by Observation 3, if contains a junction, is a central vertex of a 3-sun such that the two other central vertices are adjacent and dominate ). Suppose that is not an end-node of , and let be the neighbor of distinct from (note: is mixed and as such has degree 2 by Lemma 2.1). Now, since and are maximal cliques, we have a vertex , but cannot belong to since and is the only path containing . Thus, and and cross. Furthermore, since is the only path that uses , both and must be terminals.
Note that, since is a path (and is not 2-connected), it consists of the two end blocks (containing a single cut-vertex each) and (possibly) some inner blocks containing exactly two cut-vertices each. Clearly, an HP must consist of one path in each block where, in the two end blocks, the cut-vertex is an end vertex of the path, and, in each inner block, the two cut-vertices are the two end vertices of the path.
Let be an end block of , i.e., a leaf of the block-cutpoint tree which contains one cut-vertex . Since is a 2-connected induced subgraph of , has a Hamiltonian cycle by Theorem 5.1. So, to obtain a Hamiltonian path that ends at , we just delete one edge incident to from .
To complete the proof, we will now argue that each inner block of containing two cut-vertices and has a Hamiltonian path that connects to within .
By the claim above, in the clique NC-path-tree model of , each of and is a single terminal node. Let these nodes be and (respectively) in . Consider the path in . Now, consider the Eulerian multigraph as in the proof of Theorem 5.1. Note that, since is a terminal, we can use to construct a path that starts with and ends with a vertex of and visits precisely the vertices in the connected component of that contains . The path is defined analogously. Similarly, for each terminal , we can use to craft a path that visits precisely the vertices whose paths occur strictly within the subtree of that contains . Moreover, this path will start and end with vertices whose paths contain . When is a junction, let be the terminal that neighbors and is distinct from and . Similarly to the case of , we note that there is a path that visits all the vertices “hanging below” and starts and ends with a vertex of . Additionally, due to the three equivalence classes of twins whose paths contain the junction , we can extend this path to a path that starts in a vertex of , ends in a vertex of , and visits every vertex of .
Finally, consider two terminals and () where, for each , is mixed. As in the proof of Theorem 5.1, we again consider the auxiliary graph corresponding to this path. Here, we instead need a Hamiltonian path in that starts and ends in our special vertices and . Fortunately, it is known [3], that such a path does exist and actually only requires that is connected. Namely, we have the path which starts in a vertex of , ends in a vertex of , and visits every vertex of .
Thus, to form a desired Hamiltonian path of that starts with and ends with , we simply concatenate the paths where are the terminals that occur between and . In particular, by forming such a Hamiltonian path for each inner block of , we are done.
We conclude by remarking that the construction of an HP here can be completed in linear time. In particular, it suffices to describe how to obtain linear time on each block separately. For each end block , we simply invoke the HC algorithm (leading to linear time in the the size of ). For each inner block, the paths , and can similarly be constructed by invoking the HC algorithm, leading to linear time in the size of in total. Each of the other paths and can also be constructed in linear time by a simple greedy algorithm [3]. Thus since these paths, which we concatenate in order to make , are constructed from edge-disjoint induced subgraphs of , the total time to construct is also linear in the size of .
We now show how Theorem 5.2 can be generalized to minimum leaf spanning trees. While we expect that the following straightforward lemma has been observed before, we could not find an explicit proof of it, and so we include it here.
Lemma 5
For any graph class closed under taking induced subgraphs, if every graph whose block-cutpoint tree is a path has a Hamiltonian path, then every graph whose block-cutpoint tree has leaves () has a spanning tree with exactly leaves.
Proof
We proceed by induction on the number of leaves in . In the base case has two leaves, and the result follows trivially. So, suppose has leaves. Let be a path in that starts and ends in distinct leaf-blocks and where and share a cut vertex , i.e., is the path . Further, let be the subgraph of induced by the vertices occurring in the blocks on this path, and let be the graph obtained by deleting every vertex of except from . Now, by induction has a Hamiltonian path and has a spanning tree with leaves. Moreover, since is a cut-vertex of , the path contains a subpath whose vertices are precisely the vertices of so that the vertex is an end vertex of . Therefore, by gluing the path to by identifying the occurrence of in both, we obtain a spanning tree of with precisely leaves.
Corollary 3
For any NC-path-tree graph that is not 2-connected (i.e., containing at least one cut-vertex), the number of leaves in a minimum-leaf spanning tree of is if and only if its block-cutpoint tree has exactly leaves.
Proof
Clearly, when the block-cutpoint tree has more than leaves, cannot have an -leaf spanning tree.
This follows directly from Theorem 5.2 and Lemma 5.
6 Concluding Remarks
In this paper we have studied intersection graph classes of non-crossing paths in trees. We have provided forbidden induced subgraph characterizations and recognition algorithms for the natural classes of such graphs. We have further studied and provided efficient algorithms for variations of domination and Hamiltonicity problems on intersection graphs of non-crossing paths in a tree.
It might be interesting to investigate further algorithmic questions on this class that similarly have efficient algorithms on proper interval graphs, but are NP-hard on chordal graphs. A few problems in this context include: role assignment (aka locally surjective homomorphism) testing [33], the simple max-cut problem [5] (here, the problem is still open even for proper interval graphs, see [7]), and the minimum outer-connected dominating set problem [39].
Regarding further NC classes of graphs, a natural next step would be to study the NC-tree-tree graphs. But, as we mentioned before, it is not safe to simply work with clique trees in this case as the claw requires the use of a non-clique tree model. We conjecture that the NC-tree-tree graphs can be characterized as chordal graphs avoiding a finite set of forbidden induced subgraphs. It would also be interesting to see if similar algorithmic results on domination and Hamiltonicity problems can be obtained on this class.
Other host domains have been considered in the literature. Notice that, similar to proper interval graphs being NC-path-path graphs, the proper circular arc graphs are precisely the NC-path-cycle graphs. A simple host graph class that generalizes both trees and cycles is that of cacti. A cactus is a connected graph in which every 2-connected component is a single vertex, a single edge, or a chordless cycle. The intersection graphs of subtrees of a cactus were studied by Gavril [30]. So, one might consider the NC-path/tree/cactus-cactus graphs.
Finally, an alternative view of host domains has been considered quite recently through the notion of -graphs [10, 12, 13, 23], i.e., for a fixed graph , a graph is an -graph when it is an intersection graph of connected subgraphs of a subdivision of . Here, interval graphs are the -graphs and circular-arc graphs are the -graphs. While there is a natural notion of proper -graphs [10] (which indeed restrict -graphs for every ), the more restrictive non-crossing -graphs might have a nicer structure and lead to easier (and faster) algorithms.
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1[1] Allan, R.B., Laskar, R.C.: On domination and independent domination numbers of a graph. Discrete Mathematics 23 (2), 73–76 (1978). https://doi.org/10.1016/0012-365X(78)90105-X
- 2[2] Atallah, M.J., Chen, D.Z., Lee, D.T.: An optimal algorithm for shortest paths on weighted interval and circular-arc graphs, with applications. Algorithmica 14 (5), 429–441 (1995). https://doi.org/10.1007/BF 01192049
- 3[3] Bertossi, A.A.: Finding Hamiltonian circuits in proper interval graphs. Inf. Process. Lett. 17 (2), 97–101 (1983). https://doi.org/10.1016/0020-0190(83)90078-9
- 4[4] Blair, J.R.S., Peyton, B.: An introduction to chordal graphs and clique trees. In: Graph Theory and Sparse Matrix Computation. pp. 1–29. Springer New York, New York, NY (1993)
- 5[5] Bodlaender, H.L., Jansen, K.: On the complexity of the maximum cut problem. Nord. J. Comput. 7 (1), 14–31 (2000), conf version at STACS 1994, doi: 10.1007/3-540-57785-8_189
- 6[6] Booth, K.S., Johnson, J.H.: Dominating sets in chordal graphs. SIAM J. Comput. 11 (1), 191–199 (1982). https://doi.org/10.1137/0211015
- 7[7] Boyaci, A., Ekim, T., Shalom, M.: On the maximum cardinality cut problem in proper interval graphs and related graph classes. Co RR abs/2006.03856 (2020), https://arxiv.org/abs/2006.03856
- 8[8] Buneman, P.: A characterisation of rigid circuit graphs. Discrete Mathematics 9 (3), 205–212 (1974). https://doi.org/10.1016/0012-365X(74)90002-8
