Manuscript Offprint
arXiv:2609.08625Generalized Graph Search Trees
Abstract
Graph search algorithms and their corresponding graph search trees are commonly used in algorithmic graph theory. In recent years, the recognition problem of these graph search trees has received significant attention. So far, the research has focused on two types of search trees: first-in trees that behave like BFS-trees and last-in trees that behave like DFS-trees. The search tree paradigms differ from each other by the parent a vertex is connected to. In first-in trees, it is the first visited neighbor, while in last-in trees it is the last neighbor visited before that vertex. Here, we will generalize these concepts of graph search trees by allowing every preceding neighbor of a vertex to be the parent. We study the complexity of the recognition problem of these generalized graph search trees. We present NP-completeness proofs for most searches. We also show that the problem is trivial for Generic Search and polynomial-time solvable for several searches on bipartite graphs and chordal graphs. We also study the question how fixing the start vertex influences the complexity of the problem.
2012 ACM Subject Classification Theory of computation → Graph algorithms analysis; Theory of computation → Problems, reductions and completeness
Keywords and phrases graph search trees, algorithm, computational complexity
1 Introduction
Graph search algorithms are powerful tools that are used in many graph algorithms as subroutines. The best-known examples of these graph searches are Breadth First Search (BFS) and Depth First Search (DFS), which have a wide range of applications. Further graph search algorithms are Lexicographic Breadth First Search (LBFS) [31], Lexicographic Depth First Search (LDFS) [12] as well as Maximum Cardinality Search (MCS) [39]. Although less well known than BFS and DFS, these searches also have several applications. LBFS is a subroutine of recognition algorithms for several graph classes [7, 14, 15], LDFS has been used to solve several optimization problems on cocomparability graphs [9, 10, 23] and MCS can be used to compute minimal triangulations [5].
In recent years, graph search algorithms have also become objects of research besides their application as subroutines. Several researchers considered problems to determine whether the vertex orderings computed by these graph searches can fulfill certain properties. An extensively studied example is the end-vertex problem [1, 8, 13, 17, 21, 27] that asks whether a search ordering can end in a given vertex (see [16, Table 6.1] and [33, Table 1] for overviews of known results). Other problems considered the spanning trees produced by those graph searches – also called search trees. In such a tree, every vertex except the start vertex of the search is connected to one of its preceding neighbors. In trees produced by BFS, they are connected to their first visited neighbor, while in DFS trees every vertex is adjacent to the neighbor that was visited last before it. Using a notation introduced by Beisegel et al. [2], we call a BFS-like search tree -tree (short for first-in tree) and a DFS-like search tree -tree (short for last-in tree).
The problem of whether a given spanning tree of a graph is a search tree of a certain search was first considered in the 1980s by Hagerup and Nowak for BFS and DFS [18, 19]. The authors showed that both problems can be solved in linear time. In the following years, similar questions have been considered for weighted graphs and parallel algorithms [20, 25, 26]. In
Generalized Graph Search Trees
the last few years, these questions have gained new attention. As mentioned above, Beisegel et al. [2] introduced -trees and -trees, a general framework for those questions. They were able to prove that the -tree recognition problem of LBFS, LDFS, and MCS are NP-complete while the -tree recognition of LDFS can be solved in polynomial time. In the following years, NP-hardness has also been shown for the -tree recognition of DFS [32], as well as the -tree recognition of BFS [32], LBFS [34], and Generic Search [3] (an overview is given in [33, Table 2]). Generic Search is in some sense the most general graph search since it is allowed to take any vertex as the next one as long as one of its neighbors has already been visited.
Both the -tree recognition problem and the end-vertex problem are special cases of the partial search order problem (PSOP) [35]. Here, a graph and a partial order on its vertex set are given and one is asked whether there is a search ordering that extends the partial order.
Our Contribution Although Beisegel et al. [2] only considered the recognition of -trees and -trees, they also introduced generic search trees of a search ordering as those spanning trees that have an edge from every vertex except the start vertex to exactly one of its preceding neighbors. To avoid confusions with search trees constructed by Generic Search, we will call these trees here generalized search trees (or -trees for short). Similar to the recognition problem of -trees and -trees, we will consider the -tree recognition problem where a graph and a spanning tree are given and one has to decide whether there exists a search ordering where is a -tree of . The rooted variant of this problem, where the start vertex of the graph search is fixed, is a special case of the PSOP for partial orders whose Hasse diagram forms a spanning tree of the given graph rooted in a minimal element of the partial order.
We show that the -tree recognition problem is trivial for Generic Search since every spanning tree is a -tree of some Generic Search ordering. Contrary, we show that for (L)BFS, (L)DFS, MCS, and MNS the problem is NP-complete. Furthermore, we study the relationship between the complexity of the rooted and the unrooted problem. While it is easy to see that the unrooted problem can be solved using an algorithm for the rooted problem, the reverse is not true in general. We give a sufficient condition for a graph search and a graph class such that both problems are polynomial-time equivalent. Besides this, we give polynomial-time algorithms for some of the searches for graph classes. We solve the problem for layered searches such as BFS and LBFS on bipartite graphs. Furthermore, we show that a large family of graph searches, called strictly comp-monotone searches, has the same -trees on chordal graphs. As this family includes LBFS, LDFS, MCS and MNS, we can use the polynomial-time algorithms given for the PSOP of MCS on this class [29, 35] to solve the the -tree problem for all these searches. An overview of the results is given in Table 1.
Note that many results of this paper are based on the Bachelor's thesis of the first author [22]. Some of the results given in Section 5.3 are contained in the PhD thesis of the second author [33].
Table 1 Complexity of the -tree recognition problem of different searches on different graph classes. T stands for trivial problems where the answer is always yes. L stands for linear-time algorithms, P for polynomial-time algorithms and NPC for NP-complete. The result marked with an asterisk is only proven for the rooted case where the start vertex of the search is fixed.
| -Tree Results | GS | BFS | LBFS | DFS | LDFS | MCS | MNS |
|---|---|---|---|---|---|---|---|
| All Graphs | T | NPC | NPC | NPC | NPC | NPC | NPC |
| Weakly Chordal | T | ? | ? | NPC | NPC | NPC | NPC |
| Chordal | T | ? | P | NPC | P | P | P |
| Split | T | P | P | NPC* | P | P | P |
| Bipartite | T | P | P | NPC | ? | ? | ? |
| Chordal Bipartite | T | P | P | NPC | ? | ? | ? |
| Complete Bipartite | T | L | L | T | T | T | T |
denotes an edge between and . Given a set , the graph is the subgraph of induced by .
The distance of two vertices and in is the length (i.e., the number of edges) of the shortest -path in . For some , we define as the set containing all vertices whose distance to the vertex in is equal to .
A vertex ordering of is a bijection . We denote by the position of vertex . Given two vertices and in , we say that is to the left (resp. to the right) of if (resp. ) and we denote this by (resp.) ). We write if or holds. Depending on the context, we also use to denote the set of all tuples such that . For any nonempty subset of vertices we denote with the restriction of to the elements of , i.e., .
A subgraph of is spanning if . A clique in a graph is a set of pairwise adjacent vertices and an independent set in is a set of pairwise non-adjacent vertices. A vertex is simplicial if its neighborhood induces a clique. A vertex of a connected graph is a cut vertex if is not connected.
The union of two graphs is the graph that contains all vertices and edges of and of , i.e., and . A cut vertex decomposition of a graph is a three-tuple where and are subgraphs of , and .
A graph is bipartite if its vertex set can be partitioned into two independent sets and . A vertex of a bipartite graph is called biuniversal if it is completely adjacent to one of the two independent sets. A bipartite graph is complete bipartite if all vertices are biuniversal. A graph is weakly chordal if neither nor its complement contains an induced cycle of length . A graph is chordal if it does not contain an induced cycle of length . A vertex ordering of a graph is a perfect elimination ordering if every vertex is simplicial in the graph with . A graph has a PEO if and only if is chordal [30]. A split graph is a graph whose vertex set can be partitioned into sets and such that is a clique in and is an independent set in . It is easy to see that every split graph is chordal.
A tree is an acyclic connected graph. A spanning tree of a graph is an acyclic connected spanning subgraph of . A tree together with a distinguished root vertex is said to be rooted. In such a rooted tree , a vertex is an ancestor of vertex if lies on the unique
Generalized Graph Search Trees
Algorithm 1 Label Search()
Input: A graph Output: A search ordering of
1 begin 2 3 foreach do ; 4 for to do 5 Eligible unvisited and unvisited 5 such that ; 6 let be an arbitrary vertex in Eligible; 7 ; 8 /* assigns to the number */ foreach unvisited vertex do ;
path from to . If is also adjacent to , then is called the parent of in . A vertex is called the child of if is the parent of . The ancestor-relation describes a partial order on the vertex set of , i.e., is an ancestor of .
Graph Searches There are different ways to define what a graph search is. The authors of [2] and [11], for example, define a graph search to be an algorithm that, given a graph as input, produces some vertex ordering of as output. Here, we use a slightly more general definition that omits the algorithmic part. Note that this definition was already used in [36, 37]. We say that a graph search is a function that maps every graph to a set of vertex orderings of . The elements of the set are the -orderings of . Every prefix of an -ordering is called an -prefix. We denote by the orderings of that start with vertex . We call a graph search natural if for each graph and each vertex the set is not empty.
Similarly to what has been done in [35, 37], we introduce most of the graph searches considered here using the meta-algorithm Label Search() given in Algorithm 1. This algorithm is an adaptation of a framework introduced by Corneil et al. [11]. In this algorithm, every vertex has a set that contains the indices of the visited neighbors of in the ordering. The overall idea of the meta-algorithm follows from the fact that the ordering of the vertices that have been already visited by some graph search implies some ordering constraints on the unvisited vertices. To describe these constraints, the framework of LabelSearch() uses a strict partial order on the finite subsets of . Fixing this partial order also fixes the graph search , i.e., the set of a graph contains exactly those vertex orderings of that can be computed by Label Search().
In the following, we will present the strict partial orders that define the graph searches considered in this paper (see [11]). In all these definitions, we assume and to be finite subsets of . We define as if and as the minimal element of , otherwise. We define as 0 if and as maximal element of , otherwise.
The Generic Search (GS) is equal to the Label Search() where if and only if and . Thus, any vertex with a visited neighbor can be visited next.
The partial label order for Breadth First Search (BFS) is defined as follows: if and only if . For the Lexicographic Breadth First Search (LBFS) [31], we consider the partial order with if and only if . Both BFS and LBFS are layered, i.e., a search ordering starting with vertex traverses the sets in ascending order of the distance values . We sometimes use the term layer if we refer to a set for some .
The partial label order for Depth First Search (DFS) is defined as follows: if and only if . For the Lexicographic Depth First Search [12] we use the strict partial order where if and only if .
For Maximum Cardinality Search (MCS) [39] we define with if and only if . The Maximal Neighborhood Search (MNS) [12] uses with if and only if . The definition of that partial orders implies that any LBFS ordering is a BFS ordering, any LDFS ordering is a DFS ordering, any LBFS, LDFS, and MCS ordering is an MNS ordering and the orderings of all presented searches are GS orderings (see [11, Theorem 5.6]).
If we apply a graph search to a graph, then at any point of the computation more than one vertex could have a maximal label. For some results in this paper, we need to break those ties. To this end, -searches have been introduced. Given a graph search and a vertex ordering , the ordering of is the ordering where for each the vertex is the leftmost vertex in among all vertices for which is a prefix of an -ordering of . Note that is well-defined as long as is not empty.
3 G-Trees
We start with the definition of the main structure considered in this paper.
► Definition 3.1 (-tree). Let be graph and be a spanning subgraph of . Let be a vertex ordering of . We call a -tree of regarding if for every vertex it holds that or there exists exactly one with . We will denote the set of all subgraphs of that have the property described above as .
Next, we give some alternative characterizations of -trees. In particular, we show that -trees are spanning trees.
► Lemma 3.2. Let be a graph and be a spanning subgraph of . Let be a vertex ordering of . The following statements are equivalent.
(i)
(ii) is a tree for every .
(iii) is a spanning tree of and is a subset of .
Proof. For better readability, we will denote by and by for every .
(i) (ii): Suppose that is a -tree of regarding . is a graph with exactly one vertex and, thus, a tree. Suppose that for some the graph is a tree. Since is a -tree, we know that there is exactly one vertex adjacent to which is to the left of in . Thus, arises from by adding as a leaf. Since the class of trees is closed under the addition of leaves, it follows that is also a tree.
(ii) (iii): Suppose, is a tree for every . Since and , the graph is a spanning tree of . It remains to show that for every it holds that . Assume for contradiction that there is a tuple such that . Since is a tree, there must be a -w-path within . Since is to the right of in , is not in and, thus, not on . As is a subgraph of , is also a path in . Since , there is a -w-path in that contains . It follows that there are two different -w-paths in . This contradicts the fact that is a tree. Therefore, such a tuple cannot exist and thus holds true.
Generalized Graph Search Trees
: Suppose, is a spanning tree of and is a subset of . Let be a vertex of with . Since is a spanning tree of , there is a unique path in from to . Let be the predecessor of in . This implies that . Since is a subset of , it holds that . If is a neighbor of in with , then is the unique -path in . Using the same argument as above, we conclude that . Thus, is the only neighbor of in with .
Similarly as was done for -trees and -trees in [2], we introduce the -tree recognition problem of a graph search .
► Problem 1 (-tree recognition problem of graph search ).
Instance: Graph , spanning tree of
Question: Is there a vertex ordering such that
We will also consider the rooted -tree recognition problem where we have given a vertex as additional input and ask whether there is an ordering with . Note that the third property of Lemma 3.2 implies that the rooted -tree recognition problem is a special case of the Partial Search Order Problem [35], where one is given a graph and a partial order on the graph's vertex set and asks whether there is a search ordering that is a linear extension of the partial order. For the rooted -tree recognition problem, the partial order's Hasse diagram is a tree rooted in the unique minimal element. Trotter [40] calls such partial orders -trees (short for computer science trees). Even more restrictive, the edges of the Hasse diagram of the partial order are edges in the given graph.
Using the characterization given in Lemma 3.2, we can conclude that every spanning tree is a -tree of Generic Search for every possible root vertex, i.e., the (rooted) -tree recognition problem of Generic Search is trivial.
► Theorem 3.3. Let be a graph, be a spanning tree of and . Then there exists a Generic Search ordering of starting with such that .
Proof. Let be any linear extension of . Property (iii) of Lemma 3.2 implies that is a -tree of regarding . This choice of also guarantees that . It remains to show that is also a Generic Search ordering of . As is a linear extension of , for every vertex its parent in is to left of in . Thus, every vertex but has a neighbor to its left in and, hence, is a Generic Search ordering.
Comparing the complexity of the rooted and unrooted problem It is easy to see that a polynomial-time algorithm for the rooted -tree recognition problem of a graph search implies a polynomial-time algorithm for the unrooted problem since we can apply the algorithm for every possible root. A natural question is under which conditions the inverse implication does also hold. It is not difficult to construct a graph search and a graph class for which the inverse implication is not true, unless .
► Example 3.4. We define the graph search using the meta algorithm given in Algorithm 1. Let if and only if and . In other words, the search works like DFS with the difference that the neighbors of the start vertex are incomparable.
Now let be the class of graphs that contain a universal vertex, i.e., the domination number is equal to one. The -tree recognition problem is trivial on as every vertex ordering starting in the universal vertex is an -ordering and, thus, we can simply use some Generic Search ordering of the given tree starting in the universal vertex.

