5.1. Hamilton cycles and Hamilton paths. 5. Hamiltonian Graphs

Similar documents
3. Eulerian and Hamiltonian Graphs

Handout #Ch7 San Skulrattanakulchai Gustavus Adolphus College Dec 6, Chapter 7: Digraphs

A Study of Sufficient Conditions for Hamiltonian Cycles

Introduction to Graph Theory

Midterm Practice Problems

Graph Theory Problems and Solutions

On end degrees and infinite cycles in locally finite graphs

I. GROUPS: BASIC DEFINITIONS AND EXAMPLES

Connectivity and cuts

Outline. NP-completeness. When is a problem easy? When is a problem hard? Today. Euler Circuits

V. Adamchik 1. Graph Theory. Victor Adamchik. Fall of 2005

A 2-factor in which each cycle has long length in claw-free graphs

Discrete Mathematics & Mathematical Reasoning Chapter 10: Graphs

Non-Separable Detachments of Graphs

Computer Science Department. Technion - IIT, Haifa, Israel. Itai and Rodeh [IR] have proved that for any 2-connected graph G and any vertex s G there

8. Matchings and Factors

Lecture 17 : Equivalence and Order Relations DRAFT

Generalized Induced Factor Problems

ON INDUCED SUBGRAPHS WITH ALL DEGREES ODD. 1. Introduction

Odd induced subgraphs in graphs of maximum degree three

Chapter 6: Graph Theory

Cycles in a Graph Whose Lengths Differ by One or Two

Math 179: Graph Theory

Graph theoretic techniques in the analysis of uniquely localizable sensor networks

On Integer Additive Set-Indexers of Graphs

On the independence number of graphs with maximum degree 3

Outline 2.1 Graph Isomorphism 2.2 Automorphisms and Symmetry 2.3 Subgraphs, part 1

136 CHAPTER 4. INDUCTION, GRAPHS AND TREES

Extremal Wiener Index of Trees with All Degrees Odd

Euler Paths and Euler Circuits

SHARP BOUNDS FOR THE SUM OF THE SQUARES OF THE DEGREES OF A GRAPH

SCORE SETS IN ORIENTED GRAPHS

GRAPH THEORY LECTURE 4: TREES

COMBINATORIAL PROPERTIES OF THE HIGMAN-SIMS GRAPH. 1. Introduction

Class One: Degree Sequences

Every tree contains a large induced subgraph with all degrees odd

Every Positive Integer is the Sum of Four Squares! (and other exciting problems)

Large induced subgraphs with all degrees odd

Graphs without proper subgraphs of minimum degree 3 and short cycles

Discrete Mathematics Problems

Triangle deletion. Ernie Croot. February 3, 2010

Complexity Theory. IE 661: Scheduling Theory Fall 2003 Satyaki Ghosh Dastidar

Lecture Notes on GRAPH THEORY Tero Harju

6.2 Permutations continued

Math 55: Discrete Mathematics

k, then n = p2α 1 1 pα k

Social Media Mining. Graph Essentials

2 When is a 2-Digit Number the Sum of the Squares of its Digits?

MATHEMATICAL ENGINEERING TECHNICAL REPORTS. An Improved Approximation Algorithm for the Traveling Tournament Problem

Definition Given a graph G on n vertices, we define the following quantities:

UPPER BOUNDS ON THE L(2, 1)-LABELING NUMBER OF GRAPHS WITH MAXIMUM DEGREE

The positive minimum degree game on sparse graphs

CS 598CSC: Combinatorial Optimization Lecture date: 2/4/2010

A Turán Type Problem Concerning the Powers of the Degrees of a Graph

On the crossing number of K m,n

Tools for parsimonious edge-colouring of graphs with maximum degree three. J.L. Fouquet and J.M. Vanherpe. Rapport n o RR

Finding and counting given length cycles

Mean Ramsey-Turán numbers

An inequality for the group chromatic number of a graph

Institut für Informatik Lehrstuhl Theoretische Informatik I / Komplexitätstheorie. An Iterative Compression Algorithm for Vertex Cover

CMPSCI611: Approximating MAX-CUT Lecture 20

5 Directed acyclic graphs

Zachary Monaco Georgia College Olympic Coloring: Go For The Gold

3. Mathematical Induction

A Fast Algorithm For Finding Hamilton Cycles

Exercises of Discrete Mathematics

Mathematical Induction

Notes on NP Completeness

Tree-representation of set families and applications to combinatorial decompositions

CHAPTER 9. Integer Programming

Graph Powers: Hardness Results, Good Characterizations and Efficient Algorithms. Dissertation

