Section 4: Graph Traversability
There are two notions of traversability— traversing through all the vertices, or all the edges.
4.1: Eulerian Graphs
We ask: Can we begin at a vertex in a graph, and traverse all edges exactly once?
It’s okay to repeat vertices!
If the start and end vertex are different, it is a Eulerian Trail. Otherwise, if they are the same, it is a Eulerian Circuit, and we say is Eulerian.
Example: Eulerian Trails
graph LR 1 o--o 2 & 3; 2 o--o 4 & 5; 3 o--o 4 & 5; 4 o--o 5; 2 o--o 3;An eulerian trail exists, but NOT an eulerian circuit. One possible trail is given as follows:
Example: Lack of Eulerian Trail
graph LR 1 o--o 2 & 2 & 3; 2 o--o 3 & 4 & 4; 3 o--o 4;This is a graphical representation of the “Seven Bridges of Konigsberg”.
There does not exist any possible eulerian or trail circuit for the graph.
Theorem
Let be a connected (multi) graph. Then, is Eulerian if and only if every vertex has an even degree.
Proof
Proof
Given a Eulerian circuit, take an intermediate vertex in the circuit. Our first encounter with the vertex is “in”, and we must go “out” since this is NOT the start / end vertex.
We find that the total in’s must equal the total out’s, so there must be an even number of edges incident to the vertex.
For the starting vertex, our first encounter is “out”, and we must go “in”. Along the same logic, this vertex must have an even number of edges.
Proof
Consider a -trail of maximum length. We show that it must be closed, i.e. , so it is a circuit.
Observe if , ending at , the first encounter is “in”. We end at , so there will be 1 more “in” than “out”, meaning cannot have an even degree. Because does have an even degree, however, there must be one more “out” we can take, some NOT in the trail! This contradicts our claim that the trail is of maximum length, so , giving us a circuit.
Now, be a circuit of max length, and assume is NOT in the circuit, with in . Now consider , the graph without edges in . Let be the component containing .
Create a trail in of max length, and repeat the above argument to show that we must have a circuit. Now, append this circuit onto our original circuit to get a new (and longer) circuit. This contradicts that is the longest length circuit, so there cannot possibly be any not accounted for in the circuit!
Corollary: Graph has an Eulerian trail if and only if exactly 2 vertices have odd degree.
Example: Eulerian Proof
Let be a connected -regular graph that is not Eulerian. Suppose is also connected. Prove that either or must be Eulerian.
Suppose is Eulerian. We are done.
Suppose is not Eulerian. Then, such that odd. So, is an odd-regular graph.
If is an -regular graph, then is a regular graph, meaning is even. So, all vertices in have an even degree, meaning is Eulerian.
4.2: Hamiltonian Graphs
We ask: Can we begin at a vertex in a graph, and traverse all vertices exactly once?
We cannot repeat any vertices or edges! We don’t have to use all the edges, however.
A cycle (no vertex repeated except the start and end) in graph that contains every vertex is known as a Hamiltonian cycle of , and if such a cycle exists we say is Hamiltonian.
A Hamiltonian path is a path containing all vertices.
Let be the total components of graph after deleting vertex set and all edges incident to these vertices.
A graph is -tough if
For every that disconnects . The toughness of is the smallest for which is -tough,
Intuitively, the toughness value of a graph is small if we can delete only a few vertices, and separate the graph into many disconnected components.
Deleting a few vertices breaks the graph up into many subcomponents!
Example: Toughness in the Petersen Graph
graph LR 1 o--o 6; 2 o--o 7; 3 o--o 8; 4 o--o 9; 5 o--o 10; 1 o--o 2 o--o 3 o--o 4 o--o 5 o--o 1; 6 o--o 7 o--o 8 o--o 9 o--o 10 o--o 6;If we delete 7 vertices: 1, 3, 6 to 10, we get 2 components. Then, the toughness we calculate from this is , which is an upper bound of the graph’s actual toughness (maybe we can find a value smaller!)
Similarly, we could delete 4 vertices to get 3 components, giving us toughness ! It can actually be proven that this is the minimum.
This graph is a very common “counterexample” for many claims in graph theory!
Theorem
The toughness of the Petersen Graph is .
This means that the Petersen Graph is 1-tough, 1/2-tough, etc.
We define toughness, as we may be curious in finding if a Hamiltonian cycle can be found given some toughness of the graph!
Theorem: Necessity Condition for Hamiltonian Graphs
If is Hamiltonian, then . In other words, for all disconnecting subsets , we have .
Proof
Let , are the components.
If a cycle exists, start in . Every time we want to move into another component, we need to traverse one vertex in (as connects all the components). Hence for each component traversed we must visit a different vertex (by assumption of Hamiltonian cycle) in , so the size of must equal or be greater than the number of components.
The contrapositive of the theorem is quite useful to disprove Hamiltonicity! We find the existence of a set such that .
Note that the converse of the theorem is not true. If , that does not necessarily mean that the graph is Hamiltonian. As a counterexample, consider the Petersen Graph, with , but shown to not be Hamiltonian.
Then, what toughness value is enough?
Conjecture:
It used to be conjectured that worked for Hamiltonian graphs, which was disproved in 2000. This is an open problem:
Is there a threshold such that every -tough graph is Hamiltonian?
It is known that , but no exact number is yet known.
Then, do we know any sufficiencies for Hamiltonian Graphs (given a condition, we know the graph is Hamiltonian)? Well, intuitively we should think of graphs wiht high degrees / lots of edges, as this gives us more connections to move around on.
Theorem (Ore's): Sufficiency for Hamiltonian Graphs
Let have order .
If for all 2 non-adjacent vertices , then is Hamiltonian.
This is quite useful for -regular graphs! Say we have a 6-regular graph on 10 vertices. Then, the graph must be Hamiltonian, as for any two vertices!
Proof
Suppose is NOT hamiltonian.
We will add edges to so that any additional edge makes Hamiltonian. Let be the new graph. It’s clear that the graph is not complete, as if it were we would have a Hamiltonian graph trivially.
Let be non-adjacent vertices. If adding 1 more edge between them, then there must exist at least a Hamiltonian path! Consider this path,
Suppose has an adjacency to some random along this path. Then, cannot be adjacent to any as if it were, we could form a Hamiltonian cycle as
Thus, the degree of must be less than .
Note that the converse of the theorem does not hold. Consider the following counterexample.
Example: Failure of Ore's Converse
graph LR 1 o--o 2 o--o 3 o--o 4 o--o 5 o--o 1;Then, for any two non-adjacent vertices, say ,
But is Hamiltonian!
Example
graph LR 1 o--o 2 o--o 3 o--o 4 o--o 1; 2 o--o 4; 1 o--o 3; 5 o--o 6 o--o 7 o--o 8; 5 o--o 7; 6 o--o 8; 9 o--o 1 & 2 & 3 & 4 & 5 & 6 & 7 & 8;If we delete , we get , so is NOT Hamiltonian. Furthermore, for any two non-adjacent vertices,
Ore’s theorem is “best possible”! For a graph to be Hamiltonian given , we have a requirement on the degrees that must be true!
4.3: Planar Graphs
A graph is planar if it ca be drawn in the plane so that no edges cross each other.
Example: Planar Graph
graph LR 1 o--o 2 o--o 3 o--o 4; 1 o--o 3; 2 o--o 4;This is a planar graph, even though what we currently see has edges crossing! We can have go above 3 so that the edges don’t cross.
Every planar graph can divide the plane into regions (faces). Note that we include the space outside the edges graph as its own separate region.
If is on at least 3 vertices that is NOT a tree, every region / face is surrounded by at least 3 edges, known as its boundary.
Theorem: Euler's Identity
If is a connected, planar (potentially multi) graph with “n” vertices, “m” edges, and “f” faces, then
Intuitively, this is telling us that if we have too many edges, then we cannot have a planar graph!
Proof
By induction on , if , then , so we have 1 region.
Assume the statement holds for all graphs up to edges. Let be on edges.
If is a tree, then , edges, . which satisies the equation.
If is NOT a tree, then it has a cycle . Delete an edge in the cycle, and let be the resultant graph. Deleting one edge also deletes one face (it merges two faces together). If has edges after deletion, so by the inductive hypothesis,
Theorem
Let be a connected, planar graph of order , size . Then,
The contrapositive is very importnat! If , then we cannot have a planar graph!
Proof (Know This Proof!!)
If and it is a tree, then the result holds.
Assume . Let be the faces / regions. Let be the number of edges on the boundary of . Since there’s at least 3 edges for each boundary,
Now look at every edge. Each edge could lie on the boundary of at most 2 faces (it could be a bridge, in which case it would only border 1 region). So, in the sum, each edge will only be counted at most 2 times!
Combining these, we get
We now apply Euler’s identity, , to get
Info
Corollary: If is planar, there is a vertex of degree 5 or less. If all vertices have degree 6 or more, then , yielding a contradiction.
Example
has edges. To be planar, . Because
cannot possibly be planar.
Example: House and Utilities Problem
Three houses need to connect gas, water, and electricity lines to their houses. Can can they all be connected without crossing lines?
Consider 3 nodes, one for gas, water, and electricity. Now consider 3 other nodes, 1 for each house. This yields a graph, and we’re essentially asking if it is planar.
Unfortunately, we cannot use the theorem, as we get
Yielding an inconclusive result.
Assume that the graph is planar. If it is, then we can apply Euler’s identity
Thus, if the graph is planar, it must have 5 faces. Since is bipartite, there are no odd cycles, so the boundary of each face has at least 4 edges. This gives us an upper bound, if we sum the number of edges at each face
Now, each edge can only border at most 2 regions, and in fact, with no bridges in , every edge must be counted twice in the sum.
This tells us
Which is a contradiction!
So, is not planar.
A subdivision of edge is the operation of replacing with the path . A subdivision of graph is the graph obtained from by successive edge subdivisions.
Example: Subdivided Graph
graph LR 1 o--o 2 o--o 3 o--o 4 o--o 1 o--o 5; 6[1] o--o 7[ ] o--o 8[2] o--o 9[ ] o--o 10[3] o--o 11[ ] o--o 12[4] o--o 13[ ] o--o 6 o--o 14[ ] o--o 15[5];
Clearly, if is planar, then any subdivision of is also planar! Similarly, the converse holds. If a subdivision is planar, then must also be planar!
Subdividing an edge doesn’t change how we can draw the graph!
This is important, as we can check for non-planar subgraphs to see if our graph is planar! For example we’ve shown that and are not planar. Hence, if has a subgraph that is , or a subdivision, it cannot be planar.
Amazingly, the converse of this statement holds!
Theorem: Kuratowski
A graph is planar if and only if does NOT contain or , or any subdivision of or .
Example: Petersen Graph
graph LR 1 o--o 6; 2 o--o 8; 3 o--o 10; 4 o--o 7; 5 o--o 9; 1 o--o 2 o--o 3 o--o 4 o--o 5 o--o 1; 6 o--o 7 o--o 8 o--o 9 o--o 10 o--o 6;Let , . We can form graph
graph TD 1 o--o 2 & 5 & 6; 7 o--o 8 o--o 21[2]; 7 o--o 4 o--o 51[5]; 7 o--o 61[6]; 10 o--o 3 o--o 22[2]; 10 o--o 9 o--o 52[5]; 10 o--o 62[6];Note that during subdivisions, you can’t use the same vertices multiple times!
Thus, the Petersen Graph is not planar.
Example: Petersen Graph (2)
Show the Petersen graph is NOT planar by using the fact that it has girth 5.
We know . If it is planar, then
So, we must have 7 faces! Let denote the total edges on the boundary of face . With girth 5,
Every face is a cycle!
Every edge is counted at most twice in the sum, soSo, , meaning ! This gives us a contradiction!
Many graphs aren’t planar. But “how close to planar” are they? Could we define a measure for this?
The minimum number of edge crossings of a graph drawn on the plane is the crossing number of , denoted .
This is a very difficult question to find exactly! Bounds are known for K_ and , but its unknown what the exact formulas are.
This is a very topological question, and note that the number of edge crossings depends on the “surface” the graph is on! For example, can be drawn to be planar on a Torus!
The edge crossing on can be drawn to loop through the center of the Torus, avoiding an edge crossing!
If a graph is planar, then we can also draw it on a sphere without crossing! Now, if we attach “handles” onto the sphere to draw without crossings, then our question is the minimum number of “handles” we need to make the graph planar! In other words, for a planar graph, we can imagine a “bridge” that edges (possibly multiple) can take to avoid crossing others.
The genus of grpah is the fewest handles needed on the sphere to avoid any edge crossings.
Note that the Petersen graph has crossing number 2, but genus 1.
4.4: Graph Colorings
A proper coloring of a graph is labeling the vertices of so that each vertex is asigned 1 color, such that adjacencies have different colors. We say graph is -colorable if there is a proper coloring with colors.
The chromatic number of , denoted , is the fewest number of colors such that is -colorable.
Example
Let’s color a map! Vertices are countries / states, with an adjacency if two regions share a border.
Theorem: 4 Color Theorem (Appel, Haken, 1976)
Any map (planar graph) can be colored with 4 colors.
Note that an explicit coloring of a graph yields an upper bound on the chromatic number!
Theorem
is bipartite with at least 1 edge if and only if .
Lower Bounds on
A subset of vertices is an independent set if no two vertices are adjacent in . It is maximal if no more vertices can be added to . It is maximum if it has the largest cardinality of all independent sets for a graph. The value of the maximum, the independence number, is denoted .
Example: Maximum Independent Set
graph LR 1 o--o 2 & 3; 2 o--o 6 & 3; 6 o--o 5; 3 o--o 4 & 5; 4 o--o 5;A possible independent set is . This is maximum!
Another possible independent set is . This is maximal, but not maximum!
Given a proper coloring of , each “color class” (group of vertices with the same color) is an independent set!
A clique is a complete subgraph of . The clique number of , denoted , is the order of the largest clique in the graph!
In the above example, (consider ), so clearly, at least 3 colors are needed. Observe, we have the following:
Theorem
For any graph ,
In other words, the clique number of the graph is the same as the independence number of ‘s complement.
Theorem
If has order , then
: The chromatic number is bounded below by the clique number.
: The chromatic number is bounded by number of vertices divided by the independence number.
Proof
Clearly, every vertex in a clique is a different color as they are all adjacent to each other.
Let , Let be the color classes (ex. is the vertices colored color 1). Then,
But each vertex color class is the same as an independent set, and we can bound this by the independence number!
So,
Example
Consider a and graph, where each node in the cycle is connected to all nodes in the other cycle.
graph LR 1 o--o 2 o--o 3 o--o 1; 4 o--o 5 o--o 6 o--o 7 o--o 8 o--o 4;Here, the clique number is , as we take 2 nodes from and 3 nodes from to form a graph.
Clearly, and . Furthermore, since everything in the joins to , they must use different colors. Thus, , even though .
Intuitively, we may think that as the smallest cycle in a graph increases in size, it may serve as a bound for the chromatic number! However, this intuition unfortunately doesn’t work. See the below theorem.
Theorem:
For any positive integers and , there exists a graph with girth (smallest cycle) greater than , and .
Upper Bounds on
Explicit colorings provide an upper bound on the chromatic number. Consider coloring the graph in a greedy manner:
- Let be the vertices.
- Color color 1.
- Go to . If , color color 2. Otherwise, color color 1.
- Repeat for all ‘s, coloring with the lowest index color NOT used by the neighbors of .
A consequence of this algorithm, is that at vertex , we use at most colors. As we do this for every vertex, we can bound the maximum colors needed above with the maximum degree!
The +1 is in case we need to use a new color!
Theorem
We have , where is the maximum degree in .
This was further refined as follows:
Theorem (Brooks)
We have (remove the +1) provided is NOT or an odd cycle (must be exactly equal to).
Example: Petersen Graph
graph LR 1 o--o 6; 2 o--o 8; 3 o--o 10; 4 o--o 7; 5 o--o 9; 1 o--o 2 o--o 3 o--o 4 o--o 5 o--o 1; 6 o--o 7 o--o 8 o--o 9 o--o 10 o--o 6;We know that the Petersen Graph contains a , so it is NOT bipartite, meaning .
We furthermore know that it is not or , so by Brook’s theorem, . So, .
Critical Graphs
Graph is -critical if and for every proper subgraph , .
Basically, the graph is reduced so that any further deletion will change the chromatic number!
Example:
Consider a graph on Odd Cycles.
graph LR 1 o--o 2 o--o 3 o--o 4 o--o 5 o--o 6 o--o 7 o--o 1;Here, , but the deletion of any vertex or edge turns the graph into a forest, making the graph Bipartite, so ! Thus, any graph on odd cycles is 3-critical.
Lemma
If is -critical, then , where is the minimum degree.
Proof
By way of contradiction, let be a vertex of , and assume . Consider the graph without . Because is -critical, if we remove then must have , so is colorable.
If is colorable, and is adjacent to only vertices, then our vertices must be colored with at most colors, with 1 remaining! So, we color with this remaining color, meaning is colorable, contradicting the fact that .
Theorem
We have
In other words, we can find an upper bound for our chromatic number if we go through all possible subgraphs of .
does not have to be -critical!
Proof
Suppose , and let be a -critical subgraph of . Then, , by the Lemma.
Example
graph LR 1 o--o 2 o--o 3 o--o 4 o--o 1; 1 o--o 3; 2 o--o 4; 1 o--o 5 & 6; 2 o--o 7 & 8; 3 o--o 9 & 10; 4 o--o 11 & 12;Here, our minimum degree is 1. But if we removed all vertices 5 to 12, then our min degree would be 3! Because this is the “best” we can get, our chromatic number can be at most .
This is a better bound than Brooks!
Edge Colorings
An edge coloring of is an assignment of colors to edges such that edges incident to the same vertex are different colors.
The minimum colors needed is the chromatic index, .
Theorem (Vizing)
For any graph , , or . In other words, the chromatic index can only take on 2 possible values.
4.5: Mycielski’s Construction
We know that the chromatic number is bounded below by the clique number.
We let be a triangle-free graph (no ‘s) and construct a new graph with higher chromatic number, but same clique, but remains triangle free. Thus, and the new graph have clique number 2.
This section teaches us how to construct graphs super large, while keeping the clique number small! This shows that the “intuition” that smaller clique numbers are better doesn’t work the best.
Let have vertex set . We construct the graph as follows.
- Add vertices, denoted .
- Join to all of the ‘s.
- Join to the ‘s such that .
Example
Suppose we have initial graph
graph LR v1 o--o v2 o--o v3;Now, we add vertices, and join to all of the ‘s.
graph LR v1 o--o v2 o--o v3; w o--o u1 & u2 & u3;For step 3,
- For , join it to all neighbors of : .
- For , join it to all neighbors of : .
- For , join it to all neighbors of : .
graph LR v1 o--o v2 o--o v3; w o--o u1 & u2 & u3; u1 o--o v2; u2 o--o v1 & v3; u3 o--o v2;
We prove below that under this algorithm, the new graph remains triangle free. In other words, the clique number remains 2.
Proof: Triangle-Free
We prove that the new graph is triangle free.
Clearly, there you cannot form a triangle with any as there are no edges among ‘s. So, if a triangle occurs, it must occur between .
So, if there is a triangle between , then by step 3, , and . We use the edge in the triangle to form a triangle
This means that the original graph had a 3-cycle, which is a violation of our assumptions!
We now show that the chromatic number increases by 1 for every additional construction we do.
Proof: Chromatic Number
We now show that the chromatic number increases.
Let denote the level of the construction, with , and is on vertices.
We show first, by showing a coloring. For each , we know by step (3) that is is joined with the neighbor(s) of , so, we can color the color of without any violations:
- cannot have an edge to , so the same color won’t be adjacent
- is only adjacent to neighbors of , which will have different colors than by definition of a coloring
So, is never adjacent to a vertex of ‘s color.
Coloring each , we may use all colors as . Then, with , let’s just color it an extra color as we may have used each of the colors in our ‘s! This gives us a coloring, so .
Now assume to the contrary that (it is not possible for it to be less than , as is a subgraph). We show that it is not possible.
Without loss of generality, let vertex be color . Then, as is adjacent to all ‘s by step (2), the ‘s can only use at most colors. However, as , we must use colors in , so there must exist a vertex with color .
Because is adjacent to all neighbors of by step (2), we can guarantee that ‘s neighbors are not colored the same as , because is adjacent to all of them! Furthermore, as is either color 1 to , can be recolored as ! Doing this for all ‘s of color , we can find a coloring for the graph. But this is a contradiction, as , so no smaller coloring exists!
We have proven the following:
Theorem: Mycielski
There exists graphs with , but is arbitrarily large.
The proofs also give us a way to color a graph constructed using Mycielski’s Construction! Color the base graph, and then follow the coloring scheme that was given above.