Figure 1 Example that shows that the search is not self-similar as it does not fulfill condition (i) of Definition 3.5. The orderings and are -orderings of and , respectively. An -ordering of that contains and as subordering has to start with the start vertex of . However, then the search has to follow an DFS ordering on which does not fit to .
Contrarily, the rooted -tree recognition problem of on class is as least as hard as the rooted -tree recognition problem of DFS on general graphs. For a reduction, let be the input of the rooted -tree problem of DFS. We construct graph by adding a universal vertex to and appending a leaf to . We construct by adding the edges and to . Solving the rooted -tree recognition problem of for is equivalent to solving the rooted -tree recognition problem of DFS for . Note that we will prove in Section 4.2 that the rooted -tree recognition problem of DFS is NP-complete.
Here, we present the family of self-similar searches and we will show that the rooted and the unrooted -tree recognition problem of such searches are polynomial-time equivalent on general graphs and on graph classes fulfilling certain conditions.
► Definition 3.5. We call a graph search self-similar on a connected graph if the following statements hold true for every cut vertex decomposition of :
We say is self-similar on a graph class if it is self-similar on every connected graph of . We call a graph search self-similar if it is self-similar on every connected graph .
The first property says that every search ordering of starting in vertex can be combined with any search ordering of . This combination can be arbitrary, i.e., the orderings are not necessarily be concatenated but can be shuffled into each other. The second conditions states that any search ordering of the whole graph that starts in contains a subordering of that is a search ordering starting in .
It can easily be checked that GS, (L)BFS, (L)DFS, MCS, and MNS are self-similar. This does not hold for all instances of Label Search since the search given in Example 3.4 is not self-similar (see Figure 1). The next theorem identifies some sufficient properties of which ensure that LabelSearch() is self-similar.
► Theorem 3.6. Let be a partial order of the finite subsets of . We define to be the graph search LabelSearch(). is self-similar if
(a) for each finite nonempty label it holds that ;
(b) for all labels and and every non-decreasing function it holds that
(c) for all labels it holds that if and are incomparable due to and , then .
Generalized Graph Search Trees
Proof. Throughout this proof, we use the following notation: For every graph , vertex ordering of and let be the set
Note that if was generated by a label search algorithm then is exactly the label of in the iteration in which was visited. It is easy to see that is an element of if and only if
For details, we refer to [11, Property 3.1]. From now, let be an arbitrary graph with cut vertex composition .
Proof of Property (i) of Definition 3.5 Let be an -ordering of starting in and be an -ordering of . We have to prove the existence of an ordering such that is an extension of an . We claim that satisfies this condition, where
Since is by definition an ordering of it suffices to verify that is an extension of and . We do this by arguing inductively that the label search algorithm with the given tie breaker chooses in each iteration either the leftmost unvisited vertex of in or the leftmost unvisited vertex of in . This is trivial in the first iteration. So, let and assume that the above statement holds for all previous iterations. Now let be the set of unvisited vertices of , be the set of all unvisited vertices of and as well as the left most unvisited vertices regarding and , respectively. More formally, it holds that
Furthermore, for every vertex , let be the label of v in the i-th iteration.
▷ Claim 3.7. If is nonempty, then there is no vertex with .
Proof. First, look at the case where is in . Since is the leftmost vertex of in , it is easy to see that in this case and the labels of all vertices are empty. Thus, using Assumption (a) of this theorem, the claim is trivially true. So, in the following, we can assume that is not an element of . We argue indirect. Imagine that there would be an with . We know that in all previous iterations the vertices of were chosen in the same order as in . So, there is a non-decreasing function such that for all with . This fact as well as the fact that and the special structure of imply the following:
Now applying Assumption (b) of this theorem, we obtain that implies . Thus, is not an -ordering of ; a contradiction.
Using the same arguments, one can also prove the following.
▷ Claim 3.8. If is nonempty, then there is no vertex with .
Finally, we can show that follows and .
▷ Claim 3.9. Either or .
Proof. If either or is empty, then Claim 3.9 is a trivial conclusion from Claim 3.7, Claim 3.8 and the definitions of and . So, we may assume and to be nonempty.
Suppose is not . Then there has been an with . Now, let be any element of . If , then we can conclude that by transitivity of . Otherwise, Claim 3.8 implies that and are incomparable and we can use Assumption (b) of this theorem to still conclude that . In any case, the label of dominates all labels of vertices in . Thus, has to be an element of .
If , then there is some such that dominates . The vertex must be an element of since Claim 3.7 forbids for any . However, this implies that . Since , this contradicts Claim 3.7. Thus, it holds .
Proof of Property (ii) of Definition 3.5 Let be an arbitrary -ordering of starting in . We want to prove that is an -ordering of starting in . Due to Assumption (a) of this theorem, we do not visit any vertex without a visited neighbor as long as there are still vertices with visited neighbors. This implies that if starts in , then it has to pass through before it can visit any other vertices of . Thus, starts in .
Now, we want to use the condition formulated in Formula (1) to prove that is an -ordering of . Let be vertices of with . If is an element of , then we use the following argument: We know that is the first vertex of and thus . This already implies . Thus, and are incomparable with respect to .
From now on, we can assume that is not an element of . This implies that all neighbors of and in are vertices of . Since the vertices of are ordered in as they are in , we can find a non-decreasing function such that for all . Therefore, it holds for that
We know that is an -ordering of . This implies that . With the above and assumption (b) of this theorem, we conclude that , i.e., is an -ordering of .
Note that not all assumptions in the above theorem seem to be necessary for self-similarity since violates Assumption (c) but is still self-similar.
Self-similar searches allow for the following result.
Lemma 3.10. Let:
-
be a graph search,
-
be a graph,
-
be a spanning tree of ,
-
be vertex of such that for some ,
Generalized Graph Search Trees
-
be a vertex of such that for any ,
-
be graph such that ,
-
and be a spanning tree of .
If is self-similar on , then the following statements are equivalent:
(i) is a -tree of an -ordering of starting in .
(ii) is a -tree of an -ordering of .
Proof. : It is easy to see that is a cut vertex decomposition of . is self-similar on . Thus, there is an -ordering of such that the order of the vertices of in is the same as in and the order of the vertices of is the same as in . We claim that is a -tree of regarding .
Since the vertices of are ordered in as in , the leftmost vertex of in must be . By the same argument we can conclude that the first vertex of in must be . Especially, the leftmost vertex in is either or . Since is a vertex of , we know that and therefore the leftmost vertex of must be . It remains to show that every vertex with of has exactly one neighbor in that is to the left of in .
If is a vertex of , then we use the fact that is a -tree of regarding which means that there exists exactly one neighbor of in with . By the construction of , we know that is also the only neighbor of in that is to the left of in . If , then all neighbors of in are also in . If , then might have neighbors in that are not contained in . However, we have already seen that is the leftmost vertex of in . In both cases we can conclude the uniqueness of . The same argumentation works if is a vertex of .
: Let be an -ordering of such that is a -tree of regarding . Let be the leftmost vertex in .
First, we consider the case where is a vertex of . Using property of Definition 3.5, we can construct an -ordering of that starts with by reducing to vertices of , i.e., . We claim that is a -tree of regarding . Let be an arbitrary vertex of with . is a -tree of regarding . Therefore, there exists exactly one neighbor of in with . Since is a vertex of and we can conclude that is a vertex of . The vertices of are ordered in as they are in . Consequently, is also the unique neighbor of in with . This already implies the desired properties of and .
Finally, we have to consider the case where is a vertex of . By swapping the roles of and in the above argument we can conclude that is a -tree of of an -ordering starting in . This contradicts the requirements of this lemma. Therefore, this case cannot occur.
The above lemma can now be used to give the main result of this paragraph.
► Theorem 3.11. Let be a self-similar search. Let be a class of graphs with the following property:
There is a linear-time reduction from the rooted -tree recognition problem of on class to the -tree recognition problem of on .
Proof. Let be an instance the rooted -tree recognition problem of where . First we assume that there exists a graph such that has a spanning tree and vertices and with the following properties:
is a -tree of an -ordering of starting in , and
there is no ordering in with -tree .
W.l.o.g. we may assume that and . Lemma 3.10 implies that there is an -ordering of such that if and only if there is an -ordering of starting in such that . The condition on implies that . Furthermore, has linear size in the size of since is of constant size. Thus, is a linear-time reduction from the rooted -tree recognition problem of on class to the -tree recognition problem of on .
It remains to show that a similar reduction can be constructed if there are no , as described above. In that case it holds that is not a -tree of any -ordering of or for every vertex of there exists an ordering such that . Either way, in this case our reduction may map an instance of the rooted -tree recognition problem to the instance of the unrooted problem.
Note that this proof is non-constructive. This means that we know that one of the two described reductions exists but we do not know which of the two is the correct one. It might even be possible that it is undecidable whether the graph with the spanning tree and the vertices and exist in or not. Nevertheless, in all the cases that we consider here it is straightforward to find such a graph .
Theorem 3.11 straightforwardly implies the following result.
► Corollary 3.12. Let be a self-similar search. There exists a polynomial-time algorithm for the rooted -tree recognition problem of if and only if there exists a polynomial-time algorithm for the unrooted -tree recognition problem of .
Note again that the existence of the algorithm does not necessarily imply that we can also specify how it looks like.
4 NP-Hardness
As we have seen in Theorem 3.3, the (rooted) -tree recognition problem of Generic Search is trivial. In this section, we will show that for all other graph searches for which the recognition problem of -trees and -trees have been considered the -tree recognition problem is NP-complete. Note that it trivially holds for these searches that the -tree recognition problem is in NP since we can use a search ordering as certificate.
4.1 BFS and LBFS
To prove the NP-hardness of the -tree recognition problem of BFS and LBFS, we consider the following problem.
► Problem 2 (Beginning-end-vertex problem of graph search ).
Instance: Graph , vertices
Question: Is there an -ordering that starts with and ends in ?
The Beginning-end-vertex problems of BFS and LBFS are NP-complete as was shown by Charbit et al. [8] and Corneil et al. [13], respectively. We will now reduce these problems to the respective -tree recognition problem.
► Theorem 4.1. The (rooted) -tree recognition problem of BFS and LBFS is NP-complete.
Generalized Graph Search Trees