Lecture 1: Course overview, circuits, and formulas

Homework until Test #2

Ph.D. Thesis. Judit Nagy-György. Supervisor: Péter Hajnal Associate Professor

M-Degrees of Quadrangle-Free Planar Graphs

All trees contain a large induced subgraph having all degrees 1 (mod k)

Degree-associated reconstruction parameters of complete multipartite graphs and their complements

INCIDENCE-BETWEENNESS GEOMETRY

Product irregularity strength of certain graphs

8.1 Min Degree Spanning Tree

Formal Languages and Automata Theory - Regular Expressions and Finite Automata -

Labeling outerplanar graphs with maximum degree three

SHORT CYCLE COVERS OF GRAPHS WITH MINIMUM DEGREE THREE

Graph Theory Origin and Seven Bridges of Königsberg -Rhishikesh

Minimum degree condition forcing complete graph immersion

Mathematical Induction. Lecture 10-11

Balloons, Cut-Edges, Matchings, and Total Domination in Regular Graphs of Odd Degree

n 2 + 4n + 3. The answer in decimal form (for the Blitz): 0, 75. Solution. (n + 1)(n + 3) = n lim m 2 1

Determination of the normalization level of database schemas through equivalence classes of attributes

SEQUENCES OF MAXIMAL DEGREE VERTICES IN GRAPHS. Nickolay Khadzhiivanov, Nedyalko Nenov

On parsimonious edge-colouring of graphs with maximum degree three

DETERMINANTS IN THE KRONECKER PRODUCT OF MATRICES: THE INCIDENCE MATRIX OF A COMPLETE GRAPH

Chapter 3. Cartesian Products and Relations. 3.1 Cartesian Products

Tiers, Preference Similarity, and the Limits on Stable Partners


SEMITOTAL AND TOTAL BLOCK-CUTVERTEX GRAPH

1 if 1 x 0 1 if 0 x 1

Full and Complete Binary Trees

Degree Hypergroupoids Associated with Hypergraphs

On the k-path cover problem for cacti

Transcription:

5. Hamiltonian Graphs The Traveling Salesman Problem. Hamiltonian paths and hamiltonian cycles. Characterization os hamiltonian graphs. The closure of a graph. Chvatals theorem for hamiltonicity. Erd s-chvatals Theorem. Highly hamiltonian and nearly hamiltonian graphs. Hamiltonian decomposition of graphs. Hamiltonian digraphs. Line graphs and the powers of a graph. Dominating circuits. Graph Theory 5 1 5.1. Hamilton cycles and Hamilton paths The traveling salesman problem: : a salesman is to make a tour of n cities,, at the end of which he has to return to the head office he starts from.. The cost of the journey between any two cities is known. The problem asks for an efficient algorithm for finding a least expensive tour. What it means "efficient algorithm "? It is not known whether or not there is an efficient algorithm for finding a least expensive route. Variant: : the route is required to be a cycle,, that is the salesman is not allowed to visit the same city twice. Graph Theory 5 2 A cycle containing all the vertices of a graph is said to be a Hamiltonian cycle. A graph containing a Hamilton cycle is said to be Hamiltonian. The origin of this term is a game invented in 1857 by Sir William Rowan Hamilton based on the construction of cycles containing all vertices in the graph of the dodecahedron. The Rubik cube of the 19. century. In 1855 Thomas P. Kirkman posed the following question: Given the graph of a polyhedron, can one always find a circuit that passes through each vertex once and only oce? Graph Theory 5 3 Graph Theory 5 The graph of the dodecahedron 4 1

