Sparse graphs are near-bipartite
Daniel W. Cranston, Matthew P. Yancey

TL;DR
This paper characterizes near-bipartite multigraphs and simple graphs using local density conditions and forbidden subgraphs, providing sharp bounds and constructions to demonstrate optimality.
Contribution
It establishes new necessary and sufficient conditions for near-bipartiteness based on local inequalities and forbidden subgraphs, with optimal bounds and explicit constructions.
Findings
Characterization of near-bipartite multigraphs with local density condition
Characterization of near-bipartite simple graphs with forbidden subgraphs
Construction of infinite families showing bounds are sharp
Abstract
A multigraph is near-bipartite if can be partitioned as such that is an independent set and induces a forest. We prove that a multigraph is near-bipartite when for every , and contains no and no Moser spindle. We prove that a simple graph is near-bipartite when for every , and contains no subgraph from some finite family . We also construct infinite families to show that both results are best possible in a very sharp sense.
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.
Sparse Graphs are Near-bipartite
Daniel W. Cranston Department of Mathematics and Applied Mathematics, Virginia Commonwealth University, Richmond, VA, USA; [email protected]; This research is partially supported by NSA Grant H98230-15-1-0013.
Matthew P. Yancey Institute for Defense Analyses - Center for Computing Sciences, Bowie, MD, USA; [email protected]
Abstract
A multigraph is near-bipartite if can be partitioned as such that is an independent set and induces a forest. We prove that a multigraph is near-bipartite when for every , and contains no and no Moser spindle. We prove that a simple graph is near-bipartite when for every , and contains no subgraph from some finite family . We also construct infinite families to show that both results are best possible in a very sharp sense.
1 Introduction
A multigraph111Without loss of generality, we assume that each edge has multiplicity at most 2, as we explain at the start of Section 2. is near-bipartite††margin:
near-bipartite if its vertex set can be partitioned into sets and such that is an independent set and induces a forest. This condition is somewhat stronger than being 3-colorable, but the two problems are closely related. We call a near-bipartite coloring††margin:
near-bipartite coloring of , or simply an nb-coloring††margin:
nb-coloring . The goal of this paper is to prove sufficient conditions for multigraphs and simple graphs to be near-bipartite, in terms of their edge-densities; this is akin to the work done for -coloring in [17]. Since a near-bipartite coloring of restricts to a near-bipartite coloring of each subgraph of , naturally our edge-density hypothesis for should also hold for each subgraph . To facilitate a proof by induction, we also allow some vertices to be precolored. That is, we allow vertex subsets and ††margin:
, , such that our near-bipartite coloring must have and . For convenience, let . We prove results for both the class of multigraphs and the class of simple graphs. For simple graphs, to facilitate our proof by induction, we allow some edges to be specified as edge-gadgets. In practice this means that, for each edge-gadget , in every near-bipartite coloring one of and appears in and the other appears in ; intuitively, this is the same as if was a multiedge. For a multigraph and , let ††margin:
denote the set of edges with both endpoints in . For a simple graph, we let and ††margin:
denote the subsets of that are, respectively, edge-gadgets and not edge-gadgets (but still edges). Most of our other terminology and notation is standard, but for reference we collect it in Section 2.4. Now we can define our measures of edge-density, called potential††margin:
potential , and denoted and . (Here is for multigraph and is for simple graph.)
For a multigraph with precoloring , for each let
[TABLE]
and
[TABLE]
Let denote the Moser spindle, shown in Figure 1, and let be a finite family of simple graphs that we define in Section 3, none of which is near-bipartite. The following is the main result of this paper.
Main Theorem**.**
(A) If is a multigraph with precoloring such that for all and does not contain or as a subgraph, then has a near-bipartite coloring that extends the precoloring . Moreover, can be found in polynomial time.
(B) If is a simple graph with precoloring such that for all and does not contain any graph from as a subgraph, then has a near-bipartite coloring that extends the precoloring . Moreover, can be found in polynomial time.
It is NP-complete to decide if a graph is near-bipartite222This is unsurprising, since nb-coloring is closely connected with 3-coloring, a well-known NP-complete problem., and this is attributed to Monien [10]. This problem remains NP-complete for several restriced families of graphs. Brandstädt, Brito, Klein, Nogueira, and Protti [9] showed this for perfect graphs, and Bonamy, Dabrowski, Feghali, Johnson, and Paulusma [4] showed it for graphs with diameter 3. Dross, Montassier, and Pinlou [13] showed it for planar graphs, and Yang and Yuan [22] showed it for graphs with maximum degree 4. In contrast, Bonamy, Dabrowski, Feghali, Johnson, and Paulusma [5] showed that for a simple graph with and with no , an nb-coloring (which exists by the results below) can be found in time .
Borodin and Glebov [7] proved that if is planar with girth at least , then is near-bipartite. Kawarabayashi and Thomassen [16] extended this result to allow a small set of precolored vertices. Dross, Montassier, and Pinlou [13] conjectured that every planar graph with girth at least 4 is near-bipartite (which would strengthen the result of [7]). Because they each considered different generalizations, multiple groups [3, 6, 8, 11, 22] proved that if has no as a subgraph and , then is near-bipartite. Yang and Yuan [22] characterized near-bipartite graphs with diameter . Zaker [24, Theorem 4] proved that is near-bipartite if and only if its vertices can be ordered as such that each triple of edges with a common endpoint does not satisfy .
Finding an nb-coloring is also called “finding a stable cycle cover” [9]. When we want to have bounded size, the problem is called finding an “independent feedback vertex set”, and related work is described in the references of [4].
The purpose of this paper is to give an algorithm for finding a near-bipartite coloring when is sufficiently sparse. This motivates the following definitions. A multigraph is nb-critical††margin:
nb-critical if it is not near-bipartite, but every proper subgraph is near-bipartite. Figure 1 shows examples of nb-critical graphs. A multigraph is -sparse††margin:
-sparse if every nonempty subset of vertices satisfies . A graph is a forest if and only if it is -sparse. A vertex set is independent if and only if is -sparse. Our next two theorems rephrase parts (A) and (B) of the Main Theorem, state explicit bounds on the running times of algorithms to find the colorings, and also mention constructions to show that both parts are very sharp. We give these constructions in Section 3. In Section 2.3 we describe a key subroutine of our coloring algorithm, but we defer presenting the algorithm in full until Section 5, when we have proved the Main Theorem.
Theorem 1.1**.**
There exists an infinite family of -sparse nb-critical multigraphs. If is -sparse and has no and no , then is near-bipartite. We can find an nb-coloring in time .
A graph is 2-degenerate if every nonempty subgraph satisfies . Every -degenerate graph is near-bipartite, and we can find an nb-coloring in time using the obvious greedy algorithm. Graphs that are -sparse are 2-degenerate, so Theorem 1.1 shows that the greedy algorithm is sufficient in many of the cases where sparsity implies a graph is near-bipartite. Our more impressive result is that we can do better when is simple.
Theorem 1.2**.**
There exists an infinite family of -sparse nb-critical simple graphs. There exists a finite graph family such that if is a simple graph that is -sparse and contains no subgraph isomorphic to a graph in , then is near-bipartite. We can find an nb-coloring in time .
Theorems 1.1 and 1.2 are both best possible in a strong sense, due to the infinite families of sharpness examples. Since the proof of Theorem 1.2 is long, we naturally wondered whether there is a shorter proof of a slightly weaker result, e.g., that a simple graph is near-bipartite whenever it is -sparse and contains no subgraph in . We answer this question more fully in Section 4.4.2; in short, we believe the answer is No, no such shorter proof exists.
The most striking aspect of Theorem 1.2 is that we handle the family , which has hundreds of forbidden subgraphs. Each graph in is both nb-critical (and so must be forbidden in such a theorem) and also 4-critical333A graph is 4-critical if it is not 3-colorable, but each of its proper subgraphs is 3-colorable.. Although we have not explicitly constructed all graphs in , its recursive definition in Section 3.2 allows us to show that each of these graphs has at most 22 vertices; so is finite. Kostochka and the second author [17] showed that each -vertex 4-critical graph has . As we show in Theorem 1.2, each -vertex nb-critical graph with has . Intuitively, the familly is due to the fact that when .
Although is finite, it is is a natural subset of an infinite family , and each graph of is also both nb-critical and 4-critical. Thus, our description of provides insight into the structure of sparse nb-critical and 4-critical graphs. In view of , it is natural to ask whether nb-criticality implies 4-criticality, or vice versa. But neither implication is true. In Section 2.1 we construct an infinite family of nb-critical graphs that are 3-colorable (so not 4-critical). There also exist infinitely many 4-critical graphs such that even after removing multiple (specified) edges from any one of these, it does not become near bipartite444For example, we can start with the 4-critical graphs constructed by Yao and Zhou in [23]. Even if we remove all edges and with the graph fails to become near-bipartite. The proof of this is a straightforward case analysis (considering the nb-colorings of and of ), but the details are too numerous to include here..
1.1 Proof Outline
To conclude this introduction, we outline the proof of the Main Theorem. The proofs of parts (A) and (B) are similar, but (B) is harder because the family of forbidden subgraphs is much larger. Thus, we just outline the proof of (B).
(Proof sketch of Main Theorem (B)).
Our proof has three cases. The first two cases use induction on , and the third case simply constructs an explicit nb-coloring.
Case 1: There exists with and . By induction, has an nb-coloring . We form a new graph from by coloring with , and then identifying each vertex in colored and identifying each vertex in colored . We call these new vertices and , and they retain their colors. It is easy to check that every nb-coloring of extends to an nb-coloring of (by coloring with ). So the key step is showing that satisfies the hypotheses of the Main Theorem.
Suppose that contains a subset such that . We can check that also , a contradiction. That is, “uncontracting” the set with potential too small in gives a set with potential too small in , which contradicts our hypothesis. So suppose instead that contains a subgraph that is forbidden; that is . If , then Corollary 3.8(iii) implies that , which yields , a contradiction. If , then a short case analysis again reaches a contradiction.
Case 2: contains some “reducible configuration” (and Case 1 does note apply). Since Case 1 does not apply, we know that for all with . We call this inequality our “gap lemma”, since it implies a gap between the lower bound on required by the hypothesis () and the actual value of (at least 4). A reducible configuration is one that allows us to proceed by induction. An easy example is an uncolored vertex of degree at most 2. By induction, has an nb-coloring . To extend this coloring to , we color with unless all of its neighbors are colored ; in that case we color with . Our gap lemma has the following powerful consequence: For any and any that is uncolored, we can color with colored and we can also color with colored . This is because precoloring a vertex decreases its potential (and that of any set containing it) by at most 8. So the gap lemma implies that each vertex subset (containing the precolored vertex ) has potential at least . Thus, the Main Theorem still applies, even after precoloring .
Let denote the set of degree 3 vertices that are uncolored and not incident to any edge-gadget. We claim that is a forest. Suppose, to the contrary, that contains a cycle . Since contains no subgraph in , cycle has successive vertices and such that their neighbors outside of , say and are not linked (this is a technical term defined when constructing the family of forbidden subgraphs; it means that adding the edge would create a copy of a subgraph in ). Now we form a new graph from by deleting and adding edge ; if already exists, then we replace it with an edge-gadget. Since and are not linked, satisfies the hypotheses of the Main Theorem. It is straightforward to check that every nb-coloring of extends to an nb-coloring of .
Case 3: Neither Case 1 nor Case 2 applies. We use discharging to show that is very nearly an uncolored graph with no edge-gadgets and consists of an independent set of vertices of degree 4 and a set of vertices of degree 3 that induces a forest. In this case, we can color the independent set with and color the forest with . If exactly matches this description, then , where is the number of components in the forest. Further, each place in the graph that differs from this description slightly decreases . By hypothesis, , so this number of differences is small (as is ). In each case, we explicitly construct an nb-coloring of . ∎
In Section 5 we translate the proof of our Main Theorem into a polynomial-time algorithm. Implementing most of the steps is straightforward. But two parts of this process merit more comment. In Section 2.3, we show how to find a vertex subset with minimum potential; we can also further require that be at least some constant distance away from 0 or from . This task reduces to a series of max-flow/min-cut problems, each of which runs in time . Finally, to check whether two vertices are linked, we simply use brute force. This relies on the fact that each graph in has at most 22 vertices, so has only finitely many graphs. Thus we can answer this question in time .
2 Preliminaries
In Section 2.1 we construct the sharpness examples promised in Theorems 1.1 and 1.2. In Section 2.2 we motivate our choice of coefficients in the definitions of and , and record for reference the potentials of many small graphs. Section 2.3 presents an algorithm for finding a vertex subset with lowest potential; this will be useful in Section 5, where we convert our proofs that certain graphs have nb-colorings into algorithms to construct those nb-colorings. Finally, Section 2.4 collects all of our definitions, most of which are standard. To simplify our notation throughout, we assume that any sets and are disjoint. This assumption is free, since induced subgraphs of forests are forests. We also assume that each pair of vertices is joined by at most two edges, since allowing further parallel edges puts no further constraints on the coloring.
2.1 Sparse nb-critical Graphs
Here we describe the sharpness examples in Theorems 1.1 and 1.2. For each , we construct a family of graphs ††margin:
as follows. The top of Figure 2 shows . Let and
[TABLE]
To check that each is -sparse, we use induction on , as follows. Fix . Suppose that contains , for some . Let and ; here “/” denotes contraction. Note that . By hypothesis, . Thus . The case when no such exists is straightforward, as is the base case. So is -sparse, as desired.
We claim that each is nb-critical. To begin we show that is not near-bipartite. The key observation, which is easy to check, is that when is an nb-coloring of
[TABLE]
Assume, contrary to our claim, that has an nb-coloring . Applying (1) to multiedge shows that , which implies . Similarly, , so . We prove by induction that for all , which contradicts (1) for multiedge . Assume, by hypothesis, that . (The base case is when .) Applying (1) to shows that ; this, in turn, means that , as desired. So , which is a contradiction. Thus, is not near-bipartite.
To see that each subgraph is near-bipartite, we color greedily in the order , adding each vertex to any set where it does not contradict the definition of -coloring. For each other edge , we can color similarly. This completes the proof that each is nb-critical.
We now construct a family ††margin:
of simple nb-critical graphs. The bottom of Figure 2 shows . To do this, we define a multiedge-replacement††margin:
multiedge-replacement for endpoints as vertices and edges . We say it is rooted at and and that they are its roots. As an example of an multiedge-replacement, consider the 5 leftmost (or 5 rightmost) vertices in and the edges they induce, as shown on the bottom in Figure 2. To construct we replace each multiedge of with a multiedge-replacement. (These multiedge-replacements allow us to simulate multiedges in simple graphs.) It is straightforward to show by induction on that each is -sparse.
The proof that is nb-critical follows from the proof that is nb-critical, together with the fact (proved below) that in any nb-coloring of a multiedge-replacement,
[TABLE]
We also need the observation that removing any edge from a multiedge-replacement allows an nb-coloring with both roots colored ; this is easy to check directly. This observation implies that every proper subgraph of is near-bipartite.
We now prove (2). If , then . So the circuit implies that , and (2) holds. If instead , then the circuit forces ; by symmetry, assume and . Thus . But now the circuit forces . Again, (2) holds. This completes the proof of (2). So has no nb-coloring precisely because has no nb-coloring. Thus, is nb-critical.
2.2 Potential Functions
Recall from the introduction that
[TABLE]
and
[TABLE]
Our choice of coefficients in and has a simple explanation based on the constructions in the previous section. We begin with . The ratio of the coefficients on and arises because . To understand the coefficient 1 on , consider an arbitrary vertex . We create vertices and add edges ; see left of Figure 3. Because is a multiedge, every nb-coloring of this graph must have , so . Thus, functionally speaking, this construction is equivalent to moving from to . The weight of in represents the combined contribution to of , and the associated edges: the 3 vertices and 4 edges give us .
To understand the coefficient 0 on , consider an arbitrary vertex , and create vertex and add edges ; see right of Figure 3. By construction, every nb-coloring of this graph must have , and so we have mimicked moving from to . The weight of in represents the combined contribution of , and the two associated edges: .
To double-check that our coefficients make sense, suppose we want to move a vertex from to . We can also achieve this by adding a vertex and adding edge . Functionally, now , so combining the weights of , , and should give the weight of a single vertex in , and it does: .
Similarly, we can analyze the coefficients of . Note that . To compute the weight of an edge-gadget, we have , since it is simulated by a multiedge-replacement. To effectively move a vertex from to or , we use the same method as above, but with edge-gadgets in place of multiedges. For a vertex in we count the contributions of 3 vertices, 2 edges, and one additional edge-gadget to get . For a vertex in we count contributions of one vertex in , one vertex in , and one edge-gadget to get .
Example 2.1**.**
We calculate the potential for several examples (assuming that no vertices are precolored).
- (i)
and . 2. (ii)
and . 3. (iii)
and . 4. (iv)
and . 5. (v)
and . 6. (vi)
and . 7. (vii)
and . 8. (viii)
; further for all . 9. (ix)
; further for all .
The second statements in (viii) and (ix) are proved by induction on .
2.3 Computational Aspects of Sparsity
Recall that a graph is -sparse††margin:
-sparse if every nonempty satisfies . Similarly, is -tight††margin:
-tight if it is -sparse and , and is -strictly sparse††margin:
-strictly sparse if it is -sparse and no subgraph is -tight. These sparsity notions have connections to many other concepts. Lee and Streinu [19, §] survey several applications, emphasizing the equivalence between -tight graphs and Laman graphs for planar bar-and-joint rigidity. Sparsity is also related to minimal bends in vertex contact representations of paths on a grid; see [1].
Kostochka and the second author [17] showed how to color -strictly sparse graphs in polynomial time. Later they proved [18] that certain known critical graphs are in fact -tight. Their coloring algorithm fits into a larger body of work that uses the so-called “Potential Method” to color sparse graphs. We will use the Potential Method to prove parts (A) and (B) of our Main Theorem. When we color an -sparse graph, a key step is to either find a proper -tight subgraph , for specifically chosen , or else report that no such exists. We may also impose additional constraints, for instance that or that is maximized or minimized.
The maximum average degree††margin:
maximum average degree of a graph is the minimum such that is -sparse. Researchers have recently discovered new applications for finding a subgraph with maximum average degree, and algorithms achieving this have grown in interest (Google Scholar claims that a paper with a foundational algorithm [14] for this problem has over 250 citations). Finding the subgraph with largest maximum average degree among subgraphs whose order is bounded either from above or below is conjectured to be computationally hard [2], but it can be done in polynomial time [12] if the bounds are away from being trivial. We are unaware of any work bounding the subgraph’s order from both above and below simultaneously.
Much of the work above generalizes to hypergraphs. Fix a hypergraph , vertex weights , and edge weights . The potential of a vertex set , denoted ††margin:
, is defined as . Hypergraph is -sparse††margin:
-sparse if for every nonempty vertex subset . A graph is -sparse if and only if for weights , we have that is -sparse.
Lee and Steinu [19] gave an algorithm to find an -tight subgraph of maximum order when , and Streinu and Theran [21] generalized it to hypergraphs. Goldberg [14] gave an algorithm to find a subgraph with largest maximum average degree. The core routine of Goldberg’s algorithm is a max-flow/min-cut method; for a fixed it finds the largest such that the graph is -sparse and returns an -tight subgraph. Goldberg’s algorithm may return the empty subgraph, so it always returns with . Kostochka and the second author [17] modified Goldberg’s algorithm to fit the needs of the Potential Method, but they only proved the modifications work for the case needed in that paper. Goldberg [14] also generalized his work to allow for edge weights and “vertex weights,” but his vertex weights are functionally equivalent to the presence of loops and differ from what we do here. To simplify current and future work with the Potential Method, we describe here the most general version of the algorithm in [17].
Theorem 2.2**.**
Fix a hypergraph , vertex weights , and edge weights . We can find a vertex subset such that in time . If each hyperedge has bounded size, then we can find in time .
Proof.
The following is a straightforward adaptation of Goldberg’s argument in [17]; we get to add weights for free. (Figure 4 shows an example.)
Using a Max-flow/Min-cut algorithm, we will find a minimum weight cut in the following auxiliary digraph . Let . For each vertex of , add an arc from to the corresponding vertex in with capacity . For each edge of , add an arc from the corresponding vertex in to with capacity . For each vertex in an edge of , add an arc in with infinite capacity from the vertex corresponding to to the vertex corresponding to .
Let ††margin:
denote the sum of all edge weights in . Observe that if is a vertex in an edge (in ), then either is in the edge cut of or else is in . Let , and note that . Thus, the weight of is precisely
[TABLE]
The algorithm’s running time is dominated by the cost of finding a minimum edge-cut in . Since , the algorithm of Karzanov [15] runs in time . If each hyperedge has bounded size, then , so the algorithm of Sleater and Tarjan [20] runs in time . ∎
We have two immediate uses for the vertex weights. First, we can adapt the algorithm to the problem of extending a precoloring, as discussed in Section 2.2. Second, we can specify vertices as mandatory to include in our subgraph, as we show in the proof of our next result.
Theorem 2.3**.**
Theorem 2.2 can be adapted to allow the condition that we find the largest or smallest subset among optimal sets. Further, for constants and , we can also require the subset to have order at least and at most , where the algorithm now runs in time .
(Proof sketch).
To find an optimal subgraph of maximal order, we increase the weight of each vertex by . To find one of minimal order, we decrease each weight.
Let denote the vertex subset returned by the algorithm in Theorem 2.2. To ensure that , we remove a set of vertices before running the algorithm. By considering all choices for , we find our desired .
To ensure that , we choose a set of vertices and add a new hyperedge over those vertices, with extremely high capacity. Any optimal cut must contain those vertices, so we can account for the weight of this new hyperedge at the end. Again we consider all possible choices for . The theorem follows from the inequality . ∎
Corollary 2.4**.**
Let be fixed nonnegative integers. If is a connected graph with edges, then a largest (or smallest) vertex subset with smallest potential satisfying can be found in time .
2.4 Definitions and Notation
For completeness, below we collect our definitions, many of which are standard. A graph consists of a vertex set and a multiset of unordered pairs of vertices, called the edge multiset. An edge that is the pair of vertices and is written as . This paper deals with loopless graphs, so if is an edge, then . Two edges are parallel††margin:
parallel if they are the same pair of vertices. A multiedge††margin:
multiedge is an equivalence class of edges that contains exactly two edges. (Recall that we allow at most two parallel edges joining any pair of vertices, since more parallel edges put no further constraints on the coloring.) A graph is simple††margin:
simple if it has no multiedges.
A circuit††margin:
circuit of length in a graph is a sequence of vertices and edges such that (a) , (b) , and (c) when . In particular, a multiedge forms a circuit of length . A forest††margin:
forest is a graph with no circuits.
For a vertex subset , let . We write for the subgraph induced by ; that is and . A vertex subset is independent††margin:
independent if . For each vertex , let denote the number of edges (including edge-gadgets) incident to . Specifically, multiedges contribute 2 to the degree of each endpoint, but edge-gadgets only contribute 1. We write and to denote the maximum and minimum degrees, respectively. Let denote the set of vertices that share an edge or edge-gadget with . If is simple, then .
3 Constructing
3.1 Linked Vertices
In this subsection and the next, we construct the family of subgraphs forbidden in part (B) of the Main Theorem. On a first pass, the reader may prefer to focus on the proof of part (A), since it uses many of the same ideas, but is much easier than that of part (B). In that case, we recommend skipping to Section 4.
While trying to color , we often want to color by minimality a graph formed by adding an edge to some proper subgraph of . A major hurdle we face is showing that satisfies the hypotheses of the Main Theorem. To understand when adding an edge creates a copy of some forbidden subgraph, we study the following notion of linked vertices.
Definition 3.1**.**
Let be an nb-critical graph. Form from by removing a single edge . Vertices are linked in ††margin:
linked in if contains a subgraph that is isomorphic to , where vertices correspond to in the isomorphism. We call the linking graph††margin:
linking graph .
As an example, if contains a copy of , then its non-adjacent vertices are linked. The following lemma generalizes a key concept from the proof of (2) in Section 2.1.
Lemma 3.2**.**
If vertices are linked in a graph , then for any nb-coloring of , either
- (i)
, or
- (ii)
* and there exists a path from to in .*
Proof.
We use notation as in Definition 3.1, and let . Suppose, to the contrary, that has an nb-coloring with and that if , then has no path from to . Now is also an nb-coloring for . Since restricts to an nb-coloring for , and , this contradicts our assumption that is not near-bipartite. ∎
Lemma 3.3**.**
Using the notation of Definition 3.1, we know that . So for each we have .
Proof.
The second statement clearly follows from the first, so we prove the first. Suppose, to the contrary, that and . By nb-criticality, has an nb-coloring . If contains a neighbor of in , then let and . Otherwise let and . But now is an nb-coloring of , which contradicts that is nb-critical. ∎
3.2 The Forbidden Subgraphs
To define we first define an infinite family of graphs . The graphs , , , and are called base graphs††margin:
base graphs . We define recursively: each graph in is either a base graph or else is formed by merging smaller graphs in in a certain way. To explain this construction, we define specially-linked vertices (in Definition 3.4); this idea builds on Definition 3.1, but also assumes that the nb-critical graph is in .
All graphs in contain no edge-gadgets and only contain uncolored vertices. This assumption will persist throughout this subsection. (However, when we forbid a subgraph in the Main Theorem, we also forbid it with precolored vertices and/or with some edges replace by edge-gadgets, since such variations are no easier to color.)
Definition 3.4**.**
If two vertices are linked in a graph , then they are specially-linked††margin:
specially-linked
if the linking nb-critical graph (in Definition 3.1) is in , where is defined next.555Formally, perhaps we should define specially-linked only after defining . Explicitly making that substitution in (ii.c) below gives a correct recursive definition of , but also renders (ii.c) harder to parse.
A graph is in ††margin:
if (i) is one of the four base graphs, or (ii) is nb-critical and contains an induced cycle such that each of the following three conditions holds:
- (ii.a)
the length of the cycle, , satisfies , 2. (ii.b)
each vertex in has degree , and 3. (ii.c)
if denotes , with indices modulo , then and are specially-linked in (whenever ).
The family of graphs is defined as
[TABLE]
Remark 3.5**.**
If and is not a base graph, then there exists such that .
Proof.
If not, then induces either or , which contradicts that is nb-critical. ∎
Examples of graphs in include and ; the graph is nb-critical, but is not in since it is 4-regular, so fails condition (ii.b) in Definition 3.4. In Lemma 3.7 we will show that, among graphs in that are not base graphs, is the smallest and is the second smallest (although we do not prove that is uniquely the second smallest).
In the introduction, we claimed that each graph in is -critical and that is a finite family. We now prove these claims, as well as a few properties of that we will need later. The most important result from this subsection is Corollary 3.8.
Lemma 3.6**.**
Each graph is -critical.
Proof.
We use induction on . It is easy to check that each base graph is 4-critical (due to symmetry, case analysis is quite short).
Now we assume that and is larger than the base graphs. By definition, has a cycle that satisfies , , and from Definition 3.4. To prove that is -critical, we show that and that for every . The latter is easy: since is nb-critical, is near-bipartite, so .
Assume, to the contrary, that admits a proper -coloring . By definition, if , then and are specially-linked in . By induction, this implies that the linking graph is a -critical graph. A basic fact of -critical graphs is that for any edge , any proper -coloring of uses the same color on and . It follows that for all . But now is forbidden from use on each vertex of the odd cycle ; since has no 2-coloring, this contradicts the existence of . ∎
Lemma 3.7**.**
If and , then .
Proof.
Fix . Clearly the unique smallest graph in is . If , then Remark 3.5 implies that contains two linked vertices, so has at least vertices. Thus, has at least vertices. Further, has at least vertices unless is and is a -cycle. In this case, is , which contradicts our hypothesis. ∎
Corollary 3.8**.**
The families and satisfy the following four properties.
- (i)
If , then . 2. (ii)
If , then . 3. (iii)
If and , then . 4. (iv)
If and , then for every , we have .
Proof.
We start with (i). Lemma 3.6 implies is -critical. Kostochka and Yancey [17] proved that if is -critical, then . So ; the final inequality uses that . Now (ii) follows from (i), since .
Next we consider (iii). Kostochka and Yancey [18] constructed a family of 4-critical graphs that they called -Ore graphs, and proved that if is -critical and not -Ore, then . They also showed that if is -Ore, then . Moreover, if is -Ore and , then is or .
Recall from Example 2.1 that and . So we assume that . If is -Ore, then the previous paragraph and Lemma 3.7 imply . So (i) implies (iii). If is not -Ore, then implies . Now again implies (iii).
Finally, consider (iv). We omit the tedious calculations when . The proof of Part (iii) shows that if and , then is a -Ore graph with vertices. It was shown in [18] (see Claim 16) that if is -Ore and , then . Since is integer valued and , part (iv) holds because
[TABLE]
∎
We omit the work, but case analysis revealed that there are exactly -Ore graphs with vertices, and all are in . Corollary 3.8(ii) immediately implies the following.
Remark 3.9**.**
There exists finitely many graphs in .
4 Proof of the Main Theorem
In Section 4, we start proving the Main Theorem. The proofs of parts (A) and (B) rely on many common lemmas, which we prove in Section 4.1. To unify our presentation, we write ††margin:
to denote a statement that holds for both and . In Section 4.2 we finish proving part (A). In Sections 4.3 and 4.4 we finish proving part (B). To prove each part of our Main Theorem, we assume it is false, and let be a counterexample minimizing . Ultimately, we will reach a contradiction, by constructing an nb-coloring of .
4.1 Basic Lemmas
In Section 4.1, we have two goals: (i) to show that is fairly “well-behaved”, and (ii) to prove our first gap lemma. We say a bit more about each. To facilitate our proofs, we have allowed precolored vertices, as well as edge-gadgets. But we hope that our minimal counterexample has few, if any, of these. It is also easy to check that . To get more control on , we want to show that has few 2-vertices. By “well-behaved” we mean all of these hoped-for properties.
We will often nb-color some proper subgraph of , by minimality. To get more power in our proof, we would like the option of slightly modifying before coloring it. A small modification can only decrease potential by a small amount. For example, adding an edge decreases by 2 and decreases by 5. So to allow adding an edge, we must show (for each ), that and . This is the content of Lemma 4.6. We call this a gap lemma††margin:
gap lemma , since it establishes a gap between the actual value of and the lower bound required by the hypothesis of the Main Theorem. In later sections, we prove stronger gap lemmas for both multigraphs and simple graphs, but those proofs all rely on Lemma 4.6.
Lemma 4.1**.**
The potential function is submodular, i.e., for any graph all satisfy
[TABLE]
Proof.
Each vertex is counted equally many times on both sides of the inequality. Each edge is counted at least as often on the left as on the right. ∎
Lemma 4.2**.**
, is connected, and .
Proof.
The only graphs with at most two vertices with precolorings that do not extend to nb-colorings are (i) when and contains an edge and (ii) when and contains a multiedge or edge-gadget. In each case, is too small to satisfy the hypothesis of the Main Theorem.
If is disconnected, then each component has an nb-coloring by minimality. Together these give an nb-coloring of . If has a 1-vertex , then has an nb-coloring, and we extend it to by adding to . ∎
Recall that, for each vertex , denotes the number of edges (including edge-gadgets) incident to . Specifically, multiedges contribute 2 to the degree of each endpoint, but edge-gadgets only contribute 1. By a forbidden subgraph††margin:
forbidden subgraph , we mean or in the case of multigraphs, and we mean some graph in the family in the case of simple graphs.
Lemma 4.3**.**
.
Proof.
Suppose there exists some vertex . By the lower bound on , for each edge we know . Let . Let , and define a precoloring as and We claim that with the precoloring satisfies the hypotheses of the Main Theorem. We did not add any edges, so any subgraph contained in is also contained in . Let , and observe that . This proves the claim. Now by minimality, we can find in polynomial time an nb-coloring that extends the precoloring . Let and . ∎
Although we know that in , the notion of will still be useful. In particular, we will often use minimality to color a graph with a precoloring such that .
Lemma 4.4**.**
* for each .*
Proof.
Suppose there exist vertices such that . By minimality, has an nb-coloring . If , then we extend to by coloring with the color unused on its neighbor. So assume . If is not incident to a multiedge or an edge-gadget, then is an nb-coloring of .
Now assume that both and also is either a multiedge or an edge-gadget. If , then contradicts the hypotheses of the theorem; so assume . Let , , and . We claim that with precoloring satisfies the hypotheses of the Main Theorem. For if , then ; and if , then . So, by minimality, has an nb-coloring that extends the precoloring . Now is an nb-coloring of , a contradiction. ∎
Lemma 4.5**.**
If is uncolored and not incident to an edge-gadget, then .
Proof.
Suppose, to the contrary, that is uncolored, is not incident to an edge-gadget, and . Since by the previous lemma, we denote by . By minimality, has an nb-coloring . If , then is an nb-coloring of . Otherwise is an nb-coloring of . ∎
Now we can prove our gap lemma.
Lemma 4.6**.**
If , then .
Proof.
Suppose, to the contrary, there exists such that and . Among such subsets, choose to minimize . Since , we must have . Further, if , then .
By minimality, has an nb-coloring with . Let .
Claim 4.7**.**
Each has at most one incident edge (and no edge-gadget) with endpoint in .
Proof. Suppose, to the contrary, that there exists with two incident edges, or an incident edge-gadget, with endpoints in . Now . So, by the minimality of , we must have . If has at least three incident edges into , or an edge and another edge-gadget, then violates the hypothesis of the Main Theorem: or . So assume has exactly two edges into or exactly one edge-gadget and no other edges. Further, , since otherwise is too small. By minimality, has an nb-coloring. Since , we can easily extend this coloring to , which contradicts that is a counterexample. Thus, each has at most one neighbor in , and no incident edge-gadget into , as desired.
We construct a graph with vertex set . We give the precoloring , where and . The edge set of is
[TABLE]
If or has degree [math], then we delete it. Note that is smaller than , since either or else and . Because for each , if is a simple graph, then so is .
Suppose has an nb-coloring that extends the precoloring . It is easy to check that is an nb-coloring of . This contradicts that is a counterexample. So is not near-bipartite. Recall that is smaller than . So, to reach a contradiction, we will show that , with precoloring satisfies the hypotheses of the Main Theorem.
To begin, we show that and for all . First assume, to the contrary, that there exists with . The key observation is that
[TABLE]
Although we use (3) in the form above, it is perhaps easier to understand the equivalent version:
[TABLE]
The left side equals . The right side equals . The right is no less than the left, since each edge in is the image of at least one edge in , and .
Now (3) implies , which is a contradiction. Inequality (3) is the key to proving all of our gap lemmas. We use it repeatedly below, often with less detail. Now assume, to the contrary, that there exists with . Similar to the previous case, now , which is a contradiction.
Now we must show that does not contain forbidden subgraphs. In the case of multigraphs, we must show that contains neither nor . Suppose instead that contains or , and let denote its vertex set. Recall from Example 2.1 that (with no precolored vertices) and . So . Now , which is a contradiction.
Finally, we consider the case of simple graphs. We must show that does not contain any graph in . Suppose that it does; call this graph , and let denote its vertex set. By Corollary 3.8(i), we know that (with no precolored vertices) . Thus, . As a result, , which is a contradiction. ∎
Lemma 4.6 is useful in many ways. It immediately implies our next lemma, which is a strengthening of the submodularity condition in Lemma 4.1, and it also implies Lemmas 4.9 and 4.10.
Lemma 4.8**.**
In the function is subadditive on proper subsets: unless ,
[TABLE]
Proof.
Assume that or . Since , the previous lemma gives for all . So by Lemma 4.1. ∎
The proof of the following lemma is simple arithmetic, so we omit it.
Lemma 4.9**.**
Both endpoints of a multiedge (for part (A)) or an edge-gadget (for part (B)) are uncolored. Further, when is a multigraph, at least one endpoint of each edge is uncolored.
Lemma 4.10**.**
If and , then has an nb-coloring that extends the precoloring .
Proof.
Let and . Because is a subgraph of , it contains no forbidden subgraphs. By Lemma 4.6, the graph with precoloring satisfies the hypotheses of the Main Theorem. So by minimality, has an nb-coloring that extends . ∎
4.2 Multigraphs
In this section, we prove part (A) of the Main Theorem. The key step, which we begin with, is to strengthen by 1 the gap lemma we proved in Lemma 4.6 of the previous section. Everything after this stronger gap lemma is a chain of implications that culminates with the fact that cannot exist.
Lemma 4.11**.**
If and , then .
Proof.
The proof is very similar to that of Lemma 4.6, so we mainly emphasize the differences. Suppose, the lemma is false; that is, some vertex subset satisfies and . Among such , choose one to minimize . By Lemma 4.6 we know that . First, we note that . Suppose, to the contrary, that . By Lemma 4.3, , so each vertex contributes odd weight (1 or 3) and each edge contributes even weight (), which implies . By Lemma 4.6, we have ; thus . So, , as desired.
As in the previous proof, each has at most one neighbor in . Since is connected and , there exists with a neighbor not in . Let with precoloring , where and . For each , we have , by Lemma 4.6666This step in the proof is the only place where we actually use Lemma 4.6, and it is why we prove that weaker result before proving this one.. Thus, by minimality, has an nb-coloring that extends the precoloring . Now we repeat the construction of graph from the proof of Lemma 4.6.
Suppose has an nb-coloring that extends the precoloring . It is easy to check that is an nb-coloring of . This contradicts that is a counterexample. So is not near-bipartite. Recall that is smaller than . So to reach a contradiction, we will show that , with precoloring , satisfies the hypotheses of the Main Theorem.
We must show that does not contain or . Recall that (with all vertices uncolored), we have and . Suppose, to the contrary, that contains a copy of , and let denote its vertex set. Since , we have . As in the proof of Lemma 4.6, we have . The subgraph of without is isomorphic to with one or two uncolored vertices removed, so we have . Thus , which is a contradiction.
Finally, we show that for all . Assume, to the contrary, that there exists with . Now . By our choice of , we know that . If , then . Now , a contradiction. So instead, assume . However, now we have . Here the inequality is strict, since the left side counts an edge from to a neighbor outside of , but that edge is not counted on the right (recall from the second paragraph that is precolored to be in and has a neighbor in ). Again, , which is a contradiction. So satisfies the hypotheses of the Main Theorem, which finishes the proof. ∎
Lemma 4.12**.**
.
Proof.
Assume, to the contrary, that contains a vertex with . By Lemmas 4.4 and 4.5 we know that and . Let and denote the neighbors of . Form from by adding edge . (Note that , since otherwise , which contradicts Lemma 4.11.) Suppose there exists with . Since , we have . Now , which is a contradiction. So assume instead that contains a copy of or ; let denote its vertex set. In this case . This contradicts Lemma 4.11 unless . However, in that case we can easily construct an explicit nb-coloring of (when we have only a single case, and when we have four cases). ∎
Lemma 4.13**.**
.
Proof.
Since , we have . Now . By assumption , so . ∎
Lemma 4.14**.**
* has at most one vertex with . If exists, then .*
Proof.
Choose arbitrary vertices . Since , we have . Thus . Since , we get . Since , the lemma holds. ∎
Lemma 4.15**.**
* has no multiedges.*
Proof.
Suppose, to the contrary, that has a multiedge. By the previous lemma, one of its endpoints has degree 3. So let be a 3-vertex with neighborhood , and with a multiedge to . By Lemma 4.10 there exists an nb-coloring of with . This is a contradiction, as such a coloring can be extended to by coloring with the color not on . ∎
Lemma 4.16**.**
.
Proof.
Since , and has no multiedge, . If , then is , which is a contradiction. So suppose that . By Lemma 4.14, has four 3-vertices and a 4-vertex. Thus, is formed from by deleting two independent edges. So let consist of two non-adjacent vertices, and let . This nb-coloring of is a contradiction. Thus, , as desired. ∎
Lemma 4.17**.**
* has no 3-cycle.*
Proof.
First suppose that contains 3-cycles and . Form from by identifying and ; call this new vertex . If there exists with , then clearly . So , a contradiction. Suppose instead that contains a copy of , and let denote its vertex set. Similar to before, , a contradiction. Finally, suppose that contains a copy of , and let denote its vertex set. Now . This contradicts Lemma 4.11, unless . However, in that case, we can easily check that , a contradiction. Since is smaller than and satisfies the hypotheses of the Main Theorem, has an nb-coloring, . And we easily extend to , which is a contradiction.
Now suppose that contains a 3-cycle and none of its edges lie on another 3-cycle. Assume, without loss of generality that . Let denote the third neighbor of . Since and have distinct neighbors off the 3-cycle, we can also assume that . Form from by identifying and ; call this new neighbor . If there exists with , then also , which contradicts Lemma 4.11, since . Note that cannot contain , since does not contain two 3-cycles with a common edge. Suppose instead that contains . Recall that contains two edge-disjoint copies of two 3-cycles sharing an edge. Since contains no such subgraph, both copies must contain the new vertex . But this is impossible: since , also . ∎
Lemma 4.18**.**
* does not exist. That is, part (A) of the Main Theorem is true.*
Proof.
Choose a vertex with . Let . Form from by identifying and ; call this new vertex . By Lemma 4.17 has no 3-cycle, so cannot contain or , since neither has a single vertex contained in all of its 3-cycles. For each , Lemma 4.11 implies . Thus, by minimality, has an nb-coloring . And it is easy to extend this to . Specifically, remove from whichever set contains it and add and to this set. Now, if both and were in , then add to ; otherwise add to . ∎
4.3 Simple Graphs: More Reducible Configurations
In this section we continue the proof of part (B) of the Main Theorem, which we began in Section 4.1. Our approach mirrors what we did in Section 4.2, where we showed (for part (A)) that a minimal counterexample must be well-behaved. The main results of the section are that and that the subgraph induced by uncolored 3-vertices is a forest. To prove these properties, a key step is strengthening our earlier gap lemma, which we do in Lemma 4.24. In Section 4.4 we will complete the proof of part (B). Using the structural results that we prove here, there we will give a discharging argument to show that is very nearly comprised entirely of uncolored 3-vertices that induce a forest, together with uncolored 4-vertices that induce an independent set. (In fact can vary slightly from this, but in each case we explicitly construct an nb-coloring.)
We will frequently use our next lemma to extend an nb-coloring from a subgraph of to all of .
Lemma 4.19**.**
Suppose is an induced cycle in with for all , and let for all . Fix an nb-coloring of . We can extend to unless (i) for all or (ii) is odd and for all and all are in the same component of .
Proof.
Fix an nb-coloring of . First suppose that there exist and . By symmetry, assume that and . We iteratively add each to either or . Let and . For each , do the following. If , then and ; otherwise and . It is easy to prove by induction on that is an nb-coloring of .
Now instead assume that for all . If is even, then let and . Now is an nb-coloring of . So assume is odd. Suppose, by symmetry, that and are in different components of . Let and . Again is an nb-coloring of . ∎
Our next construction is motivated by our desire to avoid the exceptional cases in the previous lemma. Clearly, this is achieved by every nb-coloring of , which we define next. Ultimately, we will use this construction and lemma after it to show that the uncolored 3-vertices of induce a forest. But the proof that has an nb-coloring is tricky, and we will break it into Lemmas 4.22, 4.27, and 4.29.
Definition 4.20**.**
Let be a -cycle in induced by 3-vertices, and let for all . Let . We construct an auxiliary graph ††margin:
as follows777Part (ii) of Definition 4.20 is the most important place where we construct edge-gadgets. A key consequence of using an edge-gadget is that is smaller than , which is essential for the proof of Lemma 4.22.:
- (i)
if and are the endpoints of an edge-gadget, then ; otherwise 2. (ii)
if , then is formed from by removing and replacing it with an edge-gadget; otherwise 3. (iii)
is formed from by adding edge .
To find an nb-coloring of by minimality, we must show that . Our next lemma helps us do this.
Lemma 4.21**.**
We use notation from Definition 3.1. If vertices and are linked in through subgraph with , then and are specially-linked (and the linking graph is in ).
Proof.
Suppose, to the contrary, that and are linked via subgraph , where for some . Now (since ), so . Thus, , which implies that is smaller than in our ordering. By the definition of linked, is not near-bipartite. So by the minimality of , either contains as a subgraph some graph in or else there exists such that . In the latter case, , which contradicts our gap lemma, Lemma 4.6. So contains as a subgraph a graph from . Since , vertices and are specially-linked, as desired. ∎
Lemma 4.22**.**
If is a cycle in induced by 3-vertices, then at least one of the following holds:
- (i)
, or 2. (ii)
some is incident to an edge-gadget, or 3. (iii)
.
Proof.
Suppose, to the contrary, that , no is incident to an edge-gadget, and each is uncolored. Let , and let for all .
First suppose . Let with and . By Lemma 4.10, has an nb-coloring that extends . By Lemma 4.19, we can extend to an nb-coloring of .
Now assume . By Definition 3.4 and Remark 3.5, there exists such that and are not specially-linked through a subgraph of . By Lemma 4.21, vertices and are not linked through any subgraph of . By symmetry, we assume . Let . We first show that we can extend any nb-coloring of to , by Lemma 4.19. By construction of , at least one of and is in . Assume . Note that and must be in different components of , even if they are in the same component of . By Lemma 4.19, we can extend to , as desired.
Now we must show that does indeed have the desired nb-coloring . By construction, is smaller than , and contains no forbidden subgraph, since and are not linked in . By the minimality of , if for all , then is near-bipartite. If , then . If , then
[TABLE]
If there exists such that , then . By Lemma 4.6, this implies that . So , and we can add the edge to the calculation in (4); the new bound claims , which is a contradiction. Thus, has an nb-coloring . ∎
A key intermediate result in this section is our improved gap lemma, Lemma 4.24. Our next result is designed to help us prove this gap lemma.
Lemma 4.23**.**
If such that , then .
Proof.
Assume, to the contrary, that there exists satisfying the hypotheses with . Let . If and are both uncolored and not incident to edge-gadgets, then they each have degree at least 3, by Lemma 4.5; and so together they are incident to at least edges (with equality if and and are adjacent). Now , which contradicts the hypothesis of the Main Theorem.
Now we assume instead that at least one of and is either precolored or incident to an edge-gadget. Recall from Lemma 4.9 that both endpoints of each edge-gadget are uncolored. Each precolored vertex has potential 5 less than each uncolored vertex, and is still incident to at least 2 edges, by Lemma 4.4; so the analysis remains the same. Thus, we assume that and are both uncolored. Suppose that at least one of and is incident to an edge-gadget, but is not an edge-gadget itself. If denotes the total number of edge-gadgets incident to and , then and are also incident to at least more edges. Since each edge-gadget decreases potential more than 2 edges do, the analysis remains the same. Finally, assume that is an edge-gadget and and are each incident to only one other edge. (If at least one of and has degree 3, then together they have one incident edge-gadget, and at least three more incident edges, so the analysis is similar to before.) Let denote the neighbor of other than . By Lemma 4.10, we can nb-color with precoloring and . To extend this coloring to , add to and to . ∎
Now we can prove our stronger gap lemma.
Lemma 4.24**.**
If such that , then .
Proof.
Suppose, to the contrary, that some satisfies the hypotheses and has . We assume further that minimizes among all such vertex subsets. Let .
We first show that if , then . Suppose, to the contrary, that , which gives that . Lemma 4.23 implies that , so , which contradicts the minimality of . Thus , as desired.
By minimality, has an nb-coloring . We construct a graph with vertex set , similar to the proof of our first gap lemma, Lemma 4.6. We give the precoloring , where and . The edge set of is given by
[TABLE]
If or has degree [math], then we delete it. Using Lemma 4.10, we will assume that is not deleted. Recall that for each , so is a simple graph.
If has an nb-coloring , then we delete and use the nb-coloring on to get an nb-coloring of . This contradicts that is a counterexample, so must not satisfy the hypotheses of the Main Theorem. Thus, contains either a forbidden subgraph or else a vertex set such that . We start with the latter case. Pick to minimize . Now
[TABLE]
The explanation of the above inequality is identical to that of (3) in the proof of Lemma 4.6. Trivially, .
If , then , so Lemma 4.6 implies . Thus, . If , then the minimality of implies that , so . By hypothesis . So .
Now assume that contains a subgraph . Because is a minimal counterexample, is nb-critical, so , which implies . Recall that graphs in have only uncolored vertices, so the potential of minus can be calculated as a graph in minus one or two uncolored vertices, even though what we have done is remove a precolored vertex from a subgraph of . Moreover, if any other vertex in is precolored, it contributes less to the potential than an uncolored vertex, so
[TABLE]
Case 1: . By Corollary 3.8(iii), we know that . This implies that , which contradicts that is a counterexample.
For Cases 2 and 3, we will use the following fact. Let . By Corollary 3.8(i), , so inequality (5) gives . Now Lemma 4.6 implies that .
Case 2: . If , then inequality (5) improves to . So , a contradiction. Instead assume that . For ease of notation, let . Note that each vertex in is in a copy of . Let be vertices in such that is . By construction, . So . Since , this contradicts the minimality of .
Case 3: . Because and are not adjacent (if they both exist), . So and each vertex of has one edge into . By Lemma 4.22, either contains a precolored vertex or else is incident to an edge-gadget. In each case, the above inequality improves to , which contradicts that is a counterexample. ∎
The previous lemma gives the following three easy corollaries. The first is analogous to Lemma 4.10, but now we can add a vertex to . The third slightly extends Lemma 4.22.
Lemma 4.25**.**
If such that and , then has an nb-coloring that extends the precoloring .
Proof.
Let with precoloring . Each satisfies , so has the desired coloring by the Main Theorem. ∎
Lemma 4.26**.**
Each vertex in is incident to at most one edge-gadget.
Proof.
If, to the contrary, some is incident to edge-gadgets with endpoints and , then , which contradicts Lemma 4.24. (A short case analysis shows that .) ∎
Lemma 4.27**.**
If is a cycle in induced by 3-vertices, then at least one of the following holds:
- (i)
, or 2. (ii)
*some is incident to an edge-gadget, or * 3. (iii)
.
Proof.
The proof is nearly identical to the case in the proof of Lemma 4.22. Let for all . By Remark 3.5 and symmetry, assume . If we let , then the only difference is in proving that has an nb-coloring. For each with , Lemma 4.24 gives . So has an nb-coloring by the Main Theorem. ∎
We now prove that , which will be helpful for our discharging argument in the next subsection.
Lemma 4.28**.**
.
Proof.
Suppose, to the contrary, that some has . Lemma 4.4 implies that . Lemma 4.5 shows that either or is incident to an edge-gadget, and Lemma 4.9 implies that cannot satisfy both. Let .
Case 1: and is an edge-gadget. By Lemma 4.26, is an edge and not an edge-gadget. Let . By Lemma 4.10, has an nb-coloring with . To extend to , we color with the color unused on . This contradicts that is a counterexample.
So now assume that , and both are edges and not edge-gadgets. Note that and are both uncolored, since otherwise , which contradicts Lemma 4.24.
Case 2: . We form from by replacing with an edge-gadget (if it is not already an edge-gadget); This is analogous to our earlier construction of . To extend any nb-coloring of to , we simply add to . Because is smaller than , by minimality must contain a forbidden subgraph or a vertex set such that .
By hypothesis, contains no forbidden subgraph, and by construction graphs in have no edge-gadgets. So contains no forbidden subgraph. To reach a contradiction, we show that for all . If , then ; and if , then
[TABLE]
Case 3: . We form from by adding edge . If has an nb-coloring , then we can extend it to by adding to . So we assume has no nb-coloring. By construction, is smaller than . So by minimality has a forbidden subgraph or contains a vertex subset such that . Similar to Case 2,
[TABLE]
So must contain a forbidden subgraph.
By definition, this implies that and are linked via some subgraph . By Lemma 4.21 they are specially-linked. Corollary 3.8(i) implies that
[TABLE]
Lemma 4.6 shows that . Further, is an induced subgraph and no vertex in is precolored; otherwise inequality (6) can be strengthened by , which gives an outright contradiction.
It is straightforward to check that if and , then has an nb-coloring with . So must contain a cycle as in Definition 3.4. By Lemma 4.27, contains no instance of as in Definition 3.4. So there exists such that either or else . Thus, is an induced subgraph of , so it has an nb-coloring .
Case 3.a: . By symmetry, assume . By Lemma 4.25, has an nb-coloring with . To extend to , let and .
Case 3.b: . By symmetry, assume . By Lemma 4.10, we assume . By Lemma 3.2 and Definition 3.4(ii.c), we assume that . To extend to , if is even, then let and . If is odd, then let and . ∎
Now we can show that the uncolored 3-vertices, with no incident edge-gadgets, induce a forest. We extend the ideas of Lemma 4.27 to all finite .
Lemma 4.29**.**
If is a cycle in induced by 3-vertices, then at least one of the following holds:
- (i)
some is incident to an edge-gadget or 2. (ii)
.
Proof.
Suppose, to the contrary, that satisfies the hypotheses, but both possible conclusions fail. By Lemma 4.27, . Let and let . If is even, then by Lemma 4.10 has an nb-coloring with , and we can extend it to by Lemma 4.19. Thus, we assume that is odd; so .
If , then , which is a contradiction. Thus, the set contains at least two distinct vertices. Our plan for the rest of the proof is similar to the first sentence of this paragraph. We will find a subset of that contains all and such that . (We will show that each distinct pair , is linked, and let be the vertices of the union of their linking subgraphs.) This implies that , which is a contradiction. So it remains to find this and prove that .
Suppose there exists such that and and are not linked. Let . Note that for all . Since and are not linked, contains no forbidden subgraphs. So, by minimality, has an nb-coloring, . And by Lemma 4.19, we can extend to . Thus, for each with , we know that and are linked. By Lemma 4.21, in fact they are specially-linked. Let . As shown above, . For each , let denote the subgraph of that links with .
Claim 4.30**.**
For each , we have .
Proof. Let be the graph in formed from by adding edge . We note that , and we consider the possibilities for . If , then . By the gap lemma, . If , then . By Corollary 3.8(iv), . Finally, assume that . By Corollary 3.8(i), this means that . The proper, induced, non-trivial subgraphs of are , which have potentials . This proves the claim.
Let , and for each , if let , otherwise . Let be the minimum element of , which implies . Because each graph in has potential at most , we have .
Let be an arbitrary element in . Since , it is a non-empty subset of . So the previous claim implies that for all . Now Lemma 4.1 implies
[TABLE]
Clearly this inequality also holds if . By applying this inequality for each , we get
[TABLE]
which completes the proof. ∎
4.4 Simple Graphs: Discharging and Finishing the Coloring
In this section we continue our proof that our counterexample is “well-behaved”; we ultimately construct an nb-coloring of , which contradicts that is a counterexample.
4.4.1 Discharging to Force Structure
Let ††margin:
denote the degree of vertex , when we count each edge-gadget as contributing 2 to the degree of each endpoint. Throughout this section whenever we write degree we mean .
Let ††margin:
denote the set of vertices in that are uncolored, degree 3, and not incident to any edge-gadget ( is for low degree, or little risk). Let (here is for bigger degree, or bigger risk). Let ††margin:
denote the set of vertices in that are uncolored, degree , and not incident to any edge-gadget. Let ††margin:
denote the set of vertices in that are degree and incident to an edge-gadget. Let ††margin:
denote the set of vertices in that are degree and in . By Proposition 4.9 each vertex is incident to at most one edge-gadget, and not incident to an edge-gadget at all when . That is, for each . Let ††margin:
. We will use discharging to show that nearly all of is contained in and that has very few edges. In particular, we will show that . Our idea is to assign charges to that sum to at most 4, and to discharge so that every vertex and edge has nonnegative charge, but each vertex outside has positive charge.
We recall a few useful facts. By Lemma 4.28, . By Lemma 4.29, is a forest. By Lemma 4.3, , and by hypothesis .
We assign to each vertex and edge a charge, denoted or as follows. For each vertex , let , and for each , let . For each edge-gadget , let .††margin:
(Each edge that is not an edge-gadget has .) The sum of these initial charges is
[TABLE]
We use only a single discharging rule, and write ††margin:
for the charges after applying it.
- (R1)
Each vertex gives to each adjacent 3-vertex and gives to each edge with its other endpoint in (which means giving to each incident edge-gadget).
Now we show that each vertex and edge ends with nonnegative charge. Note that each edge-gadget has since, by definition, both its endpoints are in . Further, each edge induced by has . For each tree of , we compute the charge of the entire tree (the sum of the charges of its vertices), showing it is at least 1. Let . The number of edges with exactly one endpoint in is . Note that So .
Now we consider vertices in . If , then . Recall that ; that is, each vertex has at least 3 neighbors (excluding multiplicity for edge-gadgets). So if is incident to an edge-gadget, then . Thus, if , then . Hence, if , then .
Let denote the number of components in . Recall that and denote, respectively, the number of edges in that are not edge-gadgets, and are edge-gadgets. Our observations imply that
[TABLE]
In Lemma 4.31 we use (7) to greatly restrict the structure of . For the proof we will use a key lemma about extending nb-colorings of to all of . To keep the flow of our presentation, we state the lemma now, but defer its proof a bit longer.
Lemma 4.35 (Rephrased)****.
For a graph , let be a coloring of some such that is an nb-coloring of , and such that is a forest in which each vertex has degree 3 in . We can extend to an nb-coloring of whenever each component of the forest has either (i) a leaf with no neighbors in colored or (ii) an odd number of incident edges leading to neighbors in colored .
Lemma 4.31**.**
, , , and .
Proof.
The first inequality follows directly from (7). Next we recall that , which implies ; combining these inequalities yields . Since (7) implies , we must have . That is, . Since , note that (7) implies . Further, if , then (7) fails, since , so ; thus, .
All that remains is to show that . This will imply , since otherwise we can color with and color with . Since and , to show that , we will show that , , and .
Suppose that . Inequality (7) implies that , and . Let denote the vertex in , and let denote the neighbors of . Since , each is in . Let denote the subgraph of that is the union of the three paths with endpoints in . Either is a subdivision of or else is a path. In the first case, let denote the vertex of degree 3 in . Now we let and . In the second case, some has degree 2 in ; by symmetry, say it is . Now let and . Thus, we must have .
Suppose that , which implies that . Now (7) implies , , , and . Let denote the 2 endpoints of the edge-gadget. Since , let . If has at least three leaves, then one of them, call it , has a neighbor not in . Choose such that . Let and . Since has two neighbors in colored , we can extend the coloring to by Lemma 4.35 (Rephrased), part (i). Thus, we assume has only two leaves; that is, is a path. Further, we assume that each leaf of is adjacent to both vertices in , since otherwise the argument above still works. Since has no copy of , the path is longer than a single edge. So . Let denote a vertex of and a vertex in . Let .
Let denote the neighbors of along the path (in order). Let and . It is easy to check that is an nb-coloring of . Thus, , which implies .
Finally, suppose . Now (7) implies , , and . So let . Let denote the edge induced by and let denote an endpoint of with . Let and . The only edges incident to with an endpoint colored are the 3 edges incident to (other than ). So we can extend the nb-coloring of to by Lemma 4.35(ii). This shows that , which completes the proof of the lemma. ∎
4.4.2 Why the Theorem We Prove Must Be Sharp
In Section 4.4.4 we will show that if a graph satisfies , , has its vertices of degree induce a forest with components, and has at most edges with both endpoints of degree , then either (i) is near-bipartite, (ii) contains a subgraph isomorphic to , or (iii) is or . In Section 4.4.3 we prove several lemmas that help us find nb-colorings. Even with these tools, Section 4.4.4 consists of a long, technical case analysis. So, before we continue, we should explain why Section 4.4.4 is essential.
Our case analysis would be greatly reduced if we could instead assume that , and it would be nearly trivial if . These assumptions correspond to the moderately weaker result that is near-bipartite whenever all satisfy (respectively ). The work in Section 4.4.4 is necessary because such modifications would make our work up to this point more difficult, bordering on impossible.
The technique that we use—letting be a minimum counterexample—is akin to a proof by induction. A weaker theorem provides a weaker inductive hypothesis888Leading to a dictum of Douglas West, “If you can’t prove something, try proving something harder!”. The gaps in the gap lemmas ( and ) correspond to the decreases in potential resulting from precoloring a single vertex ( and ). The latter values would not change by altering the statement of the Main Theorem. If we merely had the weaker inductive hypothesis that graphs smaller than with potential at least are near-bipartite, then our first gap lemma (Lemma 4.6) would be insufficent to precolor a vertex (Lemma 4.10). But we cannot delay proving Lemma 4.10 until after a larger gap is proved precisely because Lemma 4.10 is used in the proofs of the stronger gap lemmas (Lemmas 4.11 and 4.24).
4.4.3 Coloring Lemmas
In the previous lemma we showed that . Further, , , and . In Section 4.4.4, we will show how to color . Our main tools will be Lemmas 4.35 and 4.36, which allow us to extend partial nb-colorings to components of . To prove the first of these, we use the following technical result. Let ††margin:
denote the disjoint union of sets and . When vertices and are adjacent we write , and otherwise ††margin:
. An operation that we will use repeatedly is to suppress††margin:
suppress a vertex of degree 2, which is to delete it and add an edge between its neighbors.
Lemma 4.32**.**
Let be a tree in which each non-leaf vertex has degree 3. Let be a partition of the leaves of . If is odd, then has an independent set such that and , and also each component of contains at most one leaf of .
Proof.
Let denote the number of leaves in . Our proof is by induction on . If , then is an isolated vertex contained by . Set . If , then and . Set . For good measure, we also consider , where . If all leaves are in , then we take to be the center vertex. Otherwise, one leaf is in and the other two are in , so we take to consist of the two leaves in .
Now suppose that . The number of non-leaf vertices in is , and each of these has at most two leaf neighbors. By Pigeonhole, some non-leaf vertex has exactly two leaf neighbors, say and . If , then we apply induction to , with leaf partition , where and . If , then we assume (by symmetry) and let . We apply induction to with and , and let be the guaranteed independent set. Let . Finally, suppose that . Now let denote the third neighbor of . Form from by suppressing . Let and . Given the independent set for by induction, let . ∎
Remark 4.33**.**
Recall, from Lemma 4.31, that and that is a forest. All figures in the rest of the paper will denote nb-colorings of . Vertices in are drawn as and those in are drawn as . Edges in bold denote those induced by vertices of .
Definition 4.34**.**
Fix an nb-coloring of . Now each edge from a vertex of to a vertex of colored is an -edge††margin:
-edge (an -edge is defined analogously). We say that the -edges incident to a component of are -edges belonging to . A component of is -odd††margin:
-odd (resp. -null††margin:
-null ) if its number of -edges is odd (resp. 0). Further, is -leaf-good††margin:
-leaf-good if some leaf of has two neighbors in colored . (If is -null, then clearly is -leaf-good.)
Lemma 4.35**.**
For a graph , let be a coloring of some such that is an nb-coloring of , and such that is a forest in which each vertex has degree 3 in . We can extend to an nb-coloring of whenever each component of the forest is either (i) -odd or (ii) -leaf-good.
Proof.
Suppose that , , and satisfy the hypotheses. Let be a (tree) component of . We show how to extend to so that no two of its vertices with incident -edges are linked by a path in entirely colored .
From we form a new tree , and leaf partition , as follows. When a non-leaf of has an incident -edge, we suppress . When a non-leaf of has an incident -edge, we add a leaf incident to and add to . When a leaf of has two incident -edges, we add to . When a leaf has both an incident -edge and an incident -edge, we add to . Now consider leaves of with two incident -edges (if such leaves exist). For all but one of these, say , we add them to or arbitrarily. Finally, we add to either or so that is odd. Under both hypotheses (i) and (ii), we get that is odd.
Now we invoke Lemma 4.32, to find an independent set such that and , and also each component of contains at most one leaf of . We color each vertex of with , except for leaves of with two incident -edges. It is easy to check that no two vertices of with incident -edges are linked by a path in all colored . ∎
Lemma 4.36**.**
Let be a tree or else be connected and have a single cycle , which is not a 3-cycle. Form from by adding a new vertex and making adjacent to at most four vertices in , at least one of which is on , if exists. Now has a near bipartite coloring with .
Proof.
First suppose that is a tree. If at least neighbors of induce an independent set, then we color them with and color the rest of with . If this is not the case, then and the four neighbors of induce either 2 or 3 edges. In each case, we can color two of these neighbors with and the rest of with .
So assume instead that has a cycle, . Let . Our goal is again to use color on some independent set . As before must intersect every cycle in through , but now we also require that some vertex in lies on . If some independent has size at least and intersects , then we are done. This includes the case when induces at most one edge, specifically when . If , but the case above does not apply, then induces with only the center vertex on ; so we let consist of this center vertex. Thus, we assume that , and that induces 2, 3, or 4 edges.
First suppose that induces 4 edges. Since has no 3-cycle, . Now all vertices of lie on , so we take to be either independent subset of size 2.
Suppose instead that induces 3 edges; so . When , let be the independent subset of size 3 unless it does not intersect ; in that case, let be the other vertex. If , then denote the vertices of by in order along the path. We either let or let . (If each choice for misses some cycle in , then contains at least two distinct cycles, contradicting the hypothesis.)
Finally, assume induces two edges; so . Suppose . If the independent set of size 3 has a vertex on , then we are done. Otherwise, let consist of the center vertex of the and its nonneighbor. So assume instead that . Now it is straightforward to check that we can use as one of the independent sets of size 2 (the general idea is to use one with as many vertices on as possible, though not all such sets will work). ∎
4.4.4 Coloring the Graph
Recall that . Let denote the subset of incident to edges in . (Since , we have .) We form ††margin:
, from by deleting all vertices of and suppressing all of their neighbors that were not leaves in . (Later we also use the notation . In each case, the reader should think of ††margin:
as meaning ‘shrinking down to the most important part’.) If has an nb-coloring , then we can extend this coloring to by adding the deleted vertices of to and the suppressed vertices of to . Our goal is to color . If we can’t, then we try unshrinking a deleted vertex and its 4 suppressed neighbors. If no vertex exists to unshrink, then we show that contains a forbidden subgraph, contradicting our hypothesis.
We often use Lemma 4.36 to extend an nb-coloring of to a tree of , specifically when induces a cycle. The idea is to find a vertex and add it to . This allows us to add neighbors of in to (as long as they are not leaves in ). When we do this, we call the helper††margin:
helper and say that we color by Lemma 4.36, with as helper.
When we describe an nb-coloring of , we often specify only the vertices in , implying that is colored . We extend this coloring to each component of using Lemmas 4.35 and 4.36.
Lemma 4.37**.**
If , then is near-bipartite.
Proof.
Suppose that . Now Lemma 4.31 implies ; hence we write for . Note that ; see Figure 11. (Here denotes a tree on 4 vertices with three leaves, denotes a path on vertices, denotes the disjoint union of and , and denotes .) All cases but the last can be handled quickly (as we show below) by coloring so that we can extend the coloring to using Lemma 4.35.
In each case we describe and implicitly let . If , then let consist of the leaves in the . Since has 9 -edges, it is -odd, so we can extend the coloring by Lemma 4.35. If , then let , where and are at distance two along the . Now has 5 -edges. If , then let , where is a leaf of the and is the center vertex of the . Now, has 5 -edges, so is -odd. Finally, suppose . Let consist of one vertex from each . Again, has 9 -edges, so is -odd.
Now assume . If has at least 4 leaves, then also has some isolated vertices, one of which is adjacent to a leaf of . Let , where the are two vertices of not adjacent to . Now we can extend the coloring to , since it is -leaf-good. So assume that has at most 3 leaves. Further, we assume that each leaf has two neighbors in , since otherwise the argument above still works. Form ††margin:
from by suppressing each vertex with that has a neighbor in . Now has six incident edges to , so ; see Figure 12.
Suppose that , and let denote the vertices of . So , as shown in Figure 1. Let denote a leaf of that is not adjacent to , and pick ; vertex exists since is forbidden as a subgraph, so . Let , and color with . The subgraph induced by has a single cycle. We assume that has a neighbor on this cycle; if not, then we repeat the argument with or in place of . Thus, we can extend the coloring to by Lemma 4.36, using as helper.
Assume instead that . Suppose that . By Pigeonhole at least one vertex in is adjacent to both leaves of the . Now we have three ways for the remaining two vertices of to attach. Thus, we have three possibilities for , each with 7 vertices. Two of these are non-planar (one has a -minor and the other a -minor). Each non-planar case has an independent set of size 3, which we take as . In fact, this approach works whenever is either of these non-planar graphs; since has an coloring, so does . So assume instead that is the other possibility; it is planar and contains as a (non-induced) subgraph. This implies that , so . Let denote a leaf of and its neighbors in . Since , tree has a helper vertex . Note that is unicyclic, and let denote its cycle. We assume that has neighbors on , since if not, then we repeat the argument with replaced by the other leaf of . Let . Now we can extend the coloring to by Lemma 4.36, using as the helper. This finishes the case . ∎
Lemma 4.38**.**
If , then is near-bipartite.
Proof.
If , then and . Suppose . If , then we color as follows. Let denote a leaf of and let . We are done by Lemma 4.35(i), since (and therefore also ) has exactly 5 -edges. Thus, we assume .
We denote the two trees of by and . Let and denote the leaves of , and let denote its non-leaf vertex. If has a single neighbor in each of and , then let . Each is -odd, so we are done. Thus, we assume has two neighbors in (by symmetry). Further, is a path with adjacent to both endpoints, since otherwise letting makes both and be -leaf-good. Note that the numbers of edges incident to and that lead to must have the same parity. If not, then we let and both and are -odd. So the possibilities for the numbers of edges from and to are 0,0; 0,2; 2,0; 2,2; 1,1; 1,3; 3,1; and 3,3. We refer to these as Case 0,0; Case 0,2; etc.
The easiest to handle are Cases 3,3 and 1,3 (and 3,1, by symmetry). Let , which makes to be -odd and to be -null. So now assume that and each have at least one neighbor in .
Before considering the other cases, we prove the following claim.
Claim 4.39**.**
No vertex in has a neighbor in .
Proof. Suppose, to the contrary, that such a vertex exists; call it . If has an odd number of edges to and , the we let . Both and are -odd, so we are done. If , then let ; since is -null, we color it by Lemma 4.35, and we color by Lemma 4.36, using as helper. So assume that has two edges to each of and . If a leaf of is not incident to , then let so that is -leaf-good and colorable by Lemma 4.35, while is colorable by Lemma 4.36, using as helper. Assume instead that is a path whose endpoints are adjacent to . If has no neighbors in , then let ; now is -odd, so colorable by Lemma 4.35, and is colorable by Lemma 4.36 using as helper. If has one neighbor in , then let so that is -odd, and thus colorable by Lemma 4.35, while is colorable by Lemma 4.36, using as helper. Because we have already ruled out cases 3,1 and 3,3; it follows that must have exactly two neighbors in . By symmetry, also has exactly two neighbors in .
Let be the vertices of in order. Let be the four neighbors of or in in order; note that these are distinct, since . If , then let and color with Lemma 4.35 since is -odd. To color , contract into a vertex , and then color by Lemma 4.36 using as helper. By symmetry, we assume that . By symmetry between and , let us assume that , and thus . Under these assumptions, color with and and extend this coloring to all of via Lemma 4.35 since is -odd. Therefore .
This claim shows that Case 0,0 is impossible. Since contains no copy of , Cases 2,0 and 0,2 are also impossible. So all that remain are Case 1,1 and Case 2,2.
Suppose we are in Case 1,1. That is, and each send a single edge to . By the claim, this implies that . This is shown on the left in Figure 13, where is on top, is on bottom, and are in the center. Now must be a path with and each adjacent to both endpoints of (otherwise we let or , so is -odd and is -leaf-good). If , then let . We extend this coloring to as follows. Color the endpoints of and with and the rest of with , and color all of with . (Now has a -path in , but it does not extend to a cycle in .) But if , then contains the Moser Spindle (in fact is the Moser Spindle), which is a contradiction. This completes Case 1,1.
Suppose we are in Case 2,2. That is, both and have two edges to and so is a path on four vertices; see the right of Figure 13. Let denote the vertices of in order. If and are neighbors of the same , then by symmetry assume it is . Now let . To color , use on and and use on the rest of . Finally, we can color , since it is -odd. So instead and must be neighbors of distinct . By symmetry, we have only two cases: either (a) and or (b) and . In (a) subset induces the Moser Spindle , a contradiction. In (b), let and color as . Finally, color by Lemma 4.35, since it has exactly 1 -edge. This completes the case .
Now suppose that . Denote the vertices of by , where and .
Claim 4.40**.**
* consists of two trees, and . We may assume that and each leaf of has both neighbors (outside of ) in the same component of . So has at most 4 leaves.*
Proof. If has only a single component, then let consist of three vertices in . Now the tree has 9 -edges, so it is -odd, and we are done by Lemma 4.35(i). Instead assume the forest has two trees, and . For each , let denote the parity of the number of edges from to . Suppose . Now let . We are done, since each is -odd. Thus . By swapping the roles of and , and also and , we get . By symmetry between and , we assume that each has an even number of edges to . Suppose there exists a leaf of with at most one neighbor in . (This includes the case that , since .) Let consist of three vertices in , excluding any neighbor of . Now we are done, since is -leaf-good, by , and is -odd. Thus each leaf of must have both neighbors (outside of ) in . Since sends at most 8 edges to , we conclude that has at most four leaves. If some leaf of has neighbors in two components of , then we are also done, as follows. Let consist of three vertices in , including both neighbors of . Again is -odd, so we can color it by Lemma 4.35(i). We can also color , by treating like a vertex with its two neighbors in colored . Now may contain a path colored linking these neighbors of , but it will not extend to a cycle colored , since the neighbors of are in different components of .
It suffices to color , since we can extend the coloring to by coloring each suppressed vertex with . We show that each vertex of has 2 edges to . (This number is always either 0 or 2, as we showed just prior to Claim 4.39.) Recall that each leaf of has both neighbors (outside ) in the same component of . Since has a leaf, its two neighbors in each send two edges to . First suppose they are the only two such vertices in . Recall that each leaf of has its two neighbors in in the same component of ; so assume that and both have two edges to and and have none. Note that , since . So there exists with a neighbor in . If sends an odd number of edges to each , then we let , and we are done since each is -odd. So assume sends an even number of edges to each . Now let . Again is -odd. And we can color by Lemma 4.36, with as helper.
Now instead suppose that exactly three vertices in each have two edges to ; by symmetry, say . Form from by suppressing each vertex such that and has no neighbor in . It suffices to color , since we can extend the coloring to by coloring each suppressed vertex with . As is true for , each leaf of has both neighbors in the same component of , so has only two leaves (that is, and are paths). Denote the vertices of by . So and . Let . Now has five -edges and so it is -odd. To color , use on and use on . Thus, we conclude that each of the four vertices of sends two edges to , so .
Suppose that is a path; see Figure 14). Label its vertices (from left to right) and let denote the neighbor of in , for each (possibly the are not distinct). If , then color so that uses , uses , and in each component of one vertex uses and the other one uses . This implies that , since each leaf has both neighbors in in the same component of . To extend the coloring to , we use on the vertices and such that (and color the other with ). By symmetry, assume that . Because the neighbors of and are in the same component of , the above coloring of satisfies the conclusion of Lemma 4.35; in particular there is no path between and in . Thus we can color all of with .
So assume and (by symmetry) . Since and have both neighbors in the same component of (and is simple), we have . So say , , and . Let . To extend this coloring to , color with and color with . Since is -odd, we can extend the coloring to by Lemma 4.35. Thus, we conclude that is not a path.
Suppose has exactly 3 leaves; see Figure 15. Now is formed from a 5-vertex path by adding a pendant edge at one internal vertex. Denote the vertices of the path by and the new leaf by . By symmetry, we assume either or . In the first case, color one vertex in each component of with and the other with , so that the neighbor of is colored . Now each leaf of has one neighbor colored and one colored , so has a neighbor colored . To extend the coloring to , color with and color with . Because the neighbors of the leaves are in the same component of , the above coloring of satisfies the conclusion of Lemma 4.35; in particular there is no path between vertices of in . Thus, we can color all of with . This finishes the case when . So instead assume . Since each leaf has both neighbors in the same component of , also and have their neighbors in the same component of . By symmetry between and , assume this is not the component with vertices adjacent to . Now color the neighbor of in with and the rest of with . We extend this coloring to using Lemma 4.35, since is -odd. If has a neighbor colored , then we extend the coloring to the ’s by coloring with and coloring with . Otherwise, only and have neighbors colored , so we color with and color with . This completes the case that has three leaves.
Finally, suppose has exactly 4 leaves; see Figures 16 and 17. Recall that all internal vertices of have degree 3, so has two adjacent 3-vertices. Let denote the leaves of with and ; this follows from Claim 4.40. In Figures 16 and 17, vertices are drawn at top from left to right. By symmetry between and , we assume . Let and denote (respectively) the neighbors in of and . Either (left) or else (center and right). In the first case, let . To extend the coloring to , use on and use on . (Again is -odd.) So assume we are in the second case: . Suppose some pendant edge of corresponds to a path of length at least 2 in ; by symmetry, say it is (center). Let . To color , use on and use on . (Again is -odd.) Similarly, suppose corresponds to a path of length at least 2 (right). Now let . Color with and color with . Because there is no path in from to , we may color with . Thus, we conclude that ; see Figure 17.
Suppose some leaf of has a neighbor in . In each component of , color one vertex and the other ; do this so that any neighbor of in is colored . Now is -leaf-good. By symmetry, we assume that and . For , color with and with . This does create a -path in through , but this is okay, since no such path exists in . Thus, each leaf of has no neighbors in . Since has only 4 edges to , we see that is a path. Suppose a leaf of has neighbors in distinct components of , by symmetry say and . Now we color as in the immediately previous case. We color with and with . Thus, no such exists. Suppose . Color all of with , color with , and color with . Thus, we conclude that . So is the 12-vertex graph below, which is nb-critical. It is forbidden by the hypothesis, which is a contradiction. This completes the case that . ∎
Lemma 4.41**.**
If , then is near bipartite.
Proof.
Suppose . Denote by . If has only a single component, then color with and color with . We can color , since it is -odd. Suppose instead that has two components; call them and . Suppose has 3 edges to (and none to ). Let . Now is -odd and is -null, so we are done. Thus, by symmetry we assume and each have 1 edge to one tree and 2 edges to the other. If and have (respectively) 1 and 2 edges to , then let ; now both and are -odd. So assume that and each have 1 edge to and 2 edges to . Suppose some leaf of has a neighbor . Let consist of a single vertex of that is not adjacent to . Now is -leaf-good and is -odd. Thus, all leaves of have no neighbors in . So is a path. Since , we know . So there exists with a neighbor in . If sends an odd number of edges to both and , then we let , and both and are -odd. Otherwise, let . Again, is -odd. Also, we can color by Lemma 4.36, with as the helper. Thus, we conclude that has three components; we call these , , .
We say that splits as ††margin:
splits as if has edges to , for each . For we have and for , we have . If we care only about the parities of the , we say, for example, that splits as e/o/o††margin:
e/o/o (to denote that is even, while and are odd). If splits as or as some permutation of , then let . Now we are done, since is -odd, while and are both either -odd or -null. So assume that (and , by symmetry) splits as some permutation of . By symmetry between the , we assume that splits as . A priori we have 6 cases for how splits (in increasing order of difficulty): (a) 1/2/0, (b) 2/0/1, (c) 0/1/2, (d) 1/0/2, (e) 0/2/1, (f) 2/1/0. Before considering these cases, we prove an easy claim.
Claim 4.42**.**
If has 2 edges to , then is a path with each endpoint adjacent to .
Proof. Suppose not. By symmetry we assume that has 2 edges to , 1 edge to , and 0 edges to , but has a leaf such that . Let . Now is -leaf-good (by ), is -odd, and is -null. So we can extend the coloring of to all of , a contradiction.
Now we consider cases (a)–(f). For (a), let . Now and are -odd, while is -null. For (b), Claim 4.42 implies that is a path with each endpoint adjacent to both and . Note that , since . Let and note that and are both -odd. To color , use on both leaves and everywhere else. This finishes (b). Note that (d) and (e) are the same case, by symmetry between both the ’s and the ’s. Thus, we must consider cases (c), (d), and (f). In all figures for this proof, and are drawn on top; , , and are drawn in the middle (from left to right); any vertices drawn at bottom are in .
Case (c): splits as 2/1/0 and splits as 0/1/2. By Claim 4.42, is a path with both endpoints adjacent to ; similarly, is a path with both endpoints adjacent to . See Figure 18. If some splits as o/e/o, then let . Now each is -odd, so we are done. Suppose some splits as e/e/e; we consider the possibilities. If splits as 0/0/4, then let . Now is -null, is -odd, and we can color by Lemma 4.36, with as helper. So cannot split as 0/0/4; similarly, cannot split as 4/0/0. If splits as 0/2/2, then let . Now is -null and is -odd. To color , use on one neighbor of and color the rest of with . So assume no vertex splits as 0/2/2; similarly, no vertex splits as 2/2/0. Thus each vertex that splits as e/e/e splits as 2/0/2 or 0/4/0. If instead there exist that split (respectively) as o/o/e and e/o/o, then let . Again, each is -odd, so we are done. By symmetry (between and ) we assume that no vertex in splits as e/o/o. Hence, every vertex splits as o/o/e or 2/0/2 or 0/4/0.
We consider the possibilities for a vertex that splits as o/o/e. If splits as 1/1/2, then let . Trees and are both -odd, and we can color by Lemma 4.36, with as helper. So each must split as 1/3/0, 3/1/0, 0/4/0, or 2/0/2. Since has a neighbor in , some splits as 2/0/2. Suppose some splits as 1/3/0 or 3/1/0. Let . Trees and are -odd, and we can color by Lemma 4.36, with as helper. So assume no such exists. That is, each vertex splits as 2/0/2 or 0/4/0. Recall that splits as 2/0/2, and suppose that has a neighbor that is not a leaf of or . By symmetry, say . Let . To color , use on and on the rest of . To color , use on a neighbor of (and on the rest of ). Finally, is -odd. So assume that no such exists. This implies that is unique. So and . But now induces a Moser spindle, which is a contradiction. This finishes Case (c).
Case (d): splits as 2/1/0 and splits as 1/0/2. By Claim 4.42 is a path with both endpoints adjacent to and is a path with both endpoints adjacent to . Consider some vertex and the parities of edges that has to , , and . A priori, the options are o/o/e, o/e/o, e/o/o, and e/e/e. If splits as e/o/o, then let . Now each is -odd, so we are done. Similarly, if splits as o/e/o, then let . So assume each vertex in splits as o/o/e or e/e/e.
Suppose , as on the left of Figure 19. Let be a neighbor of some internal vertex of . Suppose splits as e/e/e. Let . Note that and are -odd. To color , we use Lemma 4.36, with as helper. So assume instead that splits as o/o/e. (Since sends edges to , it splits as 1/1/2.) Let , and note that is -odd. Color with and color the rest of with . Finally, is -even. We color all of with . This creates a single -path colored in , but this is okay since neither nor has such a path. This implies that , as on the right of Figure 19.
Let be a neighbor of other than . If splits as e/e/e, then the argument in the previous paragraph still works. So assume splits as o/o/e, that is, as 1/1/2.
Suppose either or has a neighbor in that is not a leaf of . Let . Note that is -odd. To color , we use on and use on the rest of . (Note that and each have only a single neighbor in , and one of these neighbors, , is colored , so has no -path in .) To extend to , we color one of its vertices with and the other with . Thus, no such exists. That is, is simply the two leaves of ; see Figure 20.
Suppose that , and let be a neighbor of in . Recall that each vertex in splits as o/o/e or e/e/e. If splits as o/o/e, then let . Note that and are both -odd. Although is -even, we simply color one of its vertices with and the other with . So instead assume that splits as e/e/e. Since is , vertex sends no edges to . We let . Now is -odd, and is again easy to color. Since is -even, we color it by Lemma 4.36, with as helper. So we conclude that no such exists. That is, . Now induces a Moser spindle, which is a contradiction. This finishes case (e).
Case (f): splits as 2/1/0 and splits as 2/1/0. By Claim 4.42, is a path with each endpoint adjacent to both and . Note that , since . If has a leaf adjacent to neither nor , then let . Now is -leaf-good and is -null. Since , we can color both leaves of with and its internal vertices with . So is a path with each leaf adjacent to one of . We consider a vertex and the possible ways it splits. If splits as o/e/o, then let . Now each is -odd, so we are done. The other possibilities for the way that splits are 1/3/0, 3/1/0, 0/1/3, 0/3/1, 1/1/2, 2/1/1, 4/0/0, 0/4/0, 0/0/4, 2/2/0, 2/0/2, 0/2/2. If splits as 1/3/0 or 3/1/0, then let . Now and are -odd, and is -null. If splits as 0/1/3 or 0/3/1, then let . Now and are -odd. To color , use on its two leaves and use elsewhere. If splits as 4/0/0, then let . Now is -odd and is -null. We color by Lemma 4.36, with as helper. If splits as 0/4/0, then let . Now is -null. To color , use color on its leaves and use elsewhere. To color , use Lemma 4.36, with as helper. If splits as 2/2/0, then let . Note that is -null and is -odd. To color , use on one neighbor of in , and use on the rest of . Suppose that splits as 2/1/1. By symmetry between and , assume that and do not dominate all leaves in . Now let . Clearly, is -odd, and is -leaf-good. For , color one neighbor of in with and color the rest of with . We have handled all possibilities for the way splits except 1/1/2, 2/0/2, 0/2/2, and 0/0/4.
Suppose is not a path (so it has at least three leaves). Since , there exists that splits as either 1/1/2 or else 2/0/2. In the first case, let . Trees and are both -odd. And is -leaf-good, so we are done. In the second case, let . Again is -leaf good, and is -odd. We color by Lemma 4.36, with as helper.
So assume is a path; see Figure 21. Suppose some splits as 0/0/4. Since , some splits as 1/1/2 or 2/0/2. If is not adjacent to both leaves of , then we can ignore and repeat the argument that starts this paragraph. If splits as 1/1/2, then let , so that and are each -odd, and color by Lemma 4.36, with as helper. If splits as 2/0/2, then let , so that is -odd, can be handled by coloring one neighbor of with (and the rest with ), and can be colored by Lemma 4.36, with as helper. Thus, no such exists. Now we are down to three ways that vertices in split: 1/1/2, 2/0/2, 0/2/2.
Suppose some splits as 2/0/2 and some splits as 1/1/2. By the previous paragraph, they must both be adjacent to both leaves of . Now let . Trees and are both -odd. For , we color one leaf with and the rest of with . This implies that vertices split as exactly one of the ways 2/0/2 and 1/1/2 (since ). Suppose splits as 2/0/2. Since has more than two incident edges, some splits as 0/2/2. Let . Note that is -odd. Use to color a neighbor of in and a neighbor of in . So no vertex splits as 2/0/2.
Since , some vertex splits as 1/1/2. If is not adjacent to both leaves of , then let . Now and are -odd, and is -leaf-good. So assume is adjacent to both leaves of . Suppose there exists of type 0/2/2. Let . Again, and are -odd. To color , use on a neighbor of , and use elsewhere. So no such exists. That is, all vertices in are type 1/1/2. Further, each is adjacent to both leaves of , so exactly two such vertices exist. Thus, and and . This implies that . There is exactly one possibility for . It is shown on the right in Figure 21, along with an nb-coloring. This finishes Case (f), finishes the larger case that , and completes the proof of (B) in our Main Theorem. ∎
5 Algorithmic Details
Section 4 contains two types of assertions: (i) graphs of a certain form are near-bipartite and (ii) graphs of a certain form do not satisfy the assumptions of the Main Theorem. To prove each assertion of type (i), we find an nb-coloring. So our proof is constructive, and naturally yields an algorithm. In this section we detail the efficiency of this algorithm. We assume the graph is stored as a list of vertices, and that each vertex stores a list of incident edges, multiedges, edge-gadgets, and its precoloring (if this exists).
Let denote the maximum running time of the algorithm on a multigraph with vertices, and let denote the corresponding function for simple graphs. As before we write in statements that hold for both and . Our algorithm is recursive, so our upper bound on is in terms of . We use the crude estimate for sufficiently large and . Thus, to prove it suffices to show that . When contains a vertex set with small, we first color and second color , formed from by contracting down to two vertices. That is, the algorithm recurses on two graphs and , which satisfy . (This case arises in the proofs of our gap lemmas.) Simple calculus shows that , with , is maximized when . So if for all and some fixed , then . Hence, to prove it also suffices to prove that . So in the individual steps below we focus on the time to construct the recursive calls, and extend the colorings afterward. Only after listing all steps do we account for the time spent on the recursive calls.
We assume that every graph with at most vertices can be nb-colored in time , if it has an nb-coloring. We also assume that we can iterate through each graph in in time . Since each graph in has at most vertices, we can determine whether a given pair of vertices is linked in a graph with order by a graph in in time . In practice this can be done much faster, since we only need to consider connected subgraphs.
We start with Part (A) of the Main Theorem. Let be an input graph with vertices. We assume that satisfies the hypotheses of the Main Theorem, so . We list in order the steps of the algorithm. Each step except the last describes how to color the graph if it satisfies certain conditions. Each step assumes that the conditions of the previous steps fail to hold. We will show that .
is disconnected. We recurse on each component. Determining the components of a graph can be done by breadth first search in time since . 2. 2.
contains a vertex satisfying at least one of the following conditions: , is precolored , , or and is uncolored. Each of these criteria can be tested in time . If any criterion is satisfied, then we apply the proof of Lemma 4.2, 4.3, 4.4, or 4.5. Constructing the graph to recurse on takes time ; extending the coloring takes time . 3. 3.
contains a proper non-trivial vertex subset with . We find a subset with smallest potential, and among them choose one with largest order (so ). By Corollary 2.4 with and , this takes time . We recurse on , and then construct as in the proof of Lemma 4.6. Constructing takes time . Merging the two colorings takes time . So the total time for these steps is . 4. 4.
contains a vertex subset with and . We use the same operations as in the previous step, but apply Corollary 2.4 with . Our running time is now . 5. 5.
contains a vertex satisfying at least one of the following conditions: , is precolored , is incident to a multiedge, or has neighbors that are adjacent. The first three criteria can be tested in time ; the last in time . We apply the proof of Lemma 4.12, 4.13, 4.15, or 4.17. Constructing the graph to recurse on takes time ; extending the coloring also takes time . 6. 6.
We apply the proof of Lemma 4.18. Constructing the graph to recurse on takes time ; extending the coloring also takes time .
In each step above, the time spent on pre- and post-processing the recursive calls is , and the time for the recursion is . Thus, we have . So .
We now consider Part (B) of the Main Theorem. Since we merged arguments in Section 4.1, the first three steps are the same; so we omit them below. Before we list the algorithm’s steps, we note that by the start of Section 4.3 (where we begin after skipping the common three steps), we have proved Lemma 4.21: If two vertices in are linked, then they are specially-linked (and the linking graph is in ). So we can decide if a given pair of vertices is linked in time . Also note that can be constructed in time . Let denote the set of uncolored vertices of degree with no incident edge-gadgets. Note that applying the arguments of Section 4.4.3 takes time . As above, for each step we focus on the pre- and post-processing time. Only at the end do we consider the time for the recursion. We will show that .
contains an induced cycle of length or . We can find in time . If has length , then we apply Lemma 4.22. Constructing the graph to recurse on takes time ; extending the coloring also takes time . If has length , then we must find a pair of vertices in that are not linked. We check pairs, which takes total time . Constructing as in Lemma 4.22 (the graph we recurse on) takes time ; extending the coloring also takes time . 2. 5.
contains a vertex subset with and . We perform the same operations as in step 3 above, but apply Corollary 2.4 with . The running time is now . 3. 6.
contains an induced cycle of length . We can find in time . We perform the same operations as in step 4 above, but now we check vertex pairs. 4. 7.
contains a vertex with . We can find in time . We apply the proof of Lemma 4.28. Note that Case 3 of Lemma 4.28 (where the neighbors of are linked) implies that . So . We assumed above that , so we can construct the graph to recurse on in time ; extending the coloring also takes time . 5. 8.
contains an induced cycle . Now can be found in time . We perform the same operations as in step 4 above, but with Lemma 4.29 instead of Lemma 4.22. We only need to check for non-linked pairs of vertices among neighbors of consecutive members of , so we only check pairs. Since , this step runs in time . 6. 9.
contains a vertex that satisfies at least one of the following: , is precolored, or is incident to an edge-gadget. Each of these criteria can be tested in time . We apply the proof of Lemma 4.31; finding the coloring takes time . 7. 10.
We apply the arguments of Section 4.4.4. Finding the coloring takes time .
Thus, , so .
Acknowledgments
Thanks to Jiaao Li for numerous helpful suggestions that improved the clarity of our exposition. Thanks to Richard Hammack for ideas to improve the figures, and to Marthe Bonamy for helpful discussions early on in this project. Finally, thanks to two anonymous referees. One provided extensive comments to help improve our presentation.
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1[1] N. Aerts and S. Felsner, “Vertex Contact Representations of Paths on a Grid.” Journal of Graph Algorithms and Applications 19 (3) (2015) 817–849.
- 2[2] R. Andersen and K. Chellapilla, “Finding Dense Subgraphs with Size Bounds.” Proceedings of WAW (2009) 25–37.
- 3[3] B. Bollobás and B. Manvel, “Optimal vertex partition.” Bull. London Math. Soc. 11 (1979) 113–116.
- 4[4] M. Bonamy, K. Dabrowski, C. Feghali, M. Johnson, and D. Paulusma, “Independent feedback vertex sets for graphs of bounded diameter.” Information Processing Letters 131 (2018) 26–32. Available at https://arxiv.org/abs/1707.09383 .
- 5[5] M. Bonamy, K. Dabrowski, C. Feghali, M. Johnson, and D. Paulusma, “Recognizing Graphs Close to Bipartite Graphs.” Proceedings of MFCS 42 (2017) # # \# 70. Available at https://arxiv.org/abs/1707.09817 .
- 6[6] O.V. Borodin, “On decomposition of graphs into degenerate subgraphs.” Metody Diskret. Analiz 28 (1976) 3-11. (in Russian).
- 7[7] O.V. Borodin and A.N. Glebov, “On the partition of a planar graph of girth 5 into an empty graph and an acyclic subgraph.” Diskretn. Anal. Issled. Oper. 8 (2001) 34–53. (in Russian)
- 8[8] O.V. Borodin, A.V. Kostochka, and B. Toft, “Variable degeneracy: extensions of Brooks’ and Gallai’s theorems.” Discrete Math. 214 (2000) 101-112.