Figure 2 Construction of the proof of Theorem 4.1. Thick edges represent tree edges.
Proof. Let be an instance of the beginning-end-vertex problem of (L)BFS. Let be the set of vertices of whose distance to is maximal. If , then is a trivial no-instance. Therefore, we may assume that . Let . We build a graph from as follows. For every vertex we add vertices and to . We make adjacent to and adjacent to . Furthermore, we add the edge to .
We create a spanning tree of as follows. For every vertex , the tree contains exactly one edge to some vertex with . Furthermore, for every , the tree contains the edges and .
We claim that is -tree of some (L)BFS of starting with if and only if is an end vertex of an (L)BFS ordering of starting with . First assume that is the end-vertex of the (L)BFS ordering of that starts with . W.l.o.g. we may assume that ends with the ordering . Let be the ordering that is constructed from appending to . It is easy to see that is an (L)BFS ordering of , due to the assumption on the ending of . We claim that . For every vertex its parent in has a smaller distance to than . Thus, the parent is to the left of in and, hence, also in . Furthermore, for every , the parent of , namely is to the left of in and the parent of , namely , is to the left of in . Hence, .
Now assume that for some (L)BFS ordering of starting in . For every , it holds that , due to Lemma 3.2. By construction of , it must also hold that . Therefore, the restriction of to the vertices of is an (L)BFS ordering of starting in and ending in .
The hardness of the unrooted problem follows from Theorem 3.11.
4.2 DFS
Instead of proving NP-hardness for the -tree recognition problem of DFS, we give a more general result. To this end, we consider the following class of graph searches.