In fact,, Hamilton cycles and paths in special graphs had been studied well before Hamilton proposed his game. The puzzle of the knight`s s tour on a chessboard, throughly analysed by Euler in 1759, ask for a Hamilton cycle in the graph whose vertices are the 64 squares of a chessboard and in which two vertices are adjacent if a knight can jump from one square to the other. If G is hamiltonian, then G is connected and contains a hamiltonian cycle. G has no cut-vertices and G has order at least 3. G is 2-connected. Theorem 5.1.: If G is hamiltonian then G is 2-connected. Graph Theory 5 5 Graph Theory 5 6 Theorem 5.2.: If G is a hamiltonian graph, then for every S S V(G) k(g S) S. and Let S be a proper nonempty subset of V(G), and suppose that k(g S) = k 1, where G 1,G 2,,G,G k are the components of G S. Let C be a hamiltonian cycle of G. When C leaves G j, (1jk), then the next vertex of C belongs to S. Thus k(g S) ) S. 1,, so the follow- G: G j : S: G G 1 : k : G 2 : From the Theorem 5.2 it follows that S / k(g S) ing is true: C: Corollary 5.3.: Every hamiltonian graph is 1-though. Graph Theory 5 7 Graph Theory 5 8 2

What about the sufficient conditions? The above necessarily conditions are not sufficient aswell.. For example,, every hamiltonian graph is 2-connected, but the converse is not true. No connectivity guaranties that a graph is hamiltonian.. See the following example: G S: G=K k,k+1 S =k =k k(g S) ) = k+1 > S,, and use the Theorem 5.2. G S is not hamiltonian. Graph Theory 5 9 Theorem 5.4. (O. Ore, 1960): If G is a graph of order n 3 such that for all distinct nonadjacent vertices u and v deg u + deg v n then G is hamiltonian. Suppose that the theorem is not true,, i.e. there exists a maximal nonhamiltonian graph G of order n > 3 that satisfies the hypothesis of the theorem. Then G is nonhamiltonian so,, it is not complete - and every two nonadjacent vertices w 1 and w 2 of G,, the graph G+w 1 w 2 is hamiltonian. Let u and v two nonadjacent vertices of G. Thus, G+uv is hamilton- ian and every hamiltonian cycle of G+uv contains the edge uv. Graph Theory 5 10 Then there is a u v path P: u = u 1, u 2,,u n = v containing every vertex of G. If u 1 u i E(G), 2 i n,, then u i-1 u n E(G). For otherwise u 1, u i, u i+1,,u,u n, u i-1, u i-2,,, u 1 is a hamiltonian cycle of G. Hence for each vertex of {u{ 2, u 3,,, u n } adjacent to u 1 there exists at least one vertex from {u 1, u 2,, u n-1 } which is not adjacent with u n. So deg u n (n-1) - deg u 1 and this implies that there is a nonadjacent vertex-pair in G for which which is a contradiction. deg u + deg v n-1 Graph Theory 5 11 u 3 u 2 u = u 1 u 4 Suppose G is maximal nonhamiltonian. G+uv is hamiltonian. G P v = u n Graph Theory 5 12 3

A: B: Theorem 5.5.. (J.( A. Bondy,, V. Chvatal, 1976): Let u and v be distinct nonadjacent vertices of a graph G of order n such that deg u + deg v n. Then G+uv is hamiltonian iff G is hamiltonian. If G is hamiltonian and u and v are nonadjacent vertices, then G + uv is also hamiltonian. Suppose that G is a graph of order n with nonadjacent vertices u and v such that deg u + deg v n and G + uv is hamiltonian. If G is not hamiltonian then similarly to the proof of the Theorem 5.4. we arrive at the contradiction So, G must be hamiltonian. deg u + deg v n-1. Graph Theory 5 13 The closure C(G) of a graph G of order n is the graph obtained from G by recursively joining pairs of nonadjacent vertices whose degree sum is at least n until no such pairs remains. Producing the closure of a graph Graph Theory 5 14 Is the closure of a graph well-defined defined? Theorem 5.6.: If G 1 and G 2 are two graphs obtained from a graph G of order n by recursively joining pairs of nonadjacent vertices whose degree sum is at least n,, then G 1 = G 2. Let e 1, e 2,, e j and f 1, f 2,, f k be the sequences of edges added to G obtained G 1 and G 2, respectively. It is enough to show that each e i (1 i j) ) is an edge of G 2 and that each f i (11 i j) is an edge of G 1. Assume, to the contrary,, that this is not the case,, i.e. for some t, 0 t j-1, j e i E(G 2 ) if i t,, and the edge e t+1 = uv does not belong to G 2. Let G 3 the graph obtained from G by adding the edges e 1, e 2,, e t. It follows from the definition of G 1 that deg u + deg G3 G 3 v n. This is a contradiction, since u and v are nonadjacent vertices of G 2, so while constructing G 2, we must to choose it. Thus each e i belongs to G 2, and by the symmetricity we can also prove that each f i belongs to G 1. So, G 1 = G 2. Theorem 5.7.: A graph is hamiltonian iff its closure is hamiltonian. The Theorem is a simple consequence of the definition of closure and the Theorem 5.5. Graph Theory 5 15 Graph Theory 5 16 4

Theorem 5.8.: Let G be a graph with at least three vertices. If C(G) is complete,, then G is hamiltonian. The statement follows from the fact that eache complete graph is hamiltonian. If a graph G satisfies the condition of Theorem 5.4, then C(G) is complete and so,, by Theorem 5.8, G is hamiltonian. Thus, Ore s theorem is an immediate corollary of Theorem 5.8 (although chronologically it preceeded the theorem of Bondy and Chvatal by several years). Perhaps surprisingly, many well-known sufficient condition for a graph to be hamiltonian based on vertex degrees can be deduced from Theorem 5.8. Theorem 5.9. due to Chvatal,, is an example of one of the strongest of these. Graph Theory 5 17 Graph Theory 5 18 Theorem 5.9. (V. Chvatal, 1972): Let G be a graph of order n 3, the degrees d i of whose vertices satisfy d 1 d 2 d n. If there is no integer k < n/2 for which d k k and d n-k n k 1,, then G is hamil- tonian. We will show that C(G) is complete which,, by the Theorem 5.8, implies that G is hamiltonian. Assume, to the contrary,, that C(G) is not complete. Let u and w be nonadjacent vertices of C(G) for which deg C(G) u + deg C(G) w is as large as possible. Since u and w are nonadjacent it follows that deg C(G) u + deg C(G) w n 1. W.l.o.g.. we can suppose that deg C(G) u deg deg C(G deg C(G) w. Graph Theory 5 19 If deg C(G) u = k then k (n 1)/2 < n/2 and deg C(G) w n 1 k. Let W denote the vertices other than w that are not adjacent to w in C(G). Then W = n 1 deg C(G) w k. Also,, by the choice of u and w, every vertex v W satisfies deg G v deg C(G) v deg C(G) u = k. Thus, G has at most k vertices of degree at most k and so d k k. Similarly,, let U denote the vertices other then u that are not adjacent to u in C(G). Then U = n 1 deg C(G) u = n k 1. Every vertex v U satisfies deg G v deg C(G) v deg C(G) wn 1 k, implying that d n-k-1 n k 1. However, deg G u deg C(G) u deg C(G) w n k 1, so d n-k n k 1. This, however, contradicts the hypothesis of the theorem. Graph Theory 5 20 5

C(G): U u W w Corollary 5.10 (Dirac( Dirac, 1952): If G is a graph of order n 3 such that deg v n/2 for every vertex of G,, then G is hamiltonian. In the case of regular grpahs this statement can be improved: Jackson showed in 1980 that every 2-connected r-regularregular graph of order at most 3r is hamiltonian.. (The Petersen graph shows that 3r cannot be replaced by 3r+1.) deg C(G) u + deg C(G) w n-1. n We can suppose: deg C(G) u deg deg C(G deg C(G) u = k k < n/2 W = (n 1) deg C(G) w k. deg C(G deg C(G) w. deg C(G) w n 1 k. Graph Theory 5 21 Graph Theory 5 22 Theorem 5.11 (P. Erd s, V. Chvatal,, 1972): Let G be a graph with at least three vertices. If (G) (G) then G is hamiltonian. If (G) = 1 then the result follows since G is complete. Assume that (G) 2.. Let (G) = k. Since k 2, G contains at least one cycle. Among all cycles of G,, let C be a maximum length cycle. By Theorem 4.15, there are at least k vertices on C.. We will show that that C is hamiltonian. Suppose the contrary.. Then there exists a vertex w of G that does not lie on C. Since V(C) k,, we may apply the Theorem 4.14 to conclude that that there are k paths P 1,P 2,,P k having initialvertex w that are pairwise disjoint, except for w,, and that share with C only their terminal vertices v 1,v 2,,v k respectively. If any two of the vertices vi are consecutive on C,, then there is a cycle containing more vertices than C has For each i = 1,2,,k,, let u i be the vertex folling v i cyclic ordering of C. in some fixed No vertex u i is adjacent to w in G; ; otherwise we could replace the edge v i u i in C by the v i u i path determined by the path P i and the edge u i w to obtain a cycle having length at least V(C) +1 V(C) +1,, which is impossible. Graph Theory 5 23 Graph Theory 5 24 6

Let S={w,u 1,u 2,,u k }. Since S = k + 1 > (G) and wu i = 1,2,,k,,k, there are integers j and l such that u j u l E(G). E(G) for i Thus by deleting the edges v j u j and vlul from C and adding the edge vjul together with the paths P j and P l, we obtain a cycle of G that is longer than C. This produces a contradiction, so that C is a hamiltonian cycle of G. We now discuss several types of highly hamiltonian graphs and then briefly consider graphs that are nearly hamiltonian. A path in a graph G containing every vertex of G is called a hamiltonian path. A graph is hamiltonian-connected if for every pair u,v of distinct vertices, there exists a hamiltonian u v path. A hamiltonian connected graph with at least three vertices is hamiltonian. The (n+1)-closure C n+1 (G) of a graph G of order n to be the graph obtained from G by recursively joining pairs of nonadjacent vertices whose degree sum is at least n+1 until no such pair remains. Graph Theory 5 25 Graph Theory 5 26 Theorem 5.12 (J. A. Bondy and V. Chvatal,, 1976): Let G be a graph of order n.. If C n+1 (G) is complete, then G is hamiltonian-connected. If n = 1 then the result is obvious, so we can suppose that n 2. Let G be a graph of ordern whose (n+1)-closure is complete,, and let u and v be any two vertices of G. Let H be a graph which consist of G together with a new vertex w and the edges uw and vw. So, H has of order n + 1. Since C n+1 (G) is complete, so V(G) = K. C( H ) n Thus deg C(H) x n 1 for x V(G). So deg C(H) x + deg C(H) w n + 1. Therefore C(H) = K n+1 and by Theorem 5.8, H is hamiltonian. Any hamiltonian cycle of H contains the edges uw and vw, so G has a hamiltonian u v path. Graph Theory 5 27 Corollary 5.13. : If G is a graph of order n such that for all distinct nonadjacent vertices u and v, deg u + deg v n + 1, 1 then G is hamiltonian-connected connected. Corollary 5.14. : If G is a graph of order n such that deg v (n+1)/2 for every vertex v of G,, then G is hamiltonian-connected connected. A number of other sufficient conditions for a graph to be hamiltonian-connected can be deduced from the Theorem 5.12. For example,, an analogue to Theorem 5.9.: Corollary 5.15.: Let G be a graph of order n 3,, the degrees d i of whose vertices satisfy d 1 d 2 d n. If there is no integer k < n/2 for which d k k and d n-k n-k-1,, then G is hamiltonian-connected connected. Graph Theory 5 28 7

Restrictive version of the Traveling Salesman Problem: : there are only two travel costs,, 1 and (expressing the impossibility of the journey), then the question is whether or not the graph formed by the edges with travel cost 1 contains a Hamilton cycle. Is there efficient algorithm? Even this special case of the TSP is unsolved: : no efficient algorithm is known for constructing a Hamilton cycle, though neither is it known that there is such algorithm. If the travel cost between any two cities is the same,, then our salesman has no difficulty in finding a least expensive tour: : any permutation of the n-1 cities will do.. (The nth city is the head office.) Rewelling in his new found freedom, our salesman decides to connect duty and pleasure and promises not to take the same road xy again while there is a road uv has not seen yet. Can he keep his promise? To plan a required sequence of journeys we have to decompose K n into disjoint Hamilton cycles. For which values of n is this possible? Graph Theory 5 29 Graph Theory 5 30 Theorem 5.16. : For n 2 the complete graph K n is decomposable into edge disjoint Hamiltonian paths iff n is even. Let us denote the size of a graph G by e(g). A: 1 e( K n ) = n( n 1 ) 2 A Hamilton path in a graph with n vertices has n 1 edges. B: Let us assume now that n is even and n 2. We will prove by construction: We will have n/2 Hamilton path. For each vertex v i G deg v i = n 1. In the construction a vertex will be exactly once either a start- or an endvertex in Hamilton paths. n is even. Graph Theory 5 31 Graph Theory 5 32 8

Hamiltonian faktorization of K 6 Theorem 5.17. : For n 3 the complete graph K n is decomposable into edge disjoint Hamiltonian cycles iff n is odd. A: Let us suppose that K n is decomposable. Since K n is (n-1)-regular( and a cycle is 2-regular, then n-1 must be even, n is odd. The statement also follows immediately from the fact that size of K n is 1 n( n 1 ) 2 Graph Theory 5 33 Graph Theory 5 34 B: Let us assume now that n is odd and n 3. Hamiltonian faktorization of K 7 Let us leave a vertex. The remaining graph is K n-1, where n-1 is even,, so it is decomposable into the union of disjoint Hamilton paths. Let us join the endvertices of each path with the vertex we left before. So we have got Hamilton cycles,, and they are disjoint. Graph Theory 5 35 Graph Theory 5 36 9

5.2. Hamiltonian Digraphs. A digraph D is hamiltonian if it contains a spanning cycle; such a cycle is called hamiltonian cycle. The situation for hamiltonian digraphs is even more complex than it is for hamiltonian graphs. As with hamiltonian graphs, no characterization of hamiltonian digraphs exists. While there are sufficient conditions for a digraph to be hamiltonian, they are analogues of the simpler sufficient conditions for hamiltonian graphs. A digraph D is strong if for every two distinct vertices u and v of D, there is both u v (directed)) and v u path. Theorem 5.18.: If D is a nontrivial strong digraph of order n such that deg u + deg v 2n 1 for every pair u, v of distinct nonadjacent vertices, then D is hamiltonian. The theorem has a large number of consequences.. One of them is: Corollary 5.19.: If D is a nontrivial digraph of order n such that whenever u and v are distinct vertices and (u,v) E(D) od u + id v n, then D is hamiltonian. Graph Theory 5 37 Graph Theory 5 38 First we show that the condition in the statement implies that D is strong. Let u and v any two vertices of D.. We will show that there is a u v path in D: If (u,v) E(D) then the result is obvious. If (u,v) E(D) then by the conditionther must exist a vertex w in D, with w u, v such that both, (u,w) and (w,w) E(D). However,, then u, w, v is the desired u v path, so D is strong. Let u and v be any two nonadjacent vertces of D.. Then by the condition in the statement it follows that od u + id v n and od v + id u n. So, deg u + deg v 2n. Thus,, by the Theorem 5.18, D is hamiltonian. Graph Theory 5 39 Corollary 5.20.: If D is a strong digraph of order n such that deg v n for every vertex v of D,, then D is hamiltonian. The proof is an immediate consequence of the Theorem 5.19. Corollary 5.21.: If D is a digraph of order n such that for every vertex v of od v n/2 and id v n/2 of D,, then D is hamiltonian. Graph Theory 5 40 10

Exercises.. (G. Chartrand and L. Lesniak page 104.) 1. Show that the graph of the dodecahedron is hamiltonian. 2. Give an example of a 1-tough graph that is not hamiltonian. 3. Prove that if G and H are hamiltonian graphs then G H is hamiltonian. 4. Prove that the n-cube Q n, n 2, n, is hamiltonian. Graph Theory 5 41 5.3. Line Graphs and Powers of Graphs The kth power G k of a connected graph G,, where k 1,, is that graph with V(G k ) = V(G) for which uv E(G k ) iff 1d G (u,v) k. G 2 is a square of G. G 3 is a cube of G. What can we say about the hamiltonicity of a power-graph graph? G k is hamiltonian if G is hamiltonian. Since G k contains G as a subgraph, the statement follows immedi- ately. Graph Theory 5 42 On the other side,, for any connected graph G independently whether it is hamiltonian or not of order at least 3 and for a sufficient large k,, the graph G k is hamiltonian since G d is complete if G has diameter d. G: G 2 : G 3 : What is the minimum k for which G k is hamiltonian? The next slide shows an example where G 2 is not hamiltonian, but G 3 is hamiltonian. A graph whose square is not hamiltonian. Graph Theory 5 43 Graph Theory 5 44 11

Theorem 5.22 (Karaganis( Karaganis,, 1968 Sekanina 1960): If G is a connected graph, then G 3 is hamiltonian-connected connected. We will show it by induction on n,, the order of the tree. For small values of n the result is obvious. Assume for all trees H of order less than n that H 3 is hamiltonian-connected connected,, and let T be a tree of order n,, and let u and v be any two vertices of T. Case 1: Suppose that u and v are adjacent in T. If H is a spanning tree of G and H 3 is hamiltonian-connected connected,, then G 3 is hamiltonian-connected connected. It is sufficient to prove that the cube of every tree is hamiltonian- connected. Let e = uv,, and consider the forest T e.. This forest has two compon- ents T u and T v containing u and v, respectively. By the induction hypothesis 3 T u 3 and are hamiltonian-connected connected. Let u 1 be any vertex of T u adjacent to u,, and let v 1 be any vertex of T v adjacent to v. (If T u or T v is trivial,, then we define u = u 1 or v = v 1, respectively.) Since d T (u 1,v 1 ) 3 so it t is true that u 1 and v 1 are adjacent in T 3. 3 Let P u be a hamiltonian u u 1 path of T u and let P v be a hamiltonian 3 v 1 v path of. T v The path formed by beginning with P u followed by the edge u 1 v 1 and then the path P v is a hamiltonian u v path of T 3. T v Graph Theory 5 45 Graph Theory 5 46 Rajz a Case 1-hez1 Case 2: Suppose that u and v are not adjacent in T. Since T is a tree, there is unique path between every two of ist vertices. Let P be the unique u v path of T,, and let f = uw be the edge which incident with in T. The graph T f consists of two trees, T u and T w containing u and w, respectively. By the induction hypothesis there exists a hamiltonian w v path in 3 P w in. T w Let u 1 be a vertex of T u adjacent to u (or let u 1 = u if T u is trivial), and 3 let P u be a hamiltonian u u 1 path in. Since d T (u 1,w) 2, therefore the edge u 1 w is present in T 3. So, the path formed by staring with P u followed by u 1 w and then P w is a hamiltonian u v path of T 3. T u Graph Theory 5 47 Graph Theory 5 48 12

Rajz a Case 2-höz. 2 Althoug it is not true that the squares of all connected graphs of order at least 3 are hamiltonian,, it was conjectured by Nash-Williams and Plummer that for 2-connected graphs this is the case. In 1974, Fleischner proved the conjecture to be correct. Theorem 5.23.: If G is 2-connected, then G 2 is hamiltonian. A graph G is k-(vertex) (vertex)-connected (k2)) if either K k+1 or it has at least k+2 vertices and no set of k-1 vertices separates G. Graph Theory 5 49 Graph Theory 5 50 Since G is 2-connected, it has order at least 3.. Let u and v be any two vertices of G. Let G 1,G 2,,G 5 be distinct copiew of G,, and let u i and v i (i=1,2,,5) be the vertices in G i corresponding u and v. Let us form a new graph F by adding to G 1 G 2 G 5 two new vertices w 1 and w 2 and ten new edges w 1 u i and w 2 v i (i=1,2,,5). F is 2-connected since neither w 1 nor w 2 is a cut-vertex of F, each graphs G i is 2-connected and contains two vertices adjacent to vertices in V(F) V(G i ), no vertex in G i is a cut-vertex of F. Graph Theory 5 51 Theorem 5.24.: If G is 2-connected, then G 2 is hamiltonian-connect connect- ed. Since F is 2-connected, then by Theorem 5.23 F 2 has a hamilton- ian cycle C.. This cycle contains w 1 and w 2. At least one of the graphs G i contains no vertex adjacent to w 1 or w 2 on C.. Let this graph be G 1. Since u 1 and v 1 are the only vertices which are adjacent on C to vertices not in G 1, it follows that C has a u 1 v 1 path containing all vertices of G 1. Thus has a hamiltonian u 1 v 1 path, which implies that G 2 contains a hamiltonian u v path. So, G 2 is hamiltonian-connected. Graph Theory 5 52 13

G 1 G 2 G 3 G 4 G 5 w 1 u 1 v 1 u 2 v 2 u 3 v 3 u 4 v 4 u 5 v 5 The line graph L(G) of a graph G is that graph whose vertices can be put in one-to to-oneone correspondence with the edges of G in such a way that two vertices of L(G) are adjacent iff the corresponding edges of G are adjacent. In other words: A graph H is a line graph if there exists a graph G such that H = L(G). u 1 u 2 e 2 e 5 e 3 e 6 u 3 w 2 Graph Theory 5 53 e 1 e 4 A graph and its line graph. u 4 u 5 Graph Theory 5 54 u 6 It is relatively easy to determine the number of vertices and the number of edges in the line graph L(G) of a graph G in terms of easily computed quantities in G: Theorem 5.24.: A graph edge is a line graph iff none of the next graphs is an induced subgraph of H. If given a graph G(n,m) with degree sequence d 1,d 2,, d n and L(G) is a graph of order n' and size m' then n d i n = m and m = i= 1 2 How can we decide whether a given grap H is a line graph? Several characterization of line graphs have been obtained, perhaps the best known of which is the forbidden subgraph characterisat- ion due to Beineke (1968). Graph Theory 5 55 Graph Theory 5 56 14

A set X of edges in a graph is called a dominating set if every edge of G either belongs to X or is adjacent to an edge of X. Exercises.. (G. Chartrand and L. Lesniak page 110.) 10.) If the subgraph induced by the set X X is a circuit, then C is called dominating circuit of G. A circuit C in a graph G is a dominating circuit iff every edge of G is incident with a vertex of C. The next theorem due to Harary and Nash-Williams provides a char- acterization of those graphs having hamiltonian line graphs: Theorem 5.25. (F. Harary and J. A. Nash-Williams, 1965): Let G be a graph without isolated vertices. Then L(G) is hamiltonian iff G=K 1,l for some l 3 or G contains a dominating circuit. G=K 1,l Graph Theory 5 57 Graph Theory 5 58 Euler trails and euler circuits. 6. Euler Graphs The seven bridge of Königsberg. Eulerian decomposition of graphs. Eulerian digraphs The exhibition design problem. 6.1. Euler circuits A circuit in a graph G containing all the edges is said to be an Euler circuit of G. An Euler trail contains all edges but it is not closed. A graph is Eulerian if it has an Euler circuit. Graph Theory 5 59 Graph Theory 5 60 15

Theorem 6.1. : A non-trivial connected graph has an Euler circuit iff each vertex has even degree. A: Let x 1,x 2,,x m be an Euler circuit in G.. If x i occurs k times in the sequence x 1,x 2,,x m, then d(x i )=2k. B: By induction on the number of edges. The seven bridges on the Pregel in Königsberg Graph Theory 5 61 If there are no edges, then there is nothing to prove,, so we we proceed the induction step. Assume we have a graph G in which each vertex has even degree. Since e(g)1 and (G) (G)2 then G contains a cycle. (see the Theorem 3.1.). Let C be a circuit in G with the maximal number of edges, and suppose C is not Eulerian. Graph Theory 5 62 x H = G E(C Theorem 6.2. : A connected graph has an Euler trail from a vertex x to a vertex y (x)) iff x and y are the only vertices of odd degree. x D A: The condition is clearly necessary. Every vertex of H has even degree in H, so by the induction hypothesis H contains an Euler circuit.. We denote this circuit by D. C and D are edge-disjoint disjoint and they have at least one common vertex. C and D can be strung together to form a circuit with more edges than C. This would be a contradiction. Graph Theory 5 63 B: Suppose that x and y are the only vertices of odd degree. Let G * be obtained from G by adding to it a vertex u together with the edges ux and uy. By the Theorem 4.3. G * has an Euler circuit C *. Clearly, C * u is an Euler trail from x to y. Graph Theory 5 64 16

What is the answer for the Köngsberg bridge puzzle? Theorem 6.3.: If G is a connected graph with 2k odd vertices (k1),( then the edge set of G can be partitioned into k subsets, each of which induces a trail connecting odd vertices. Proof is trivial. Theorem 6.4.: If G is a connected graph with 2k odd vertices (k1( k1), then E(G) can be partitioned into subsets E 1,E 2,,E k so that for each i, E i is a trail connecting odd vertices and such that at most one of these trails has odd length. Theorem 6.5.: A nontrivial connected graph G is eulerian iff E(G) can be partitioned into subsets E i, 1 i k,, where each subgraph is a cycle. E i A: Let G be an eulerian graph. We employ induction on the size of G. If m = 3 then G = K 3 and G has the desired property. Suppose that the statement is true for any m' < m, where m 4, and let G be an eulerian graph with m edges. Since G is eulerian,, so G is an even graph and G has at least one cycle C. If E(G) = E(C) then then we have the desired partition of E(G). Graph Theory 5 65 Graph Theory 5 66 Otherwise, there are edges of G not in C.. Remove the edges of C to obtain G'. Similarly to the proof of the Theorem 6.1,, every non-trivial component of G' is a nontrivial connected even graph, and so, by the Theorem 6.1, is an eulerian graph with fewer than m edges. So, we can use the induction hypothesis to G',, the edge set of each non-trivial component of G' can be partitioned into subsets, each including a cycle. These subsets together with E(C) give the desired partition of E(G). B: Suppose that the edge set of G can be partitioned into subsets E i, 1 i k, where each subgraph E i is a cycle. Then G is a nontrivial connected even graph. We can use, again the Theorem 6.1, and so G is eulerian. Graph Theory 5 67 6.2. Results on directed graphs. An eulerian trail of a digraph D is an open trail of D containing all of the arcs and vertices of D. An eulerian circuit is a circuit containing all of the arcs and vertices of D. A digraph that contains an eulerian circuit is called an eulerian digraph. Theorem 6.6.: Let D be a nontrivial directed digraph. Then D is eulerian iff od v = id v for every vertex of D. Graph Theory 5 68 17

Theorem 6.7.: Let D be a nontrivial connected digraph.. Then D has an eulerian trail iff D contains vertices u and v such that od u = id u + 1 and id v = od v + 1 and od w + id w for all other vertices w of D. Furthrmore,, the trail begins at u and ends at v. Digraphs with eulerian circuits and eulerian trails. Graph Theory 5 69 Graph Theory 5 70 Another problem from the practice: How shall we plan the corridors of an exhibition If the entrance and the exit are the same,, a visitor can walk along every corridor once iff the corresponding graph has an Eulerian circuit. In a well-pland exhibition a visitor avoids going along the same corridor twice and continues his walk until there were no new exhibits ahead of him.. He chooses his way randomly. x We call the correspoding graph randomly Eulerian. G is randomly Eulerian from the vertex x. Graph Theory 5 71 Graph Theory 5 72 18