Figure 3 The NP-completeness construction for the -tree recognition problem of DFS on chordal bipartit graphs. The depicted example is from the case . The connection of a vertex with a box means that the vertex is connected to all vertices in this box. Tree edges are depicted by thick edges.
► Definition 4.2. A graph search is a greedy Hamilton search if it fulfills the following properties:
(a) For every graph and every vertex ordering inducing a Hamiltonian path in it holds that is an -ordering of .
(b) For every graph , every and every it holds that if there is a neighbor of in with , then the successor of in is neighbor of in .
It is clear that DFS is a greedy Hamilton search.
In the following we use a construction that maps every graph to a bipartite graph bip() of similar structure. The construction works by creating new adjacent vertices and for every original vertex and making and adjacent if and only if and are neighbors in . The same construction was discussed by Brandstädt [6]. He gave the following result.
► Lemma 4.3 (Brandstädt [6, Theorem 2.3 (b)]). Let be graph. The graph bip() is chordal bipartite if and only if is strongly chordal.
Furthermore, Müller [24] showed that the Hamiltonian path problem is NP-complete even if the input is restricted to strongly chordal split graphs. With this in mind, we can reduce the Hamilton path problem to solving the -tree recognition problem of any greedy Hamilton search.
► Theorem 4.4. Let be a greedy Hamilton search. Then the rooted -tree recognition problem of is NP-complete even if the input is restricted to chordal bipartite graphs. The same holds for the unrooted problem if is self-similar.
Proof. Let be an arbitrary strongly chordal graph. We construct and using the following steps (see Figure 3 for an illustration). Construct bip() = () as mentioned above. Add a new vertex with edges to all for . Add another new vertex with an edge to . Furthermore, add a vertex and edges to all for . Finally, add a vertex which is adjacent to all for and . We claim that the resulting graph is chordal bipartite. By using Lemma 4.3, we get that bip() is chordal bipartite. We constructed from bip() by successively adding biuniversal vertices and leaves. It is easy to see that these operations maintain the status of being chordal bipartite.
For , we choose the edges and for every as well as . Obviously, this construction can be done in polynomial time. It remains to show that there
Generalized Graph Search Trees
is a Hamiltonian path in if and only if is a -tree of an -ordering of with .
Suppose, there exists a Hamiltonian path in . W.l.o.g. we may assume that it has the form . By the construction of , it follows that is a Hamiltonian path and, therefore, an -ordering of . It is easy to check that is indeed a -tree of .
Suppose is a -tree of an -ordering of with . Applying characterization (iii) of Lemma 3.2 to , , and yields the statement that for all . In the following, we will show that it even holds that . Suppose for contradiction that there is a such that is leftmost in of all vertices in that violate the condition . Due to the fact that is a neighbor of with , we can use that is a greedy Hamilton search. We conclude that the successor of in must be a neighbor of in . Due to the construction of and the fact that , it holds that the successor of in must be for some . As observed above, is to the left of in . Thus, it holds that . This contradicts the choice of .
Next, we show that is to the right of for every . Assume for contradiction that for some . We know that is a neighbor of in . As is a greedy Hamilton search, the successor of in is a -neighbor of . The neighborhood of in consists of the vertices and . Since , the successor of in is one of . However, this contradicts the fact that holds for all .
Summarizing, it holds that where is a permutation of . For every , vertex is a neighbor of and . Since is a greedy Hamilton search, we conclude that and are neighbors for every . The construction of yields that is a Hamiltonian path in .
Note that the union of two chordal bipartite graphs having only one vertex in common is chordal bipartite. Using Theorem 3.11, we can conclude the hardness of the unrooted case if is self-similar.
The above proof can be easily adapted to show hardness in the case where is a split graph.
► Theorem 4.5. Let be a greedy Hamilton search. Then the rooted -tree recognition problem of is NP-complete even if the input is restricted to split graphs.
Proof. We construct and as described in the proof of Theorem 4.4 with the sole difference that we add additional edges to make a clique in . Note that form an independent set of and thus is a split graph.
The arguments we provided in the proof of Theorem 4.4 can again be used to show that is a -tree rooted in of if and only if includes a Hamilton path.
Note that split graphs do not fulfill the property given in Theorem 3.11. Hence, we can not simply extend the result to the unrooted case. Nevertheless, the superclass of chordal graphs fulfills the property which implies the following.
► Corollary 4.6. Let be a greedy Hamilton search. Then the rooted -tree recognition problem of is NP-complete even if the input is restricted to chordal graphs. The same holds for the unrooted problem if is self-similar.

Figure 4 The NP-completeness construction for the -tree recognition problem of MNS. The depicted graph is for . In both boxes only non-edges are displayed by dashed lines. The connection of a vertex with a box means that the vertex is connected to all vertices in this box. Tree edges are depicted by thick edges. Note that this figure is an adaption of a figure given in [2].
4.3 LDFS, MCS, and MNS
We adapt a proof given in [2] for the NP-completeness of the -tree recognition problem of that searches. We use a polynomial-time reduction from 3-SAT. Let be an instance of 3-SAT with the set of literals and the clauses . We construct the corresponding graph as follows (see Figure 4 for an example). Every literal and every clause is represented by a vertex with the same name. The literal vertices induce the complement of the matching in which is matched to for every . The clause vertices are pairwise non-adjacent and every vertex is adjacent to each literal vertex, except those representing the literals of the clause for every . Additionally, we add the vertices , and . The vertices , and are adjacent to all literal vertices and all clause vertices while is adjacent to all literal vertices. Finally, we add the edges , and . The spanning tree of consists of all edges incident to and the edges and .
► Lemma 4.7. If is a -tree of an MNS ordering of with , then vertex is to the left of every clause vertex in .
Proof. As is the parent of in if is rooted in , it follows that has to be to the left of in . It holds that and all clause vertices are elements of . Thus, if some clause vertex is to the left of in , vertex is also to the left of in ; a contradiction.
► Lemma 4.8. If is a -tree of an MNS ordering of with , then and forms an assignment of .
Proof. In any -tree of it holds that is adjacent to . Therefore, has to be or . If equals , then the next two vertices will be vertices that are adjacent to and ( and/or some literal vertices). At least one of these two vertices has as parent in and, thus, has to be to the right of in ; a contradiction. Therefore, the second vertex of is . Now has to visit some vertex that is neighbor of both and . Due to Lemma 4.7, this vertex has to be a literal vertex. As long as there are variables whose two literal vertices are not visited so far, these literal vertices have the unique maximal label (except from clause vertices which cannot be visited before , due to Lemma 4.7). Therefore, visits a whole assignment after and .
Generalized Graph Search Trees
► Lemma 4.9. A 3-SAT instance has a satisfying assignment if and only if is an -tree of some MNS (MCS, LDFS) ordering of starting with vertex .
Proof. First we prove that has a fulfilling assignment if is a -tree of some MNS ordering of starting with . As we have seen in Lemma 4.8, the ordering visits after and then it visits an assignment of . If this assignment does not fulfill , then there is a clause vertex which is adjacent to all vertices that were visited so far. On the other hand, all unvisited literal vertices and and have at least one visited non-neighbor. Therefore, the next vertex that is visited by is a clause vertex and, thus, there is a clause vertex that is to the left of in ; a contradiction to Lemma 4.7.
Now assume that there is a fulfilling assignment of . We construct an LDFS (MCS) ordering with -tree as follows. We start in , then we choose and then we choose the literal vertices that correspond to . As these vertices form a clique, this is a valid prefix of MCS and LDFS. Since is a fulfilling assignment, every unvisited literal vertex and every clause vertex has at least one non-neighbor that was already visited. The vertices and have exactly one visited non-neighbor (vertex ). Therefore, has the maximal MCS label and can be visited next by MCS. It is easy to see that forms a -tree of any ordering starting with these vertices. For LDFS we observe that and are adjacent to all visited literal vertices while all other unvisited vertices are not adjacent to at least one of them. Therefore, the LDFS label of and is also maximal and can be chosen next. This completes the proof.
Note that the graph that we have constructed is an induced subgraph of the graph that was constructed for the proof of Theorem 5.1 in [2]. As this graph is weakly chordal, our graph is it as well. Combining this fact with Lemma 4.9, we get the NP-completeness of the rooted problem. We observe that the union of two weakly chordal graphs that have exactly one vertex in common is also weakly chordal. Therefore, Theorem 3.11 also implies the NP-completeness of the unrooted problem.
► Theorem 4.10. The (rooted) -tree recognition problem of LDFS, MCS, and MNS is NP-complete even if the input is restricted to weakly chordal graphs.
5 Polynomial-time Algorithms
5.1 Layered Searches and Bipartite Graphs
► Lemma 5.1. Let be a layered search, be a bipartite graph, , and . For all vertices of it holds that .
Proof. Let . Suppose is not empty. Let be an element of with minimal distance to in . Furthermore, let be the predecessor of in the -path in . By the choice of , it holds that and, thus, . As and are neighbors in , it holds that . Since , it holds and, thus, . As is bipartite, it is not possible that . As a consequence, we have . However, is a layered search and, thus, the above implies that is to the left of in , a contradiction to the fact that is a -tree of and the choice of .
This lemma implies a characterization of -trees of layered searches on bipartite graphs.
► Theorem 5.2. Let be a natural layered graph search, be a bipartite graph, be a spanning tree of and . The following statements are equivalent:
(i) There exists an -ordering of such that starts in and is -tree of .
(ii) For all vertices it holds that the distances of and in is equal to the distance of and in .
(iii) is a -tree of every -ordering of starting in .
Proof. follows from Lemma 5.1. So, suppose that holds. Let be an arbitrary -ordering of starting in . Let be two distinct vertices of such that lies on the -path in . It follows that the distance of and in is smaller than the distance of and in . Using , it follows that the same holds for the distances of these vertices in . Since is a layered search, has to be to the left of in . This implies .
As is a natural graph search, is not empty. Hence, holds trivially.
As the distances from the start vertex can be computed in linear time, the theorem implies the following running time bound.
► Corollary 5.3. The rooted -tree recognition problem of a natural layered graph search is linear time solvable if the input is restricted to bipartite graphs.
5.2 Complete Bipartite Graphs
Although the class of complete bipartite graphs seems to be quite restrictive, the Partial Search Order problem of DFS, LDFS, and MCS is NP-complete on this class [4, 35]. We will show here that this does not hold for the -tree recognition. To this end, we show that the -tree recognition problem is trivial for the following family of graph searches that includes these three searches.
► Definition 5.4. Let be a complete bipartite graph with bipartition and let be a vertex ordering of . Let be the largest index such that and let be the largest index such that . Let . The ordering is alternating if for all it holds that if and only if .
We say that a graph search can alternate on if every alternating vertex ordering of is an -ordering of .
► Theorem 5.5. Let be a complete bipartite graph and let be graph search that can alternate on . Then for each vertex and each spanning tree of there is an ordering such that .
Proof. We assume in the following that is rooted in . We first mark all vertices as inactive. Now we visit vertex . Whenever a vertex is visited, all its children in are marked as active while is marked as inactive. The set contains those neighbors of in that are active if there is any unvisited neighbor of . Otherwise, contains all the active non-neighbors of . If there is a vertex in that is not a leaf in , then we visit one of these vertices next. Otherwise, we visit an arbitrary vertex in .
We claim that this algorithm computes an -ordering with . First we show that there is always a vertex in unless all the vertices of have already been visited. First assume that there is no unvisited neighbor of . Then all vertices of the partition set not containing are already visited. In that case, for all vertices in the partition set of it holds that their parent in has already been visited as those parents are contained in the other partition set. Hence, every unvisited vertex is active and, thus, it is contained in .
Therefore, we may assume that there are unvisited neighbors of . Let be the vertex visited before . Assume for contradiction that there is no active neighbor of . As our
Generalized Graph Search Trees
algorithm only visits vertices that are active and vertices become only active when their parent is visited, no child of in can be visited before . After is visited, all children of are active. As we have assumed that there is no active neighbor of , it must hold that is a leaf in . Let be some unvisited neighbor of . Consider the path from to in . Let be the first vertex on that has already been visited. The child of on the path from to is an active vertex. Therefore, is not a neighbor of and, thus, not equal to . However, has a child in since it is not equal to . This is a contradiction since was visited before by the algorithm but both and were active neighbors of and is a leaf in but is not.
Since vertices are only visited if their parent has already been visited, is a -tree of . By the choice of , is an alternating ordering and, thus, an -ordering of .
It is easy to see that DFS, LDFS, MCS, and MNS can alternate on every complete bipartite graph.
► Corollary 5.6. Every spanning tree of a complete bipartite graph is a -tree of a DFS ordering, an LDFS ordering, an MCS ordering and an MNS ordering.
This does not hold for layered searches. Instead, the following characterization holds.
► Theorem 5.7. Let be any natural and layered graph search. A spanning tree of a complete bipartite graph is a -tree of rooted in if and only if .
Proof. Let and be the two sets of the bipartition of . First assume that for some vertex . W.l.o.g. we may assume that . We start the search ordering of in . Since is layered, is followed by all vertices of in some ordering. As is adjacent to all of these vertices in , this does not contradict the edges of . Since the remaining vertices of have their parents in , this ordering has as its -tree.
Now assume that is a -tree of an -ordering starting in some vertex . Again, we may assume w.l.o.g. that . As is layered, is followed by the vertices of in . Therefore, is the only neighbor of the vertices of that is to the left of them in . This implies that has to be the parent of every vertex of in .
5.3 Chordal Graphs
Both the -tree and the -tree recognition problem of a large family of graph searches have been shown to be polynomial-time solvable on chordal graphs [2]. Using known results on the Partial Search Order problem, we can show the same holds for the -tree recognition of MCS. Rong et al. [29] give an time algorithm for the PSOP on chordal graphs with vertices. For split graphs, this can be improved to linear time [35]. These results imply the following.
► Proposition 5.8. Let be a graph with vertices. The rooted -tree recognition problem of MCS can be solved for
-
in time if is a chordal graph, and
-
in time if is a split graph.
In the remainder of this section we will generalize this result as it was done for -trees and -trees [2]. We first define the family of strictly comp-monotone graph searches.
The concrete running time bound is only given in a preliminary arXiv version of the paper [28].
Beisegel et al. [2] defined the family of edge-forced PEO-finders. This family is equivalent to the strictly comp-monotone searches when chordal graphs are considered.
► Definition 5.9. A vertex ordering of a graph has the comp-inclusion property if for each pair with such that and are part of the same component of it holds that is not a strict subset of . A graph search has the comp-inclusion property if every -ordering of every graph has the comp-inclusion property.
A graph search has the comp-tie property if for each graph , each (possibly empty) -prefix of and each pair of vertices which are in same component of the following holds: If , then is an -prefix of if and only if is an -prefix of .
A graph search is called strictly comp-monotone if it has both the comp-inclusion property and the comp-tie property.
Shier [38] defined the search Maximal Element in Component Scheme (MEC). It chooses a vertex next whose set of visited vertices is inclusion maximal among all the vertices in the same component of the graph that is induced by the unvisited vertices. Thus, MEC is the most general graph search having the comp-inclusion property. Shier [38] showed that a vertex ordering of a chordal graph is a PEO if and only if it is a MEC ordering. This implies the following theorem.
► Theorem 5.10 (see Shier [38, Theorem 2]). A vertex ordering of a chordal graph is a PEO of if and only if has the comp-inclusion property.
Thus, graph searches having the comp-inclusion property compute PEOs of chordal graphs.
► Corollary 5.11. For every graph search having the comp-inclusion property, every -ordering of a chordal graph is a PEO of .
In the following, we will show that for all comp-monotone graph searches, the set of rooted -trees of a chordal graph is the same. This has been shown by Beisegel et al. [2] for -trees and -trees. We will need the following lemmas.
► Lemma 5.12 (Beisegel et al. [2, Lemma 6.3]). Let be a chordal graph and let be a PEO of . Let be an induced path of . If is the leftmost vertex of in , then .
► Lemma 5.13 (Shier [38, proof of Theorem 2]). Let be a chordal graph and let be a PEO of . Let and let be the connected component of containing . Then for every it holds that .
Now we are able to prove that strictly comp-monotone graph searches behave very similar on a chordal graph if they are given the same tie-breaker. Let be an arbitrary vertex of the chordal graph. Consider the component containing vertex that is induced by the vertices to the right of in such a search ordering. We show that this component is independent from the particular search and only depends on the tie-breaker.
► Lemma 5.14. Let be a chordal graph and be a vertex ordering of . Let and be two strictly comp-monotone graph searches and let and . For every , let , let and let and be the components of and , respectively, containing . Then for every vertex , is equal to .
Generalized Graph Search Trees
Proof. Assume for contradiction that the statement does not hold. Let be the leftmost vertex in such that . First note that, by Corollary 5.11, both and are PEOs of .
Claim 5.15. If for it holds that , then it holds for the leftmost vertex in that .
Proof. Let be an induced path from to in . Since is the leftmost vertex of in , it follows from Lemma 5.12 that all inner vertices of are to the left of in . By the choice of , all these inner vertices are elements of and, thus, they are to the right of in . If would also be to the right of in , then all vertices of except would be to the right of in and, thus, would be a path in ; a contradiction to the fact that . Therefore, is to the left of in . Hence, all the vertices of except are to the right of in and, thus, .
Claim 5.16. .
Proof. Assume for contradiction that this is not the case. Since , we then know that . Let be the leftmost vertex of in . Due to Claim 5.15, and, thus, . By the choice of , it holds that . Thus, . Therefore, and . This is only possible if . However, then ; a contradiction to the fact that
Let be the leftmost vertex of in .
Claim 5.17. .
Proof. Let be the leftmost vertex of in . Claim 5.15 implies that and, thus, is to the left of in . Since is to the left of in (or is equal to ), it also holds that is to the left of in .
Let be an arbitrary vertex in . We distinguish two cases. First assume that . Then since . This implies that and, hence, . Now assume that . Then , due to the choice of .
Thus, in any case all the vertices of are to the right of in . Hence, the path between and in is also contained in and, therefore, .
Claim 5.18. .
Proof. Let . It holds that and, since , it holds that . Since , the choice of implies that and, as , it holds . Combining this with Claim 5.17, we see that . By Lemma 5.13, is also a neighbor of . Thus, .
Since , the comp-inclusion property implies that is not a strict subset of . Therefore, equals .
Since , it holds that . Combining the comp-tie property of and Claim 5.18, we can deduce that . Due to Claim 5.17, it holds that . Therefore, has chosen before although both vertices are in the same component of and is to the left of in tie-breaker . The comp-inclusion property of implies that the neighborhood of in was not a strict subset of the neighborhood of in . The comp-tie property implies that these neighborhoods are not identical. Therefore, there is a vertex with . As is to the left of in , Lemma 5.13 implies that vertex is to the right of in . Since and , it holds that . However, since . Thus, . Since , this contradicts the choice of . Therefore, cannot exist and is empty. This contradicts Claim 5.16.
Now it is easy to show that the forward neighborhood of a vertex is always the same and is ordered in the same way if we use strictly comp-monotone searches with the same tie-breaker on a chordal graph.
► Theorem 5.19. Let be a chordal graph and be a vertex ordering of . Let and be strictly comp-monotone graph searches and let and . Then for every vertex it holds that:
Furthermore, the vertices of are ordered identical in and .
Proof. Let and be defined as in Lemma 5.14. Any neighbor of that is not to the left of in is in . By Lemma 5.14, it holds that and, thus, for every . By Corollary 5.11, is a clique. Combining this with Lemma 5.14 shows that the vertices of are ordered identical in and .
The following result is a direct consequence of this theorem.
► Theorem 5.20. Let and be two strictly comp-monotone graph searches and let be a vertex ordering of . Let and . Then the sets and are equal.
Proof. Let . Let be an arbitrary vertex of and let be the parent of in . Then is to the left of in . Due to Theorem 5.19, is also to the left of in . Therefore, every parent is to the left of its children in . By Lemma 3.2, is also in . The reverse direction works analogously.
Thus, we have proven that strictly comp-monotone graph searches have all the same rooted -trees on a chordal graph. Combining this with Proposition 5.8 leads to the main result of this section.
► Theorem 5.21. Let be a strictly-comp monotone graph search and let be a graph with vertices. The rooted -tree recognition problem of can be solved for
-
in time if is a chordal graph, and
-
in time if is a split graph.
6 Conclusion
We have introduced the -tree recognition problem of graph searches and we were able to prove that it is NP-complete for all common searches except for Generic Search where it is trivial. Furthermore, we studied these problem for several graph classes. Some interesting cases that we have to leave open are the BFS case for chordal graphs and the cases of LDFS, MCS, and MNS for (chordal) bipartite graphs.
One further direction is the consideration of parameterized algorithms. Beisegel et al. [3] have shown that the -tree recognition problem of Generic Search parameterized by the number of leaves of the given spanning tree can be solved in XP time and is W[1]-hard. It is shown in [35] that the Partial Search Order problem of MCS and MNS can be solved in XP
Generalized Graph Search Trees
time when parameterized by the width of the partial order. This implies the same result for the -tree recognition problem of these searches when parameterized by the number of leaves. However, it remains open whether these algorithmic results can be improved to FPT time. Furthermore, there are no results for the -tree, -tree, or -tree recognition problems of BFS and DFS when parameterized by the number of leaves, except from those that follow directly from the polynomial-time solvability of the problem.
Another open question concerns the self-similar searches introduced in Section 3. In Theorem 3.6, we presented sufficient conditions on the partial order such that LabelSearch() becomes self-similar. As observed these conditions are not characterizing as MNS is self-similar but does not fulfill the third condition. We leave open whether there is a nice characterization of self-similar instances of LabelSearch.
References
1 Jesse Beisegel, Carolin Denkert, Ekkehard Köhler, Matjaž Krnc, Nevena Pivač, Robert Scheffler, and Martin Strehler. On the end-vertex problem of graph searches. Discrete Mathematics & Theoretical Computer Science, 21(1), 2019. doi:10.23638/DMTCS-21-1-13. 2 Jesse Beisegel, Carolin Denkert, Ekkehard Köhler, Matjaž Krnc, Nevena Pivač, Robert Scheffler, and Martin Strehler. The recognition problem of graph search trees. SIAM Journal on Discrete Mathematics, 35(2):1418–1446, 2021. doi:10.1137/20M1313301. 3 Jesse Beisegel, Ekkehard Köhler, Fabienne Ratajczak, Robert Scheffler, and Martin Strehler. Graph Search Trees and the Intermezzo Problem. In Rastislav Královič and Antonín Kučera, editors, 49th International Symposium on Mathematical Foundations of Computer Science (MFCS 2024), volume 306 of LIPIcs, pages 22:1–22:18, Dagstuhl, 2024. Schloss Dagstuhl – Leibniz-Zentrum für Informatik. doi:10.4230/LIPIcs.MFCS.2024.22. 4 Jesse Beisegel, Fabienne Ratajczak, and Robert Scheffler. Computing Hamiltonian paths with partial order restrictions. ACM Transactions on Computation Theory, 17(1), 2025. doi:10.1145/3711844. 5 Anne Berry, Jean R.S. Blair, Pinar Heggernes, and Barry W. Peyton. Maximum cardinality search for computing minimal triangulations of graphs. Algorithmica, 39(4):287–298, 2004. doi:10.1007/s00453-004-1084-3. 6 Andreas Brandstädt. Classes of bipartite graphs related to chordal graphs. Discrete Applied Mathematics, 32(1):51–60, 1991. doi:10.1016/0166-218X(91)90023-P. 7 Anna Bretscher, Derek Corneil, Michel Habib, and Christophe Paul. A simple linear time LexBFS cograph recognition algorithm. SIAM Journal on Discrete Mathematics, 22(4):1277–1296, 2008. doi:10.1137/060664690. 8 Pierre Charbit, Michel Habib, and Antoine Mamcarz. Influence of the tie-break rule on the end-vertex problem. Discrete Mathematics & Theoretical Computer Science, 16(2):57–72, 2014. doi:10.46298/dmtcs.2081. 9 Derek G. Corneil, Barnaby Dalton, and Michel Habib. Ldfs-based certifying algorithm for the minimum path cover problem on cocomparability graphs. SIAM Journal of Computing, 42(3):792–807, 2013. doi:10.1137/11083856X. 10 Derek G. Corneil, Jérémie Dusart, Michel Habib, and Ekkehard Köhler. On the power of graph searching for cocomparability graphs. SIAM Journal on Discrete Mathematics, 30(1):569–591, 2016. doi:10.1137/15M1012396. 11 Derek G. Corneil, Jérémie Dusart, Michel Habib, Antoine Mamcarz, and Fabien De Montgolfier. A tie-break model for graph search. Discrete Applied Mathematics, 199:89–100, 2016. doi:10.1016/j.dam.2015.06.011. 12 Derek G. Corneil and Richard M. Krueger. A unified view of graph searching. SIAM Journal on Discrete Mathematics, 22(4):1259–1276, 2008. doi:10.1137/050623498.
13 Derek G. Corneil, Ekkehard Köhler, and Jean-Marc Lanlignel. On end-vertices of Lexicographic Breadth First Searches. Discrete Applied Mathematics, 158(5):434–443, 2010. doi:10.1016/j.dam.2009.10.001.
14 Derek G. Corneil, Stephan Olariu, and Lorna Stewart. The LBFS structure and recognition of interval graphs. SIAM Journal on Discrete Mathematics, 23(4):1905–1953, 2010. doi:10.1137/S0895480100373455.
15 Jérémie Dusart and Michel Habib. A new LBFS-based algorithm for cocomparability graph recognition. Discrete Applied Mathematics, 216:149–161, 2017. doi:10.1016/j.dam.2015.07.016.
16 Jan Gorzny. Related Orderings of AT-Free Graphs. PhD thesis, University of Waterloo, 2022. URL: http://hdl.handle.net/10012/18079.
17 Jan Gorzny and Jing Huang. End-vertices of LBFS of (AT-free) bigraphs. Discrete Applied Mathematics, 225:87–94, 2017. URL: https://doi.org/10.1016/j.dam.2017.02.027, doi:10.1016/J.DAM.2017.02.027.
18 Torben Hagerup. Biconnected graph assembly and recognition of DFS trees. Technical Report A 85/03, Universität des Saarlandes, 1985. doi:10.22028/D291-26437.
19 Torben Hagerup and Manfred Nowak. Recognition of spanning trees defined by graph searches. Technical Report A 85/08, Universität des Saarlandes, 1985.
20 Ephraim Korach and Zvi Ostfeld. Recognition of DFS trees: sequential and parallel algorithms with refined verifications. Discrete Mathematics, 114(1-3):305–327, 1993. doi:10.1016/0012-365X(93)90375-4.
21 Dieter Kratsch, Mathieu Liedloff, and Daniel Meister. End-vertices of graph search algorithms. In Vangelis Th. Paschos and Peter Widmayer, editors, Algorithms and Complexity - 9th International Conference, CIAC 2015, Paris, France, May 20-22, 2015. Proceedings, volume 9079 of Lecture Notes in Computer Science, pages 300-312. Springer, 2015. doi:10.1007/978-3-319-18173-8\22.
22 Florian Krowiorz. Die algorithmische Komplexität der Erkennung verallgemeinerter Suchbäume. Bachelor's thesis, Brandenburg University of Technology, Cottbus, Germany, 2023. In German.
23 George B. Mertzios, André Nichterlein, and Rolf Niedermeier. A linear-time algorithm for maximum-cardinality matching on cocomparability graphs. SIAM Journal on Discrete Mathematics, 32(4):2820–2835, 2018. doi:10.1137/17M1120920.
24 Haiko Müller. Hamiltonian circuits in chordal bipartite graphs. Discrete Mathematics, 156(1):291–298, 1996. doi:10.1016/0012-365X(95)00057-4.
25 Chen-Hsing Peng, Biing-Feng Wang, and Jia-Shung Wang. Recognizing unordered depth-first search trees of an undirected graph in parallel. IEEE Transactions on Parallel and Distributed Systems, 11(6):559–570, 2000. doi:10.1109/71.862207.
26 Chen-Hsing Peng, Jia-Shung Wang, and Richard C. T. Lee. Recognizing shortest-path trees in linear time. Information Processing Letters, 52(2):77–85, 1994. doi:10.1016/0020-0190(94)00126-X.
27 Guozhen Rong, Yixin Cao, Jian-xin Wang, and Zhifeng Wang. Graph searches and their end vertices. Algorithmica, 84(9):2642–2666, 2022. URL: https://doi.org/10.1007/s00453-022-00981-5, doi:10.1007/S00453-022-00981-5.
28 Guozhen Rong, Yongjie Yang, and Wenjun Li. A polynomial-time algorithm for MCS partial search order on chordal graphs, 2023. arXiv:2212.04880.
29 Guozhen Rong, Biao Yuan, Wenjun Li, Zhen Zhang, and Yongjie Yang. Partial search orderings for MCS on chordal graphs via clique graph decomposition. Information and Computation, page 105494, 2026. doi:10.1016/j.ic.2026.105494.
30 Donald J. Rose. Triangulated graphs and the elimination process. Journal of Mathematical Analysis and Applications, 32(3):597–609, 1970. doi:10.1016/0022-247X(70)90282-9.
31 Donald J. Rose, R. Endre Tarjan, and George S. Lueker. Algorithmic aspects of vertex elimination on graphs. SIAM Journal on Computing, 5(2):266–283, 1976. doi:10.1137/0205021.
Generalized Graph Search Trees
32 Robert Scheffler. On the recognition of search trees generated by BFS and DFS. Theoretical Computer Science, 936:116–128, 2022. doi:10.1016/j.tcs.2022.09.018.
33 Robert Scheffler. Ready to Order? On Vertex and Edge Orderings of Graphs. Doctoral thesis, Brandenburg University of Technology, Cottbus, Germany, 2023. doi:10.26127/BTU0pen-6301.
34 Robert Scheffler. Recognizing LBFS trees of bipartite graphs. Information Processing Letters, 186:106483, 2024. doi:10.1016/j.ipl.2024.106483.
35 Robert Scheffler. The partial search order problem. Electronic Journal of Combinatorics, 32(4), 2025. doi:10.37236/12654.
36 Robert Scheffler. Semi-proper interval graphs. Discrete Applied Mathematics, 360:22–41, 2025. doi:10.1016/J.DAM.2024.08.016.
37 Robert Scheffler. On the leaves of graph search trees. Ars Mathematica Contemporanea, 26(1), 2026. doi:10.26493/1855-3974.3238.2a8.
38 Douglas R. Shier. Some aspects of perfect elimination orderings in chordal graphs. Discrete Applied Mathematics, 7(3):325–331, 1984. doi:10.1016/0166-218X(84)90008-8.
39 Robert E. Tarjan and Mihalis Yannakakis. Simple linear-time algorithms to test chordality of graphs, test acyclicity of hypergraphs, and selectively reduce acyclic hypergraphs. SIAM Journal on Computing, 13(3):566–579, 1984. doi:10.1137/0213035.
40 William T. Trotter. Combinatorics and Partially Ordered Sets: Dimension Theory. Johns Hopkins Series in the Mathematical Sciences. The Johns Hopkins University Press, Baltimore, London, 1992.