graph theory douglas b west 2 ed

610

Click here to load reader

Upload: sumi11

Post on 20-Jan-2016

4.102 views

Category:

Documents


190 download

TRANSCRIPT

  • Glossary of Notation

    Non-alphabetic notation Roman alphabet

    -

    adjacency relation A(G) adjacency matrix ---+ successor relation (digraph) AdjA adjugate matrix :::: isomorphism relation B(G) bandwidth a= b mod n congruence relation BM bases of matroid =} implication CM circuits of matroid LxJ floor of number Cn cycle with n vertices rxl ceiling of number Cd n power of a cycle [n] {l, ... , n) c(G) number of components !xi absolute value of number c(G) circumference ISi size of set C(G) (Hamiltonian) closure {x: P(x)) set description c(e) cost or capacity 00 infinity cap(S, T) capacity of a cut 0 empty set di, .. ., dn degree sequence u union d(v), dc(v) degree of vertex n intersection d+(v), d-(v) out-degree, in-degree A s; B subset D digraph G s; H subgraph D(G) distance sum G[S] subgraph of G induced by S d(u, v) distance from u to v G,X complement of graph or set diamG diameter G* (planar) dual detA determinant Gk kth power of graph E(G) edge set 5k set of k-tuples from S E(X) expected value [S,S] edge cut e(G) size (number of edges) [S, T] source-sink cut j+(v), j+(S) total exiting flow G - v deletion of vertex l-(v), l-(S) total entering flow G-e deletion of edge l function, flow G e contraction of edge l number of faces G+H disjoint union of graphs G graph (or digraph! GvH join of graphs GP random graph in Model A GOH cartesian product of graphs Hk.n Harary graph GtoH, AtoB symmetric difference IM independent sets of matroid G ox vertex duplication I identity matrix Goh vertex multiplication J matrix of all l's AxB cartesian product of sets Kn complete graph A-B difference of sets Kr.s complete bipartite graph

    ~:~"nJ binomial coefficient L(G) line graph multinomial coefficient l(e) lower bound on flow ln n-vector with all entries 1 YIX conditional variable or event continued on inside back cover

  • Introduction to

    Graph Theory Second Edition

    Douglas B. West University of Illinois - Urbana

  • The author and publisher of this book have used their best efforts in preparing this book. These efforts include the development, research, and testing of the theories and programs to determine their effectiveness. The author and publisher make no warranty of any kind, expressed or implied, with regard to these programs or the documentation contained in this book. The author and publisher shall not be liable in any event for incidental or consequential damages in connection with, or arising out of, the furnishing, performance, or use of these programs.

    Copyright 2001 by Pearson Education, Inc. This edition is published by arrangement with Pearson Education, Inc.

    All rights reserved. No part of this publication may be reproduced, stored in a database or retrieval system, or transmitted in any form or by auy means, electronic, mechanical, photocopying, recording, or otherwise, without the prior written permission of the publisher.

    ISBN 81-7808-830-4

    First Indian Reprint, 2002

    This edition is manufactured in India and is authorized for sale only in India, Bangladesh, Pakistan, Nepal, Sri Lanka and the Maldives.

    Published by Pearson Education (Singapore) Pte. Ltd., Indian Braneh, 482 F.I.E. Patparganj, Delhi 110 092, India

    Printed in India by Rashtriya Printers.

  • For my dear wife Ching and for all lovers of graph theory

  • Contents

    Preface xi

    Chapter 1 Fundamental Concepts 1

    1.1 What Is a Graph? 1 The Definition, 1 Graphs as Models, 3 Matrices and Isomorphism, 6 Decomposition and Special Graphs, 11 Exercises, 14

    1.2 Paths, Cycles, and Trails 19 Connection in Graphs, 20 Bipartite Graphs, 24 Eulerian Circuits, 26 Exercises, 31

    1.3 Vertex Degrees and Counting 34 Counting and Bijections, 35 Extremal Problems, 38 Graphic Sequences, 44 Exercises, 4 7

    1.4 Directed Graphs 53 Definitions and Examples, 53 Vertex Degrees, 58 Eulerian Digraphs, 60 Orientations and Tournaments, 61 Exercises, 63

    v

  • vi

    Chapter 2 Trees and. Distance

    2.1 Basic Properties Properties of Trees, 68 Distance in Trees and Graphs, 70 Disjoint Spanning Trees (optional), 73 Exercises, 7 5

    2.2 Spanning Trees and Enumeration Enumeration of Trees, 81 Spanning Trees in Graphs, 83 Decomposition and Graceful Labelings, 87 Branchings and Eulerian Digraphs (optional), 89 Exercises, 92

    2.3 Optimization and Trees Minimum Spanning Tree, 95 Shortest Paths, 97 Trees in Computer Science (optional), 100 Exercises, 103

    Chapter 3 Matchings and Factors

    3.1 Matchings and Covers Maximum Matchings, 108 Hall's Matching Condition, 110 Min-Max Theorems, 112 Independent Sets and Covers, 113 Dominating Sets (optional), 116 Exercises, 118

    3.2 Algorithms and Applications Maximum Bipartite Matching, 123 Weighted Bipartite Matching, 125 Stable Matchings (optional), 130 Faster Bipartite Matching (optional), 132 Exercises, 134

    3.3 Matchings in General Graphs Tutte's 1-factor Theorem, 136 /-factors of Graphs (optional), 140 Edmonds' Blossom Algorithm (optional), 142 Exercises, 145

    Contents

    67

    67

    81

    95

    107

    107

    123

    136

  • Contents vii

    Chapter4 Connectivity and Paths 149

    4.1 Cuts and Connectivity 149 Connectivity, 149 Edge-connectivity, 152 Blocks, 155 Exercises, 158

    4.2 k-connected Graphs 161 2-connected Graphs, 161 Connectivity of Digraphs, 164 k-connected and k-edge-connected Graphs, 166 Applications ofMenger's Theorem, 170 Exercises, 172

    4.3 Network Flow Problems 176 Maximum Network Flow, 176 Integral Flows, 181 Supplies and Demands (optional), 184 Exercises, 188

    Chapter 5 Coloring of Graphs i91

    5.1 Vertex Colorings and Upper Bounds 191 Definitions and Examples, 191 Upper Bounds, 194 Brooks' Theorem, 197 Exercises, 199

    5.2 Structure of k-chromatic Graphs 204 Graphs with Large Chromatic Number, 205 Extremal Problems and Turan's Theorem 207 Color-Critical Graphs, 2iO Forced Subdivisions, 212 Exercises, 214

    5.3 Enumerative Aspects 219 Counting Proper Colorings, 219 Chordal Graphs, 224 A Hint of Perfect Graphs, 226 Counting Acyclic Orientations (optional), 228 Exercises, 229

  • viii

    Chapter 6 Planar Graphs

    6.1 Embeddings and Euler's Formula Drawings in the Plane, 233 Dual Graphs, 236 Euler's Formula, 241255 Exercises, 243

    6.2 Characterization of Planar Graphs Preparation for Kuratowski's Theorem, 24 7 Con'V'e:ll.'. Embeddings, 248 Planarity Testing (optional), 252 . Exercises, 255

    6.3 Parameters of Planarity Coloring of Planar Graphs, 257 Crossing Number, 261 Surfaces of Higher Genus (optional), 266 Exercises, 269

    Chapter 7 Edges and Cycles

    7.1 Line Graphs and Edge-coloring Edge-co}Qrings, 27 4 Characterization of Line Graphs (optional), 279 Exercises, 282

    7.2 Hamiltonian Cycles Necessary Conditions, 287 Sufficient Conditions, 288 Cycles in Directed Graphs (optional), 293 Exercises, 294

    7.3 Planarity, Coloring, and Cycles Tait's Theorem, 300 Grinberg's Theorem, 302 Snarks (optional), 304 Flows and Cycle Covers (optional), 307 Exercises, 314

    Contents

    233

    233

    246

    257

    273

    273

    286

    299

  • Contents

    Chapter 8 Additional Topics (optional) 8.1 Perfect Graphs

    The Perfect Graph Theorem, 320 Chordal Graphs Revisited, 323 Other Classes of Perfect Graphs, 328 Imperfect Graphs, 334 The Strong Perfect Graph Conjecture, 340 Exercises, 344

    8.2 Matroids Hereditary Systems and Examples, 349 Properties of Matroids, 354 The Span Function, 358 The Dual of a Matroid, 360 Matroid Minors and Planar Graphs, 363 Matroid Intersection, 366 Matroid Union, 369 Exercises, 372

    8.3 Ramsey Theory The Pigeonhole Principle Revisited, 378 Ramsey's Theorem, 380 Ramsey Numbers, 383 Graph Ramsey Theory, 386 Sperner's Lemma and Bandwidth, 388 Exercises, 392

    8.4 More Extremal Problems Encodings of Graphs, 397 Branchings and Gossip, 404 List Coloring and Choosability, 408 Partitions Using Paths and Cycles, 413 Circumference, 416 Exercises, 422

    8.5 Random Graphs Existence and Expectation, 426 Properties of Almost All Graphs, 430 Threshold Functions, 432 Evolution and Graph Parameters, 436 Connectivity, Cliques, and Coloring, 439 Martingales, 442 Exercises, 448

    ix

    319

    319

    349

    378

    396

    425

  • x

    8.6 Eigenvalues of Graphs The Characteristic Polynomial, 453 Linear Algebra of Real Symmetric Matrices, 456 Eigenvalues and Graph Parameters, 458 Eigenvalues of Regular Graphs, 460 Eigenvalues and Expanders, 463 Strungly Regular Graphs, 464 Exercises, 467

    Appendix A Mathematical Background Sets, 471 Quantifiers and Proofs, 475 Induction and Recurrence, 479 Functions, 483 Counting and Binomial Coefficients, 485 Relations, 489 The Pigeonhole Principle, 491

    Appendix B Optimization and Complexity Intractability, 493 Heuristics and Bounds, 496 NP-Completeness Proofs, 499 Exercises, 505

    Appendix C Hints for Selected Exercises General Discussion, 507 Supplemental Specific Hints, 508

    Appendix D Glossary of Terms

    Appendix E Supplemental Reading

    Appendix F References

    Author Index

    Subject Index

    Contents

    452

    471

    493

    507

    515

    533

    567

    569

    575

  • Preface

    Graph theory is a delightful playground for the exploration of proof tech-niques in discrete mathematics, and its results have applications in many areas of the computing, social, and natural sciences. The design of this book permits usage in a one-semester introduction at the undergraduate or beginning grad-uate level, or in a patient two-semester introduction. No previous knowledge of graph theory is assumed. Many algorithms and applica~ions are included, but the focus is on understanding the structure of graphs and the techniques used to analyze problems in graph theory.

    Many textbooks have been written about graph theory. Due to its em-phasis on both proofs and applications, the initial model for this book was the elegant text by J.A. Bondy and U.S.R. Murty, Graph Theory with Applica-tions (Macmillan/North-Holland [1976]). Graph theory is still young, and no consensus has emerged on how the introductory material should be presented. Selection and order of topics, choice of proofs, objectives, and underlying themes are matters of lively debate. Revising this book dozens of times has taught me the difficulty of these decisions. This book is my contribution to the debate.

    The Second Edition The revision for the second edition emphasizes making the text easier for

    the students to learn from and easier for the instructor to teach from. There have not been great changes in the overall content of the book, but the presen-tation has been modified to make the material more accessible, especially in the early parts of the book. Some of the changes are discussed in more detail later in this preface; here I provide a brief summary.

    Optional material within non-optional sections is now designated by(*); such material is not used later and can be skipped. Most of it is intended to be skipped in a one-semester course. When a subsection is marked "optional", the entire subsection is optional, and hence no individual items are starred.

    For less-experienced students, Appendix A has been added as a reference sum-mary of helpful material on sets, logical statements, induction, counting arguments, binomial coefficients, relations, and the pigeonhole principle.

    xi

  • xii Preface

    Many proofs have been reworded in more patient language with additional details, and more examples have been added.

    More than 350 exercises have been added, mostly easier exercises in Chapters 1-7. There are now more than 1200 exercises.

    More than 100 illustrations have been added; there are now more than 400. In illustrations showing several types of edges, the switch to bold and solid edges instead of solid and dashed edges has increased clarity.

    Easier problems are now grouped at the beginning of each exercise section, usable as warm-ups. Statements of some exercises have been clarified.

    In addition to hints accompanying the exercise statements, there is now an appendix of supplemental hints.

    For easier access, terms being defined are in bold type, and the vast majority of them appear in Definition items.

    For easier access, the glossary of notation has been placed on the inside covers. Material involving Eulerian circuits, digraphs, and Turan's Theorem has been

    relocated to facilitate more efficient learning. Chapters 6 and 7 have been switched to introduce the idea of planarity earlier,

    and the section on complexity has become an appendix. The glossary has been improved to eliminate errors and to emphasize items

    more directly related to the text.

    Features

    Various features of this book facilitate students' efforts to understand the material. There is discussion of proof techniques, more than 1200 exercises of varying difficulty, more than 400 illustrations, and many examples. Proofs are presented in full in the text.

    Many undergraduates begin a course in graph theory with little exposure to proof techniques. Appendix A provides background reading that will help them get started. Students who have difficulty understanding or writing proofs in the early material should be encouraged to read this appendix in conjunction with Chapter 1. Some discussion of proof techniques still appears in the early sections of the text (especially concerning induction), but an expanded treat-ment of the basic background (especially concerning sets, functions, relations, and elementary counting) is now in Appendix A.

    Most of the exercises require proofs. Many undergraduates have had lit-tle practice at presenting explanations, and this hinders their appreciation of graph theory and other mathematics. The intellectual discipline of justifying an argument is valuable.independently of mathematics; I hope that students will appreciate this. In writing solutions to exercises, students should be careful in their use of language ("say what you mean"), and they should be intellectually honest ("mean what you say").

    Although many terms in graph theory suggest their definitions, the quan-tity of terminology remains an obstacle to fluency. Mathematicians like to gather definitfons at the start, but most students succeed better if they use a

  • Preface xiii

    concept before receiving the next. This, plus experience and requests from re-viewers, has led me to postpone many definitions until they are needed. For example, the definition of cartesian product appears in Section 5.1 with color-ing problems. Line graphs are defined in Section 4.2 with Menger's Theorem and in Section 7.1 with edge-coloring. The definitions of induced subgraph and join have now been postponed to Section 1.2 and Section 3.1, respectively.

    I have changed the treatment of digraphs substantially by postponing their introduction to Section 1.4. Introducing digraphs at the same time as graphs tends to confuse or overwhelm students. Waiting to the end of Chapter 1 al-lows them to become comfortable with basic concepts in the context of a single model. The discussion of digraphs then reinforces some of those concepts while clarifying the distinctions. The two models are still discussed together in the material on connectivity.

    This book contains more material than most introductory texts in graph theory. Collecting the advanced material as a final optional chapter of "addi-tional topics" permits usage at different levels. The undergraduate introduction consists of the first seven chapters (omitting most optional material), leaving Chapter 8 as topical reading for interested students. A graduate course can treat most of Chapters 1 and 2 as recommended reading, moving rapidly to Chapter 3 in class and reaching some topics in Chapter 8. Chapter 8 can also be used as the basis for a second course in graph theory, along with material that was optional in earlier chapters.

    Many results in graph theory have several proofs; illustrating this can in-crease students' flexibility in trying multiple approaches to a problem. I include some alternative proofs as remarks and others as exercises.

    Many exercises have hints, some given with the exercise statement and others in Appendix C. Exercises marked "( - )" or "( + )" are easier or more dif-ficult, respectively, than unmarked problems. Those marked "( + )" should not be assigned as homework in a typical undergraduate course. Exercises marked "(!)" are especially valuable, instructive, or entertaining. Those marked"(*)" use material labeled optional in the text.

    Each exercise section begins with a set of"( - )"exercises, ordered according to the material in the section and ending with a line of bullets. These exercises either check understanding of concepts or are immediate applications ofresults in the section. I recommend some of these to my class as "warmup" exercises to check their understanding before working the main homework problems, most of which are marked "(!)". Most problems marked "(-)" are good exam questions. When using other exercises on exams, it may be a good idea to provide hints from Appendix C.

    Exercises that relate several concepts appear when the last is introduced. Many pointers to exercises appear in the text where relevant concepts are dis-cussed. An exercise in the current section is cited by giving only its item number among the exercises of that section. Other cross-references are by Chapter.Section.Item.

  • xiv Preface

    Organization and Modifications

    In the first edition, I sought a development that was intellectually coherent and displayed a gradual (not monotonic) increase in difficulty of proofs and in algorithmic complexity.

    Carrying this further in the second edition, Eulerian circuits and Hamilto-nian cycles are now even farther apart. The simple characterization of Eulerian circuits is now in Section 1.2 with material closely related to it. The remain-der of the former Section 2.4 has been dispersed to relevant locations in other sections, with Fleury's Algorithm dropped.

    Chapter 1 has been substantially rewritten. I continue to avoid the term "multigraph"; it causes more trouble than it resolves, because many students assume that a multigraph must have multiple edges. It is less distracting to append the word "simple" where needed and keep "graph" as the general ob-ject, with occasional statements that in particular contexts it makes sense to consider only simple graphs.

    The treatment of definitions in Chapter 1 has been made i:ore friendly and precise, particularly those involving paths, trails, and walks. The informal groupings of basic definitions in Section 1.1 have been replaced by Definition items that help students find definitions more easily.

    In addition to the material on isomorphism, Section 1.1 now has a more precise treatment of the Petersen graph and an explicit introduction of the notions of decomposition and girth. This provides language that facilitates later discussion in various places, and it permits interesting explicit questions other than isomorphism.

    Sections 1.2-1.4 have become more coherent. The treatment of Eulerian circuits motivates and completes Section 1.2. Some material has been removed from Section 1.3 to narrow its focus to degrees and counting, and this section has acquired the material on vertex degrees that had been in Section 1.4. Sec-tion 1.4 now provides the introduction to digraphs and can be treated lightly.

    Trees and distance appear together in Chapter 2 due to the many relations between these topics. Many exercises combine these notions, and algorithms to compute distances produce or use trees.

    Most graph theorists agree that the Konig-Egervary Theorem deserves an independent proof without network flow. Also, students have trouble distin-guishing "k-connected" from "connectivity k", which have the same relationship as "k-colorable" and "chromatic number k". I therefore treat matching first an.d later use matching to prove Menger's Theorem. Both matching and cor,mectivity are used in the coloring material.

    In response to requests from a number of users, I have added a short op-tional subsection on dominating sets at the end of Section 3.1. The material on weighted bipartite matching has been clarified by emphasis on vertex cover instead of augmenting path and by better use of examples.

    Turan's Theorem uses only elementary ideas about vertex degrees and in-duction and hence appeared in Chapter 1 in the first edition. This caused some difficulties, because it was the most abstract item up to that point and students

  • Preface xv

    felt somewhat overwhelmed by it. Thus I have kept the simple triangle-free case (Mantel's Theorem) in Section 1.3 and have moved the full theorem to Section 5.2 under the viewpoint of extremal problems related to coloring.

    The chapter on planarity now comes before that on "Edges and Cycles". When an instructor is short of time, planarity is more important to reach than the material on edge-coloring and Hamiltonian cycles. The questions involved in planarity appeal i:q.tuitively to students due to their visual aspects, and many students have encountered these questions before. Also, the ideas involved in discussing planar graphs seem more intellectually broadening in relation to the earlier material of the course than the ideas used to prove the basic results on edge-coloring and Hamiltonian cycles.

    Finally, discussing planarity first makes the material of Chapter 7 more coherent. The new arrangement permits a more thorough discussion of the relationships among planarity, edge-coloring, and Hamiltonian cycles, lead-ing naturally beyond the Four Color Theorem to the optional new material on nowhere-zero flows as a dual concept to coloring.

    When students discover that the coloring and Hamiltonian cycle problems lack good algorithms, many become curious about NP-completeness. Appendix B satisfies this curiosity. Presentation of NP-completeness via formal languages can be technically abstract, so some students appreciate a presentation in the context of graph problems. NP-completeness proofs also illustrate the variety and usefulness of "graph transformation" arguments.

    The text explores relationships among fundamental results. Petersen's Theorem on 2-factors (Chapter 3) uses Eulerian circuits and bipartite match-ing. The equivalence between Menger's Theorem and the Max Flow-Min Cut Theorem is explored more fully than in the first edition, and the "Baseball Elim-ination" application is now treated in more depth. The k - !-connectedness of k-color-critical graphs (Chapter 5) uses bipartite matching. Section 5.3 offers a brief introduction to perfect graphs, emphasizing chordal graphs. Additional features of this text in comparison to some others include the algorithmic proof of Vizing's Theorem and the proof of Kuratowski's Theorem by Thomassen's methods.

    There are various other additions and improvements in the first seven chapters. There is now a brief discussion of Heawood's Formula and the Robertson-Seymour Theorem at the end of Chapter 6. In Section 7.1, a proof of Shannon's bound on the edge-chromatic number has been added. In Section 5.3, the characterization of chordal graphs is somewhat simpler than before by proving a stronger result about simplicial vertices. In Section 6.3, the proof of the reducibility of the Birkhoff diamond has been eliminated, but a brief dis-cussion of discharging has been added. The material discussing issues in the p:t:oofofthe theorem is optional, and the aim is to give the flavor of the approach without getting into detailed arguments. From this viewpoint the reducibility proof seemed out of focus.

    Chapter 8 contains highlights of advanced material and is not intended for an undergraduate course. It assumes more sophistication than earlier chapters and is written more tersely. Its sections are independent; each selects appeal-

  • XVI Preface

    ing results from a large topic that merits a chapter of its own. Some of these sections become more difficult near the end; an instructor may prefer to sample early material in several sections rather than present one completely.

    There may be occasional relationships between items in Chapter 8 and items marked optional in the first seven chapters, but generally cross-references indicate the connections. The material of Chapter 8 has not changed substan-tially since the first edition, although many corn;ctions have been made and the presentation has been clarified in many places.

    I will treat advanced graph theory more thoroughly in The Art of Combina-torics. Volume I is devoted to extremal graph theory and Volume II to structure of graphs. Volume III has chapters on matroids and integer programming (in-cluding network flow). Volume IV emphasizes methods in cpmbinatorics and discusses various aspects of graphs, especially random graphs.

    Design of Courses

    I intend the 22 sections in Chapters 1-7 for a pace of slightly under two lectures per section when most optional material (starred items and optional subsections) is skipped. When I teach the course I spend eight lectures on Chapter 1, six lectures each on Chapters 4 and 5, and five lectures on each of Chapters 2, 3, 6, and 7. This presents the fundamental material in about 40 lectures. Some instructors may want to spend more time on Chapter 1 and omit more material from later chapters.

    In chapters after the first, the most fundamental material is concentrated in the first section. Emphasizing these sections (while skipping the optional items) still illustrates the scope of graph theory in a slower-paced one-semester course. From the second sections of Chapters 2, 4, 5, 6, and 7, it would be bene-ficial to include Cayley's Formula, Menger's Theorem, Mycielski's construction, Kuratowski's Theorem, and Dirac's Theorem (spanning cycles), respectively.

    Some optional material is particularly appealing to present in class. For example, I always present the optional subsections on Disjoint Spanning Trees (in Section 2.1) and Stable Matchings (in Section 3.2), and I usually present the optional subsection on /-factors (in Section 3.3). Subsections are marked optional when no later material in the first seven chapters requires them and they are not part of the central development of elementary graph theory, but these are nice applications that engage students' interest. In one sense, the "optional" marking indicates to students that the final examination is unlikely to have questions on these topics.

    Graduate courses skimming the first two chapters might include from them such topics as graphic sequences, kernels of digraphs, Cayley's Formula, the Matrix Tree Theorem, and Kruskal's algorithm.

    Courses that introduce graph theory in one term under the quarter system must aim for highlights; I suggest the following rough syllabus: 1.1: adjacency matrix, isomorphism, Petersen graph. 1.2: all. 1.3: degree-sum formula, large bipartite S,ubgraphs. 1.4: up to strong components, plus tournaments. 2.1: up

  • Preface XVll

    to centers of trees. 2.2: up to statement of Matrix Tree Theorem. 2.3: Kruskal's algorithm. 3.1: almost all. 3.2: none. 3.3: statement ofTutte's Theorem, proof of Petersen's results. 4.1: up to definition of blocks, omitting Harary graphs. 4.2: up to open ear decomposition, plus statement of Menger's Theorem(s). 4.3: duality between flows and cuts, statement of Max-flow = Min-cut. 5.1: up to Szekeres-Wilf theorem. 5.2: Mycielski's construction, possibly Turan's Theorem. 5.3: up to chromatic recurrence, plus perfection of chordal graphs. 6.1: non-planarity of K5 and K3. 3 , examples of dual graphs, Euler's formula with applications. 6.2: statement and examples ofKuratowski's Theorem and Tutte's Theorem. 6.3: 5-color Theorem, plus the idea of crossing number. 7.1: up to Vizing's Theorem. 7.2: up to Ore's condition, plus the Chvatal-Erdos condition. 7.3: Tait's Theorem, Grinberg's Theorem.

    Further Pedagogical Aspects

    In the revision I have emphasized some themes that arise naturally from the material; underscoring these in lecture helps provide continuity.

    More emphasis has been given to the theme of TONCAS-"The obvious necessary condition is also sufficient." Explicit mention has been added that many of the fundamental results can be viewed in this way. This both provides a theme for the course and clarifies the distinction between the easy direction and the hard direction in an equivalence.

    Another theme that underlies much of Chapters 3-5 and Section 7 .1 is that of dual maximization and minimization problems. In a graph theory course one does not want to delve deeply into the nature of duality in linear optimization. It suffices to say that two optimization problems form a dual pair when every feasible solution to the maximization problem has value at most the value of every feasible solution to the minimization problem. When feasible solutions with the same value are given for the two problems, this duality implies that both solutions are optimal. A discussion of the linear programming context appears in Section 8.1.

    Other themes can be identified among the proof techniques. One is the use of extremality to give short proofs and avoid the use of induction. Another is the paradigm for proving conditional statements by induction, as described explicitly in Remark 1.3.25.

    The devefopment leading to Kuratowski's Theorem is somewhat long. Nev-ertheless, it is preferable to present the proof in a single lecture. The prelim-inary lemmas reducing the problem to the 3-connected case can be treated lightly to save time. Note that the induction paradigm leads naturally to the two lemmas proved for the 3-connected case. Note also that the proof uses the notion of S-lobe defined in Section 5.2.

    The first lecture in Chapter 6 should not belabor technical definitions of drawings and regions. These are better left as intitive notions unless students ask for details; the precise statements appear in the text.

  • xviii Preface

    The motivating applications of digraphs in Section 1.4 have been marked optional because they are not needed in the rest of the text, but they help clarify that the appropriate model (graph or digraph) depends on the application.

    Due to its reduced emphasis on numerical computation and increased em-phasize on techniques of proof and clarity of explanations, graph theory is an excellent subject in which to encourage students to improve their habits of communication, both written and oral. In addition to assigning written home-work that requires carefully presented arguments, I have found it productive to organize optional "collaborative study" sessions in which students can work together on problems while I circulate, listen, and answer questions. It should not be forgotten that one of the best ways to discover whether one understands a proof is to try to explain it to someone else. The students who participate find these sessions very beneficial.

    Acknowledgments

    This text benefited from classroom testing of gradually improving pre-publication versions at many universities. Instructors who used the text on this experimental basis were, roughly in chronological order, Ed Scheinerman (Johns Hopkins), Kathryn Fraughnaugh (Colorado-Denver), Paul Weichsel I Paul Schupp I Xiaoyun Lu (Illinois), Dean Hoffman I Pete Johnson I Chris Rodger (Auburn), Dan Ullman (George Washington), Zevi Miller I Dan Pritikin (Miami-Ohio), David Matula (Southern Methodist), Pavol Hell (Simon Fraser), Grzegorz Kubicki (Louisville), Jeff Smith (Purdue), Ann Trenk (Wellesley), Ken Bogart (Dartmouth), Kirk Tolman (Brigham Young), Roger Eggleton (Illinois State), Herb Kasube (Bradley), and Jeff Dinitz (Vermont). Many of these (or their students) provided suggestions or complaints that led to improvements.

    I thank George Lobell at Prentice Hall for his continuing commitment to this project and for finding diligent reviewers. Reviewers Paul Edelman, Renu Laskar, Gary MacGillivray, Joseph Neggers, Joseph Malkevitch, James Oxley, Sam Stueckle, and Barry Tesman made helpful comments. Reviewers for early versions of sections of Chapter 8 included Mike Albertson, Sanjoy Barvah, Dan Kleitman, James Oxley, Chris Rodger, and Alan Tucker. Reviewers for the second edition included Nate Dean, Dalibor Froncek, Renu Laskar, Michael Molloy, David Sumner, and Daniel Ullman.

    Additional comments and corrections between the first and second editions came from many readers. These items range from typographical errors to ad-ditional exercises to simplifications in proofs. The accumulated effect of these contributions is substantial. Most of these suggestions don't lend themselves to attribution within the text, so I express my gratitude here for their willingness to contribute their observations, opinions, and expertise. These people include Troy Barcume, Stephan Brandt, Gerard Chang, Scott Clark, Dave Gunderson, Dean Hoffman, John D'Angelo, Charles Delzell, Thomas Emden-Weinert, Shi-mon Even, Fred Galvin, Alfio Giarlotta, Don Greenwell, Jing Huang, Garth

  • Preface xix

    Isaak, Steve Kilner, Alexandr Kostochka, Andre Kiindgen, Peter Kwok, Jean-Marc Lanlignel, Francois Margot, Alan Mehlenbacher, Joel Miller, Zevi Miller, Wendy Myrvold, Charles Parry, Robert Pratt, Dan Pritikin, Radhika Rama-murthi, Craig Rasmussen, Bruce Reznick, Jian Shen, Tom Shermer, Warren Shreve, Alexander Strehl, Tibor Szabo, Vitaly Voloshin, and C.Q. Zhang.

    Several students found numerous typographical errors in the pre-publication version of the second edition (thereby earning extra credit!): Jaspreet Bagga, Brandon Bowersox, Mark Chabura, John Chuang, Greg Harfst, Shalene Melo, Charlie Pikscher, and Josh Reed.

    The cover drawing for the first edition was produced by Ed Scheinerman using BRL-CAD, a product of the U.S. Army Ballistic Research Laboratory. For the second edition, the drawing was produced by Maria Muyot using CorelDraw.

    Chris Hartman contributed vital assistance in preparing the bibliography for the first edition; additional references have now been added. Ted Harding helped resolve typesetting difficulties in other parts of the first edition.

    Students who helped gather data for the index of the first edition included Maria Axenovich, Nicole Henley, Andre Kiindgen, Peter Kwok, Kevin Leuthold, John Jozwiak, Radhika Ramamurthi, and Karl Schmidt. Raw data for the index of the second edition was gathered using scripts I wrote in perl; Maria Muyot and Radhika Ramamurthi assisted with processing of the index and the bibliography.

    I prepared the second edition in '!EjX, the typesetting system for which the scientific world owes Donald E. Knuth eternal gratitude. The figures were generated using gpic, a product of the Free Software Foundation.

    Feedback I welcome corrections and suggestions, including comments on topics, at-

    tributions of results, updates, suggestions for exercises, typographical errors, omissions from the glossary or index, etc. Please send these to me at

    [email protected] In particular, I apologize in advance for missing references; please inform

    me of the proper citations! Also, no changes other than corrections of errors will be made between printings of this edition.

    I maintain a web site containing a syllabus, errata, updates, and other material. Please visit!

    http://www.math.uiuc.edu/~west/igt I have corrected all typographical and mathematical errors known to me be-fore the time of printing. Nevertheless, the robustness of the set of errors and the substantial rewriting and additions make me confident thRt some error remains. Please find it and tell me so I can correct it!

    Douglas B. West Urbana, Illinois

  • Chapter 1

    Fundamental Concepts

    1.1. What Is a Graph? How can we lay cable at minimum cost to make every telephone reachable

    from every other? What is the fastest route from the national capital to each state capital? How can n jobs be filled by n people with maximum total utility? What is the maximum fiow per unit time from source to sink in a network of pipes? How many layers does a computer chip need so that wires in the same layer don't cross? How can the season of a sports league be scheduled into the minimum number of weeks? In what order should a traveling salesman visit cities to minimize travel time? Can we color the regions of every map using four colors so that neighboring regions receive different colors?

    These and many other practical problems involve graph theory. In this book, we develop the theory of graphs and apply it to such problems. Our starting point assumes the mathematical background in Appendix A, where basic objects and language of mathematics are discussed.

    THE DEFINITION

    The problem that is often said to have been the birth of graph theory will suggest our basic definition of a graph.

    1.1.1. Example. The Konigsberg Bridge Problem. The city of Konigsberg was located on the Pregel river in Prussia. The city occupied two islands plus ar-eas on both banks. These regions were linked by seven bridges as shown on the left below. The citizens wondered whether they could leave home, cross ev-ery bridge exactly once, and return home. The problem reduces to traversing the figure on the right, with heavy dots representing land masses and curves representing bridges.

    1

  • 2 Chapter 1: Fundamental Concepts

    x

    z The model on the right makes it easy to argue that the desired traversal

    does not exist. Each time we enter and leave a land mass, we use two bridges ending at it. We can also pair the first bridge with the last bridge on the land mass where we begin and end. Thus existence of the desired traversal requires that each land mass be involved in an even number of bridges. This necessary condition did not hold in Konigsberg.

    The Konigsberg Bridge Problem becomes more interesting when we show in Section 1.2 which configurations have traversals. Meanwhile, the problem suggests a general model for discussing such questions.

    1.1.2. Definition. A graph ti is a triple consisting of a vertex set V(G), an edge set E(G), and a relation that associates with each edge two vertices (not necessarily distinct) called its endpoints.

    We draw a graph on paper by placing each vertex at a point and repre-senting each edge by a curve joining the locations of its endpoints.

    1.1.3. Example. In the graph in Example 1.1.1, the vertex set is {x, y, z, w}, the edge set is {ei, ez, e3, e4, e5, e6, e7 }, and the assignment of endpoints to edges can be read from the picture.

    Note that edges e1 and e2 have the same endpoints, as do e3 and e4. Also, if we had a bridge over an inlet, then its ends would be in the same land mass, and we would draw it as a curve with both ends at the same point. We have appropriate terms for these types of edges in graphs.

    1.1.4. Definition. A loop is an edge whose endpoints are equal. Multiple edges are edges having the same pair of endpoints.

    A simple graph is a graph having no loops or multiple edges. We specify a simple graph by its vertex set and edge set, treating the edge set as a set of unordered pairs of vertices and writing e =UV (ore= VU) for an edge e with endpoints u and v.

    When u and v are the endpoints of an edge, they are adjacent and are neighbors. We write u ~ v for "u is adjacent to v".

    In many important applications, loops and multiple edges do not arise, and we restrict our attention to simple graphs. In this case an edge is determined by

  • Section 1.1: What Is a Graph? 3

    its endpoints, so we can name the edge by its endpoints, as stated in Definition 1.1.4. Thus in a simple graph we view an edge as an unordered pair of vertices and can ignore the formality of the relation associating endpoints to edges. This book emphasizes simple graphs.

    1.1.5. Example. On the left below are two drawings of a simple graph. The vertex set is {u, v, w, x, y}, and the edge set is (uv, uw, ux, vx, vw,xw, xy}.

    The terms "vertex" and "edge" arise from solid geometry. A cube has ver-tices and edges, and these form the vertex set and edge set of a graph. It is drawn on the right below, omitting the names of vertices and edges.

    u ~ "[8l w v u y x

    A graph is finite if its vertex set and edge set are finite. We adopt the con-vention that every graph mentioned in this book is finite, unless explicitly constructed otherwise.

    1.1.6. * Remark. The null graph is the graph whose vertex set and edge set are empty. Extending general theorems to the null graph introduces unnec-essary distractions, so we ignore it. All statements and exercises should be considered only for graphs with a nonempty set of vertices.

    GRAPHS AS MODELS Graphs arise in many settings. The applications suggest useful concepts

    and terminology about the structure of graphs.

    1.1.7. Example. Acquaintance relations and subgraphs. Does every set of six people contain three mutual acquaintances or three mutual strangers? Since "acquaintance" is symmetric, we model it using a simple graph with a vertex for each person and an edge for each acquainted pair. The "nonacquaintance" relation on the same set yields another graph with the "complementary" set of edges. We introduce terms for these concepts.

  • 4 Chapter 1: Fundamental Concepts

    1.1.8. Definition. The complement G of a simple graph G is the simple graph with vertex set V(G) defined by uv E E(G) if and only if uv tf. E(G). A clique in a graph is a set of pairwise adjacent vertices. An independent set (or stable set) in a graph is a set of pairwise nonadjacent vertices.

    In the graph G of Example 1.1.7, {u, x, y} is a clique of size 3 and {u, w} is an independent set of size 2, and these are the largest such sets. These values reverse in the complement G, since cliques become independent sets (and vice versa) under complementation. The question in Example 1.1.7 asks whether it is true that every 6-vertex graph has a clique of size 3 or an independent set of size 3 (Exercise 29). Deleting edge ux from G yields a 5-vertex graph having no clique or independent set of size 3.

    1.1.9. Example. Job assignments and bipartite graphs. We have m jobs and n people, but not all people are qualified for all jobs. Can we fill the jobs with qualified people? We model this using a simple graph H with vertices for the jobs and people; job j is adjacent to person p if p can do j.

    Each job is to be filled by exactly one person, and each person can hold at most one of the jobs. Thus we seek m pairwise disjoint edges in H (viewing edges as pairs of vertices). Ch2pter 3 shows how to test for this; it can't be done in the graph below.

    The use of graphs to model relations between two disjoint sets has many important applications. These are the graphs whose vertex sets can be parti-tioned into two independent sets; we need a name for them.

    people

    jobs

    1.1.10. Definition. A graph G is bipartite if V ( G) is the union of two disjoint (possibly empty) independent sets called partite sets of G.

    1.1.11. Example. Scheduling and graph coloring. Suppose we must schedule Senate committee meetings into designated weekly time periods. We cannot assign two committees to the same time if they have a common member. How many different time periods do we need?

    We create a vertex for each committee, with two vertices adjacent when their committees have a common member. We must assign labels (time periods) to the vertices so the endpoints of each edge receive different labels. In the graph below, we can use one label for each of the three independent sets of vertices grouped closely together. The members of a clique must receive distinct labels, so in this example the minimum number of time periods is three.

    Since we are only interested in partitioning the vertices, and the labels have no numerical value, it is convenient to call them colors.

  • Section l'.1: What Is a Graph? 5

    1.1.12. Definition. The chromatic number of a graph G, written x(G), is the minimum number of colors needed to label the vertices so that adjacent verti~es receive different colors. A graph G is k-partite if V(G) can be expressed as the union of k (possibly empty) independent sets.

    This generalizes the idea of bipartite graphs, which are 2-partite. Vertices given the same cofor must form an independent set, so x (G) is the minimum number of independent sets needed to partition V ( G). A graph is k-partite if and only if its chromatic number is at most k. We use the term "partite set" when referring to a set in a partition into independent sets.

    We study chromatic number and graph colorings in Chapter 5. The most (in)famous probiem in graph theory involves coloring of"maps".

    1.i.13. Example. Maps and coloring, Roughly speaking, a map is a partition of the plane into connected regions. Can we color the regions of every map using at most four colors so that neighboring regions have different colors?

    To relate map coloring to graph colori~g, we introduce a vertex for each region and an edge for regions sharing a bmindary. The map question asks whether the resulting graph must have chromatic number at most 4. The graph can be drawn in the plane without crossing edges; such graphs are planar. The graph before Definition 1.1.12 is planar; that drawing has a crossing, but another drawing has no crossings. We study planar graphs in Chapter 6.

    1.1.14. Example. Routes in road networks. We can model a road network using a graph with edges corresponding to road segments between intersections. We can assign edge weights to measure distance or travel time. In this context edges do represent physical links. How can we find the shortest route from x toy? We show how to compute this in Chapter 2.

    If the vertices of the graph represent our house and other places to visit, then we may want to follow a route that visits every vertex exactly once, so as to visit everyone without overstaying our welcome. We consider the existence of such a route in Chapter 7.

    We need terms to describe these two types of routes in graphs.

    1.1.15. Definition. A path is a simple graph whose vertices can be ordered so that two vertices are adjacent if and only if they are consecutive in the list. A cycle is a graph with an equal number of vertices and edges whose vertices can be placed around a circle so that two vertices are adjacent if and only if they appear consecutively along the circle.

  • 6 Chapter 1: Fundamental Concepts

    x z x z )a V(>a y b y b

    Above we show a P!lth and a cycle, as demonstrated by listing the vertices in the order x, b, a, z, y. Dropping one edge from a cycle produces a path. In studying the rm1tes in road networks, we think of paths and cycles contained in the graph. Also, we hope that every vertex in the network can be reached from every other. The next definition makes these concepts precise.

    1.1.16. Definition. A subgraph of a graph G is a graph H such that V (H) s; V(G) and E(H) s; E(G).and the assignment of endpoints to edges in His the same as m G. We then write H s; G and say that "G contains H".

    A graph G is connected if each pair of vertices in G belongs to a path; otherwise, G is disconnected.

    The graph before Definition 1.1.12 has three subgraphs that are cycles. It is a connected graph, but the graph in Example 1.1.9 is not .

    .

    MATRICES AND ISOMORPHISM How do we specify a graph? We can list the vertices and edges (with end-

    points), but there are other useful representations. Saying that a graph is loopless means that multiple edges are allowed but loops are not.

    1.1.17. Definition. Let G be a loopless graph with vertex set V ( G) = { v1, ... , Vn} and edge set E(G) = {e1, ... , em}. The adjacency matrix of G, written A ( G), is the n-by-n matrix in which entry a;,j is the number of edges in G with endpoints { v;, Vj}. The incidence matrix M ( G) is the n-by-m matrix in which entry m;,j is 1 if v; is an endpoint of ej and otherwise is 0.

    If vertex v is an endpoint of edge e, then v and e are incident. The degree of vertex v (in a loopless graph) is the number of incident edges.

    The appropriate way to define adjacency matri~, incidence matrix, or ver-tex degrees for graphs with loops depends on the application; Sections 1.2 and 1.3 discuss this.

    1.1.18. Remark. An adjacency matrix is determined by a vertex ordering. Ev-ery adjacency matrix is symmetric (a;,j = aj,i for all i, j). An adjacency matrix of a simple graph G has entries 0 or 1, with Os on the diagonal. The degree of vis the sum of the entries in the row for v in either A(G) or M(G).

    1.1.19. Example. For the loopless graph G below, we exhibit the adjacency matrix and incidence matrix that result from the vertex ordering w, x, y, z and

  • Section 1.1: What Is a Graph? 7

    the edge ordering a, b, c, d, e. The degree of y is 4, by viewing the graph or by summing the row for y in either matrix.

    w x y z w a b c d e

    w (0 x 1 y 1 z 0

    H ~) a ~z ; (H : : 0 1 0 o---~ z 0 0 0 0

    x

    A(G) G M(G) Presenting an adjacency matrix for a graph implicitly names the vertices

    by the order of the rows; the ith vertex corresponds to the ith row and column. Storing a graph in a computer requires naming the vertices.

    Nevertheless, we want to study properties (like connectedness) that do not depend on these names. Intuitively, the structural properties of G and H will be the same if we can rename the vertices of G using the vertices in H so that G will actually become H. We make the definition precise for simple graphs. The renaming is a function from V(G) to V(H) that assigns each element of V(H) to one element of V(G), thus pairing them up. Such a function is a on~-to-one correspondence or bijection (see Appendix A). Saying that the renaming turns G into H is saying that the vertex bijection preserves the adjacency relation. 1.1.20. Definition. An isomorphism from a simple graph G to a simple

    graph His a bijection/: V(G)-+ V(H) such that uv E E(G) ifand only if f(u)f(v) E E(H). We say"G is isomorphic to H", written G ~ H, ifthere is an isomorphism from G to H.

    1.1.21. Example. The graphs G and H drawn below are 4-vertex paths. Define , the function/: V(G) -+ V(H) by f(w) =a, f(x) = d, f(y) = b, f(z) = c. To show that f is an isomorphism, we check that f preserves edges and non-edges. Note that rewriting A(G) by placing the rows in the order w, y, z, x and the columns also in that order yields A(H), as illustrated below; this verifies that f is an isomorphism.

    Another isomorphism maps w, x, y, z to c, b, d, a, respectively.

    w y c d

    G VI H )

  • 8 Chapter 1: Fundamental Concepts

    1.1.22. Remark. Finding isomorphisms. As suggested in Example 1.1.21, pre-senting the adjacency matrices with vertices ordered so that the matrices are identical is one way to prove that two graphs are isomorphic. Applying a per-mutation a to both the rows and the columns of A ( G) has the effect ofreordering the vertices of G. If the new matrix equals A(H), then the permutation yields an isomorphism. One can also verify preservation of the adjacency relation without writing out the matrices.

    In order for an explicit vertex bijection to be an isomorphism from G to H, the image in H of a vertex v in G must behave in H as v does in G. For example, they must have the same degree.

    1.1.23. * Remark. Isomorphism for non-simple graphs. The definition of iso-morphism extends to graphs with loops and multiple edges, but the precise statement needs the language of Definition 1.1.2.

    An isomorphism from G to H is a bijection f that maps V(G) to V(H) and E(G) to E(H) such each edge ofG with endpoints u and vis mapped to an edge with endpoints f(u) and f (v).

    This technicality will not concern us, because we will study isomorphism only in the context of simple graphs.

    Since H is isomorphic to G whenever G is isomorphic to H, we often say "G and Hare isomorphic" (meaning to each other). The adjective "isomorphic" applies only to pairs of graphs; "G is isomorphic" by itself has no meaning (we respond, "isomorphic to what?"). Similarly, we may say that a set of graphs is "pairwise isomorphic" (taken two at a time), but it doesn't make sense to say "this set of graphs is isomorphic".

    A relation on a set S is a collection of ordered pairs from S. An equiv-alence relation is a relation that is reflexive, symmetric, and transitive (see Appendix A). For example, the adjacency relation on the set of vertices of a graph is symmetric, but it is not reflexive and rarely is transitive. On the other hand, the isomorphism relation, consisting of the set ofordered pairs (G, H) such that G is isomorphic to H, does have all three properties.

    1.1.24. Proposition. The isomorphism relation is an equivalence relation on the set of(simple) graphs.

    Proof: Reflexive property. The identity permutation on V ( G) is an isomorphism from G to itself. Thus G ~ G.

    Symmetric property. If/: V(G) ~ V(H) is an isomorphism from G to H, then 1-1 is an isomorphism from H to G, because the statement "uv E E(G) if and only if f(u)f(v) E E(H)" yields "xy E E(H) if and only if 1-1(x)f- 1(y) E E(H)". Thus G ~ H implies H ~ G.

    Transitive property. Suppose that/: V(F) ~ V(G) and g: V(G) ~ V(H) are isomorphisms. We are given "uv E E(F) if and only if f(u)f(v) E E(G)" and "xy E E(G) if and only if g(x)g(y) E E(H)". Since f is an isomorphism, for every xy E E(G) we can find uv E E(F) such that f(u) = x and f(v) = y. This

  • Section 1,1: What Is a Graph? 9

    yields "uv E E(F) if and only if g(f(u))g(f(v)) E E(H)". Thus the composition g o f is an isomorphism from F to H. We have proved that F ~ G and G ~ H together imply F ~ H.

    An equivalence relation partitions a set into equivalence classes; two elements satisfy the relation if and only if they lie in the same class.

    1.1.25. Definition. An isomorphism class of graphs is an equivalence class of graphs under the isomorphism relation.

    Paths with n vertices are pairwise isomorphic; the set of all n-vertex paths forms an isomorphism class.

    1.1.26. Remark. "Unlabeled" graphs and isomorphism classes. When dis-cussing a graph G, we have a fixed vertex set, but our structural comments apply also to every graph isomorphic to G. Our conclusions are independent of the names (labels) of the vertices. Thus, we use the informal expression "unlabeled graph" to mean an isomorphism class of graphs.

    When we draw a graph, its vertices are named by their physical locations, even if we give them no other names. Hence a drawing of a graph is a member of its isomorphism class, and we just call it a graph. When we redraw a graph to display some structural aspect, we have chosen a more convenient member of the isomorphism class, still discussing the same "unlabeled graph".

    When discussing structure of graphs, it is convenient to have names and notation for important isomorphism classes. We want the flexibility to refer to the isomorphism class or to any representative of it.

    1.1.27. Definition. The (unlabeled) path and cycle with n vertices are denoted Pn and Cn, respectively; an n-cycle is a cycle with n vertices. A com-plete graph is a simple graph whose vertices are pairwise adjacent; the (unlabeled) complete graph with n vertices is denoted Kn. A complete bipartite graph or biclique is a simple bipartite graph such that two vertices are adjacent if and only if they are in different partite sets. When the sets have sizes rands, the (unlabeled) biclique is denoted Kr,s

    1.1.28. * Remark. We have defined a complete graph as a graph whose vertices are pairwise adjacent, while a clique is a set of pairwise adjacent vertices in a graph. Many authors use the terms interchangeably, but the distinction allows us to discuss cliques in the same language as independent sets.

  • 10 Chapter 1: Fundamental Concepts

    In the bipartite setting, we simply use "biclique" to abbreviate "complete bipartite graph". The alternative name "biclique" is a reminder that a complete bipartite graph is generally not a complete graph (Exercise 1).

    1.1.29. Remark. A graph by any other name . . . When we name a graph without naming its vertices, we often mean its isomorphism class. Technically, "H is a subgraph of G" means that some subgraph of G is isomorphic to H (we say "G contains a copy of H"). Thus Ca is a subgraph of K 5 (every complete graph with 5 vertices has 10 subgraphs isomorphic to Ca) but not of K2,a.

    Similarly, asking whether G "is" Cn means asking whether G is isomorphic to a cycle with n vertices.

    The structural properties of a graph are determined by its adjacency re-lation and hence are preserved by isomorphism. We can prove that G and ,H are not isomorphic by finding some structural property in which they dif-fer. If they have different number of edges, or different subgraphs, or different complements, etc., then they cannot be isomorphic.

    On the other hand, checking t:hat a few structural properties are the same does not imply that G ~ H. To prove that G ~ H, we must ptesent a bijection f: V(G) ~ V(H) that preserves the adjacency relation.

    1.1.30. Example. Isomorphic or not? Each graph below has six vertices and nine edges and is connected, but these graphs are not pairwise isomorphic.

    To prove that G1 ~ G2, we give names to the vertices, specify a bijection, and check that it preserves the adjacency relation. As labeled below, the bijec-tion that sends u, v, w, x, y, z to 1, 3, 5, 2, 4, 6, respectively, is an isomorphism froi:p. G1 to G2 The map sending u, v, w, x, y, z to 6, 4, 2, 1, 3, 5, respectively, is another isomorphism.

    Both G 1 and G2 are bipartite; they are drawings of Ka.a (as is G4). The graph Ga contains Ka, so its vertices cannot be partitioned into two independent sets. Thus Ga is not isomorphic to the others.

    Sometimes we can test isomorphism quickly using the complements. Sim-ple graphs G and H are isomorphic if and only if their complements are iso-morphic (Exercise 4). Here Gi. G2, G4 all consist of two disjoint 3-cycles and are not connected, but Ga is a 6-cycle and is connected.

    1.1.31. Example. The number of n-vertex graphs. When choosing two vertices from a set of size n, we can pick one and then the other but don't care about the order, so the number of ways is n(n -1)/2. (The notation for the number of ways

  • Section 1.1: What Is a Graph? 11

    to choose k elements from n elements is G), read "n choose k". These numbers are called binomial coefficients; see Appendix A for further background.)

    In a simple graph with a vertex set X of size n, each vertex pair may form an edge or may not. Making the choice for each pair specifies the graph, so the number of simple graphs with vertex set X is 2G).

    For example, there are 64 simple graphs on a fixed set of four vertices. These graphs form only 11 isomorphism classes. The classes appear below in complementary pairs; only P4 is isomorphic to its complement. Isomorphism classes have different sizes, so we cannot count the isomorphism classes of n-vertex simple graphs by dividing 2G> by the size of a class.

    ::~~X/1 IBl I2l IZ D D: N

    DECOMPOSITION AND SPECIAL GRAPHS The example P4 ~ P 4 suggests a family of graph problems.

    1.1.32. Definition. A graph is self-complementary if it is isomorphic to its complement. A decomposition of a graph is a list of subgraphs such that each edge appears in exactly one subgraph in the list.

    An n-vertex graph H is self-complementary if and only if Kn has a decom-position consisting of two copies of H.

    1.1.33. Example. We can decompose K5 into two 5-cycles, and thus the 5-cycle is self-complementary. Any n-vertex graph and its complement decompose Kn. Also Kl,n-1 and Kn-1.decompose Kn, even though one of these subgraphs omits a vertex. On the right below we show a decomposition of K4 using three copies of P3 Exercises 31-39 consider graph decompositions.

    1.1.34.* Example. The question of which complete graphs decompose into copies of K 3 is a fundamental question in the theory of combinatorial designs.

  • 12 Chapter 1: Fundamental Concepts

    On the left below we suggest such a decomposition for K1. Rotating the triangle through seven positions uses each edge exactly once.

    On the right we suggest a decomposition of K 6 into copies of P4 . Placing one vertex in the center groups the edges into three types: the outer 5-cycle, the inner (crossing) 5-cycle on those vertices, and the edges involving the central vertex. Each 4-vertex path in the decomposition uses one edge of each type; we rotate the picture to get the next path.

    We referred to a copy of K3 as a triangle. Short names for graphs that arise frequently in structural discussions can be convenient.

    1.1.35. Example. The Graph Menagerie. A catchy "name" for a graph usually comes from some drawing of the graph. We also use such a name for all other drawings, and hence it is best viewed as a name for the isomorphism class. Below we give names to several graphs with at most five vertices.

    Among these the most important are the triangle (K3 ) and the claw (Kl.3). We also sometimes discuss the paw (Ki.3 + e)and the kite (K4 - e); the others arise less frequently.

    The complements of the graphs in the first row are disconnected. The complement of the house is P5 , and the bull is self-complementary. Exercise 39 asks which of these graphs can be used to decompose K6.

    L triangle claw paw kite

    bowtie dart

    In order to decompose H into copies of G, the number of edges of G must divide the number of edges of H. This is not sufficient, since K5 does not decompose into two copies of the kite.

  • Section 1.1: What Is a Graph? 13

    1.1.36. Definition. The Petersen graph is the simple graph whose vertices are the 2-element subsets of a 5-element set and whose edges are the pairs of disjoint 2-element subsets.

    12

    We have drawn the Petersen graph in three ways above. It is a useful example so often that an entire book was devoted to it (Holton-Sheehan f 1993]). Its properties follow from the statement of its adjacency relation that we have used as the definition.

    1.1.37. Example. Structure of the Petersen graph. Using [5] = {l, 2, 3, 4, 5) as our 5-element set, we write the pair {a, b) as ab or ba. Since 12 and 34 are disjoint, they are adjacent vertices when we form the graph, but 12 and 23 are not. For each 2-set ab, there are three ways to pick a 2-set from the remaining three elements of [5], so every ve:rtex has degree 3.

    The Petersen graph consists of two disjoint 5-cycles plus edges that pair up vertices on the two 5-cycles. The disjointness defir..ition tells us that 12, 34, 51, 23, 45 in order are the vertices of a 5-cycle, and similarly this holds for the remaining vertices 13, 52, 41, 35, 24. Also 13 is adjacent to 45, and 52 is adjacent to 34, and so on, as shown on the left above.

    We use this name even when we do not specify the vertex labeling; in essence, we use "Petersen graph" to name an isomorphism class. To show that the graphs above are pair;1ise isomorphic, it suffices to name the vertices of each using the 2-element subsets of [5] so that in each case the adjacency rela-tion is disjointness (Exercise 24). I

    1.1.38. Proposition. If two vertices are nonadjacent in the Petersen graph, then they have exactly one common neighbor.

    Proof: Nonadjacent vertices are 2-sets sharing one element; their union S has size 3. A vertex adjacent to both is a 2-set disjoint from both. Since the 2-sets are chosen from {1, 2, 3, 4, 5}, there is exactly one 2-set disjoint from S. I

    1.1.39. Definition. The girth of a graph with a cycle is the length of its short-est cycle. A graph with no cycle has infinite girth.

    i.1.40. Corollary. The Petersen graph has girth 5. Proof: The graph is simple, so it has no 1-cycle or 2-cycle. A 3-cycle would require three pairwise-disjoint 2-sets, which can't occur among 5 elements.

  • 14 Chapter 1: Fundamental Concepts

    A 4-cycle in the absence of 3-cycles would require nonadjacent vertices with two common neighbors, which Proposition 1.1.38 forbids. Finally, the vertices 12, 34, 51, 23, 45 yield a 5-cycle, so the girth is 5.

    The Petersen graph is highly symmetric. Every permutation of {l, 2, 3, 4, 5} generates a permutation of the 2-subsets that preserves the disjointness rela-tion. Th 2, then Pn is not vertex-transitive, but every cycle is vertex-transitive. The Petersen graph is vertex-transitive.

    We can prove a statement for every vertex in a vertex-transitive graph by proving it for one vertex. Vertex-transitivity guarantees that the graph "looks the same" from each vertex.

    EXERCISES Solutions to probk.ns generally require clear explanations written in sentences.

    The designations on problems have the following meanings: "(-)" = easier or shorter than most, "( + )" = harder or longer than most, ~'(!)"=particularly useful or instructive, "(*)"=involves concepts marked optional in the text.

    The exercise sections begin with easier problems to check understanding, ending with a line of dots. The remaining problems roughly follow the order of material in the text. 1.1.1. (-) Determine which complete bipartite graphs are complete graphs. 1.1.2. ( - ) Write down all possible adjacency matrices and incidence matrices for a 3-vertex path. Also write down an adjacency matrix for a path with six vertices and for a cycle with six vertices.

  • Section 1.1: What Is a Graph? 15

    1.1.3. ( - ) Using rectangular blocks whose entries are all equal, write down an adjacency matrix for Km.11 1.1.4. (-) From the definition of isomorphism, prove that G ~ H if and only ifG ~Ii. 1.1.5. (-) Prove or disprove: If every vertex of a simple graph G has degree 2, then G is a cycle.

    1.1.6. (-) Determine whether the graph below decomposes into copies of P4

    1.1. 7. (-) Prove that a graph with more than six vertices of odd degree cannot be decomposed into three paths.

    1.1.8. (-) Prove that the 8-vertex graph on the left below decomposes into copies of K 1.3 and also into copies of P4

    1.1.9. (-) Prove that the graph on the right above is isomorphic to the complement of the graph on the left.

    1.1.10. (-) Prove or disprove: The complement of a simple disconnected graph must be connected.

    1.1.11. Determine the maximum size of a clique and the maximum size of an indepen-dent set in the graph below.

    1.1.12. Determine whether the Petersen graph is bipartite, and find the size of its largest independent set.

    1.1.13. Let G be the graph whose vertex set is the set of k-tuples with coordinates in {O, l}, with x adjacent toy when x and y differ in exactly one position. Determine whether G is bipartite.

    1.1.14. (!) Prove that removing opposite comer squares from an 8-by-8 checkerboard leaves a subboard that cannot be partitioned into 1-by-2 and 2-by-1 rectangles. Using the same argument, make a general statement about all bipartite graphs.

  • 16 Chapter 1: Fundamental Concepts

    1.1.15. Consider the following four families of graphs: A = {paths}, B = {cycles}, C = {complete graphs), D = {bipartite graphs). For each pair of these families, determine all isomorphism classes of graphs that belong to both families. 1.1.16. Determine whether the graphs below are isomorphic.

    1.1.17. Determine the number of isomorphism classes of simple 7-vertex graphs in which every vertex has degree 4. 1.1.18. Determine which pairs of graphs below are isomorphic.

    d~c :~: :: a~b rphic. (The graph on the left appears on the cover of Wilson-Watkins [1990].)

  • Section 1.1: What Is a Graph? 17

    1.1.22. (!) Determine which pairs of graphs below are isomorphic, presenting the proof by testing the smallest possible number of pairs.

    1.1.23. In each class below, determine the smallest n such that there exist nonisomor-phic n-vertex graphs having the same list of vertex degrees.

    (a) all graphs, (b) loopless graphs, (c) simple graphs. (Hint: Since each class contains the next, the answers form a nondecreasing triple. For part (c), use the list of isomorphism classes in Example 1.1.31.) 1.1.24. (!) Prove that the graphs below are all drawings of the Petersen graph (Definition 1.1.36). (Hint: Use the disjointness definition of adjacency.)

    1.1.25. (!)Prove that the Petersen graph has no cycle oflength 7. 1.1.26. (!)Let G be a graph with girth 4 in which every vertex has degree k. Prove that G has at least 2k vertices. Determine all such graphs with exactly 2k vertices.

    1.1.27. (!) Let G be a graph with girth 5. Prove that if every vertex of G has degree at least k, then G has at least k2 + 1 vertices. Fork = 2 and k = 3, find one such graph with exactly k2 + 1 vertices.

    1.1.28. ( +) The Odd Graph Ok. The vertices of the graph Ok are the k-element subsets of {l, 2, ... , 2k + l}. Two vertices are adjacent if and only if they are disjoint sets. Thus 0 2 is the Petersen graph. Prove that the girth of Ok is 6 if k :::: 3. 1.1.29. Prove that every set of six people contains (at least) three mutual acquaintances or three mutual strangers.

    1.1.30. Let G be a simple graph with adjacency matrix A and incidence matrix M. Prove that the degree of v; is the ith diagonal entry in A2 and in M MT. What do the entries in position (i, j) of A2 and M MT say about G? 1.1.31. (!) Prove that a self-complementary graph with n vertices exists if and only if n or n - 1 is divisible by 4. (Hint: When n is divisible by 4, generalize the structure of P4 by splitting the vertices into four groups. For n = 1 mod 4, add one vertex to the graph constructed for n - 1.) 1.1.32. Determine which bicliques decompose into two isomorphic subgraphs.

    1.1.33. For n = 5, n = 7, and n = 9, decompose Kn into copies of Cn.

  • 18 Chapter 1: Fundamental Concepts

    1.1.34. (!) Decompose the Petersen graph into three connected subgraphs that are pair-wise isomorphic. Also decompose it into copies of P4 1.1.35. (!) Prove that Kn decomposes into three pairwise-isomorphic subgraphs if and only if n + 1 is not divisible by 3. (Hint: For the case where n is divisible by 3, split the vertices into three sets of equal size.) 1.1.36. Prove that if Kn decomposes into triangles, then n - 1 or n - 3 is divisible by 6. 1.1.37. Let G be a graph in which every vertex has degree 3. Prove that G has no decomposition into paths that each have at least 5 vertices. 1.1.38. (!) Let G be a simple graph in which every vertex has degree 3. Prove that G decomposes into claws if and only if G is bipartite. 1.1.39. ( +) Determine which of the graphs in Example 1.1.35 can be used to form a decomposition of K 6 into pairwise-isomorphic subgraphs. (Hint: Each graph that is not excluded by some divisibility condition works.) 1.1.40. (*)Count the automorphisms of Pn, Cn, and Kn. 1.1.41. ( *) Construct a simple graph with six vertices that has only one automorphism. Construct a simple graph that has exactly three automorphisms. (Hint: Think of a rotating triangle with appendages to prevent flips.) 1.1.42. ( *) Verify that the set of automorphisms of G has the following properties:

    a) The composition of two automorphisms is an automorphism. b) The identity permutation is an automorphism. c) The inverse of an automorphism is also an automorphism. d) Composition of automorphisms satisfies the associative property.

    (Comment: Thus the set of automorphisms satisfies the defining properties for a group.) 1.1.43. ( *) Automorphisms of the Petersen graph. Consider the Petersen graph as de-fined by disjointness of 2-sets in {l, 2, 3, 4, 5}. Prove that every automorphism maps the 5-cycle with vertices 12, 34, 51, 23, 45 to a 5-cycle with vertices ab, cd, ea, be, de determined by a permutation of {l, 2, 3, 4, 5} taking elements 1,2,3,4,5 to a, b, c, d, e, respectively. (Comment: This implies that there are only 120 automorphisms.) 1.1.44. (*)The Petersen graph has even more symmetry than vertex-transitivity. Let P = (u0 , ui. u2 , u3) and Q = (v0 , v1 , v2 , v3 ) be paths with three edges in the Petersen graph. Prove that there is exactly one automorphism of the Petersen graph that maps u; into v; for i = 0, 1, 2, 3. (Hint: Use the disjointness description.) 1.1.45. (*) Construct a graph with 12 vertices in which every vertex has degree 3 and the only automorphism is the identity. 1.1.46. (*)Edge-transitivity. A graph G is edge-transitive iffor all e, f E E(G) there is an automorphism of G that maps the endpoints of e to the endpoints off (in either or-der). Prove that the graphs of Exercise 1.1.21 are vertex-transitive and edge-transitive. (Comment: Complete graphs, bicliques, and the Petersen graph are edge-transitive.) 1.1.47. (*)Edge-transitive versus vertex-transitive.

    a} Let G be obtained from Kn with n ::=:: 4 by replacing each edge of Kn with a path of two edges through a new vertex of degree 2. Prove that G is edge-transitive but not vertex-transitive.

    b) Suppose that G is edge-transitive but not vertex-transitive and has no vertices of degree 0. Prove that G is bipartite.

    c) Prove that the graph in Exercise 1.1.6 is vertex-transitive but not edge-transitive.

  • Section 1.2: Paths, Cycles, and Trails 19

    1.2. Paths, Cycles, and Trails

    In this section we return to the Konigsberg Bridge Problem, determining when it is possible to traverse all the edges of a graph. We also we develop useful properties of connection, paths, and cycles.

    Before embarking on this, we review an important technique of proof Many statements in graph theory can be proved using the principle of induction. Readers unfamiliar with induction should read the material on this proof tech-nique in Appendix A. Here we describe the form of induction that we will use most frequently, in order to familiarize the reader with a template for proof.

    1.2.1. Theorem. (Strong Principle oflnduction). Let P(n) be a statement with an integer parameter n. If the following two conditions hold, then P(n) is true for each positive integer n. 1) P(l) is true. 2) For all n > 1, "P(k) is true for 1 ~ k < n" implies "P(n) is true".

    Proof: We ASSUME the Well Ordering Property for the positive integers: every nonempty set of positive integers has a least element. Given this, suppose that P(n) fails for some n. By the Well Ordering Property, there is a least n such that P(n) fails. Statement (1) ensures that this value cannot be 1. Statement (2) ensures that this value cannot be greater than 1. The contradiction implies that P(n) holds for every positive integer n.

    In order to apply induction, we verify (1) and (2) for our sequence of state-ments. Verifying ( 1) is the basis step of the proof; verifying (2) is the induction step. The statement "P(k) is true for all k < n" is the induction hypothesis, because it is the hypothesis of the implication proved in the induction step. The variable that indexes the sequence of statements is the induction parameter.

    The induction parameter may be any integer function of the instances of our problem, such as the number of vertices or edges in a graph. We say that we are using "induction on n~ when the induction pa:t;'ameter is n.

    There are many ways to phrase inductive proofs. We can start at 0 to prove a statement for nonnegative integers. When our proof of P(n) in the induction step makes use only of P (n - 1) from the induction hypothesis, the technique is called "ordinary" induction; making use of all previous statements is "strong" induction. We seldom distinguish between strong induction and ordinary induction; they are equivalent (see Appendix A).

    Most students first learn ordinary induction in the following phrasing: 1) verify that P(n) is true when n = 1, and 2) prove that if P(n) is true when n is k, then P(n) is also true when n is k + 1. Proving P(k + 1) from P(k) fork ::=: 1 is equivalent to proving P(n) from P(n - 1) for n > 1.

  • 20 Chapter 1: Fundamental Concepts

    When we focus on proving the statement for the parameter value n in the induction step, we need not decide at the outset whether we are using strong induction or ordinary induction. The language is also simpler, since we avoid introducing a new name for the parameter. In Section 1.3 we will explain why this phrasing is also less prone to error.

    CONNECTION IN GRAPHS

    As defined in Definition 1.1.15, paths and cycles are graphs; a path in a graph G is a subgraph of G that is a path (similarly for cycles). We introduce further definitions to model other movements in graphs. A tourist wandering in a city (or a Konigsberg pedestrian) may want to allow vertex repetitions but avoid edge repetitions. A mail carrier delivers mail to houses on both sides of the street and hence traverses each edge twice.

    1.2.2. Definition. A walk is a list vo, ei, vi, ... , ek> vk of vertices and edges such that, for 1 :=: i s k, the edge ei has endpoints Vi-1 and vi. A trail is a walk with no repeated edge. Au, v-walk or u, v-trail has first vertex u and last vertex v; these are its endpoints. Au, v-path is a path whose vertices of degree 1 (its endpoints) are u and v; the others are internal vertices.

    The length of a walk, trail, path, or cycle is its number of edges. A walk or trail is closed if its endpoints are the same.

    1.2.3. Example. In theKonigsberggraph(Example 1.1.1), thelistx, e2 , w, e5 , y, e6, x, e1, w, e2, xis a closed walk oflength 5; it repeats edge e2 and hence is not a trail. Deleting the last edge and vertex yields a trail of length 4; it repeats vertices but not edges. The subgraph consisting of edges e1 , e5 , e6 and vertices x, w, y is a cycle oflength 3; deleting one of its edges yields a path. Two edges with the same endpoints (such as e1 and e2 ) form a cycle of length 2. A loop is a cycle oflength 1.

    The reason for listing the edges in a walk is to distinguish among multi-ple edges when a graph is not simple. In a simple graph, a walk (or trail) is completely specified by its ordered list of vertices. We usually name a path, cy-cle, trail, or walk in a simple graph by listing only its vertices in order, even though it consists of both vertices and edges. When discussing a cycle, we can start at any vertex and do not repeat the first vertex at the end. We can use parentheses to clarify that this is a cycle and not a path.

    1.2.4. Example. We illustrate the simplified notation in a simple graph. In the graph below, a, x, a, x, u, y, c, d, y, v, x, b, a specifies a closed walk oflength 12. Omitting the first two steps yields a closed trail.

    The graph has five cycles: (a, b, x), (c, y, d), (u, x, y), (x, y, v), (u, x, v, y). The u, v-trail u, y, c, d, y, x, v contains the edges of the u, v-path u, y, x, v, but not of the u, v-path u, y, v.

  • Section 1.2: Paths, Cycles, and Trails 21

    a u c

    b v d

    Suppose we follow a path from u to v in a graph and then follow a path from v tow. The result need not beau, w-path, because the u, v-path and v, w-path may have a common internal vertex. Nevertheless, the list of vertices and edges that we visit does form au, w-walk. In the illustration below, the u, w-walk contains au, w-path. Saying that a walk W contains a path P means that the vertices and edges of P occur as a sublist of the vertices and edges of W, in order but not necessarily consecutive.

    1.2.5. Lemma. Every u, v-walk contains au, v-path. Proof: We prove the statement by induction on the length l of au, v-walk W.

    Basis step: l = 0. Having no edge, W consists of a single vertex (u = v). This vertex is a u, v-path oflength 0.

    Induction step: l :::: 1. We suppose that the claim holds for walks oflength less than l. If W has no repeated vertex, then its vertices and edges form a u, v-path. If W has a repeated vertex w, then deleting the edges and vertices between appearances of w (leaving one copy of w) yields a shorter u, v-walk W' contained in W. By the induction hypothesis, W' contains a u, v-path P, and this path P is contained in W.

    uo .... o .. O ...... ~p p:

    v

    Exercise 13b develops a shorter proof. We apply the lemma to properties of connection.

    1.2.6. Definition. A graph G is connected if it has a u, v-path whenever u, v E V(G) (otherwise, G is disconnected). If G has au, v-path, then u is connected to v in G. The connection relation on V ( G) consists of the ordered pairs (u, v) such that u is connected to v.

  • 22 Chapter 1: Fundamental Concepts

    "Connected" is an adjective we apply only to graphs and to pairs of vertices (we never say "vis disconnected" when vis a vertex). The phrase "u is connected to v" is convenient when writing proofs, but in adopting it we must clarify the distinction between connection and adjacency:

    G has au, v-path uv E E(G) u and v are connected u is connected to v

    u and v are adjacent u is joined to v u is adjacent to v

    1.2.7. Remark. By Lemma 1.2.5, we can prove that a graph is connected by showing that from each vertex there is a walk to one particular vertex.

    By Lemma 1.2.5, the connection relation is transitive: if G has a u, v-path and av, w-path, then G has au, w-path. It is also reflexive (paths oflength 0) and symmetric (paths are reversible), so it is an equivalence relation.

    Our next definition leads us to the equivalence classes of the connection relation. A maximal connected subgraph of G is a subgraph that is connected and is not contained in any other connected subgraph of G.

    1.2.8. Definition. The components of a graph G are its maximal connected subgraphs. A component (or graph) is trivial if it has no edges; otherwise it is nontrivial. An isolated vertex is a vertex of degree 0.

    The equivalence classes of the connection relation on V ( G) are the vertex sets of the components of G. An isolated vertex forms a trivial component, consisting of one vertex and no edge.

    1.2.9. Example. The graph below has four components, one being an isolated vertex. The vertex sets of the components are {p}, {q, r}, {s, t, u, v, w}, and {x, y, z}; these are the equivalence classes of the connection relation.

    r s u v w

    \W: y z

    r q t p x

    1.2.10. Remark. Components are pairwise disjoint; no two share a vertex. Adding an edge with endpoints in distinct components combines them into one component. Thus adding an edge decreases the number of components by 0 or 1, and deleting an edge increases the number of components by 0 or 1.

    1.2.11. Proposition. Every graph with n vertices and k edges has at least n -k components.

    Proof: Ann-vertex graph with no edges has n components .. By Remark 1.2.10, each edge added reduces this by at most 1; so when k edges have been added the number of components is still at least n - k.

  • Section 1.2: Paths, Cycles, and Trails 23

    Deleting a vertex or an edge can increase the number of components. Al-though deleting an edge can only increase the number of components by 1, deleting a vertex can increase it by many (consider the biclique Ki.in). When we obtain a subgraph by deleting a vertex, it must be a graph, so deleting the vertex also deletes all edges incident to it.

    1.2.12. Definition. A cut-edge or cut-vertex of a graph is an edge or vertex whose deletion increases the number of components. We write G - e or G - M for the subgraph of G obtained by deleting an edge e or set of edges M. We write G - v or G - S for the subgraph obtained by deleting a vertex v or set of vertices S. An induced subgraph is a subgraph obtained by deleting a set of vertices. We write G[T] for G - T, where T = V(G) - T; this is the subgraph of G induced by T.

    When T ~ V(G), the induced subgraph G[T] consists of T and all edges whose endpoints are contained in T. The full graph is itself an induced sub-graph, as are individual vertices. A set S of vertices is an independent set if and only if the subgraph induced by it has no edges.

    1.2.13. Example. The graph of Example 1.2.9 has cut-vertices v and y. Its cut-edges are qr, vw, xy, and yz. (When we delete an edge, its endpoints remain.)

    This graph has C4 and P5 as subgraphs but not as induced subgraphs. The subgraph induced by {s, t, u, v} is a kite; the 4-vertex paths on these vertices are not induced subgraphs. The graph P4 does occur as an induced subgraph; it is the subgraph induced by {s, t, v, w} (also by {s, u, v, w}).

    Next we characterize cut-edges in terms of cycles.

    1.2.14. Theorem. An edge is a cut-edge if and only if it belongs to no cycle. Proof: Let e be an edge in a graph G (with endpoints x, y ), and let H be the com-ponent containing e. Since deletion of e affects no other component, it suffices to prove that H - e is connected if and only if e belongs to a cycle.

    First suppose that H - e is connected. This implies that H - e contains an x, y-path, and this path completes a cycle withe.

    Now suppose that e lies in a cycle C. Choose u, v E V(H). Since H is connected, H has au, v-path P. If P does not contain e, than P exists in H - e. If P contains e, suppose by symmetry that x is between u and y on P. Since H - e contains au, x-path along P, an x, y-path along C, and a y, v-path along P, the transitivity of the connection relation implies that H - e has au. v-path. We did this for all u, v E V(H), so H - e is connected.

    c

    ~ Ue 1(-~.~~V

    ................. p ................ .

  • 24 Chapter 1: Fundamental Concepts

    BIPARTITE GRAPHS Our next goal is to characterize bipartite graphs using cycles. Characteri-

    zations are equivalence statements, like Theorem 1.2.14. When two conditions are equivalent, checking one also yields the other for free.

    Characterizing a class G by a condition P means proving the equivalence "G E G if and only if G satisfies P". In other words, Pis both a necessary and a sufficient condition for membership in G.

    Necessity Sufficiency G E G only if G satisfies P G E G if G satisfies P G E G => G satisfies P G satisfies P => G E G

    Recall that a loop is a cycle of length 1; also two distinct edges with the same endpoints form a cycle of length 2. A walk is odd or even as its length is odd or even. As in Lemma 1.2.5, a closed walk contains a cycle C if the vertices and edges of C occur as a sublist of W, in cyclic order but not necessarily consecutive. We can think of a closed walk or a cycle as starting at any vertex; the next lemma requires this viewpoint.

    1.2.15. Lemma. Every closed odd walk contains an odd cycle. Proof: We use induction on the length l of a closed odd walk W.

    Basis step: l = 1. A closed walk oflength 1 traverses a cycle oflength 1. Induction step: l > 1. Assume the claim for closed odd walks shorter than

    W. If W has no repeated vertex (other than first = last), then W itself forms a cycle of odd length. If vertex v is repeated in W, then we view W as starting at v and break W into two v, v-walks. Since W has odd length, one of these is odd and the other is even. The odd one is shorter than W. By the induction hypothesis, it contains an odd cycle, and this cycle appears in order in W.

    even

    1.2.16. Remark. A closed even walk need not contain a cycle; it may simply repeat. Nevertheless, if an edge e appears exactly once. in a closed walk W, then W does contain a cycle through e. Let x, y be the endpoints of e. Deleting e from W leaves an x, y-walk that avoids e. By Lemma 1.2.5, this walk contains an x, y-path, and this path completes a cycle withe. (See Exercises 15-16.)

    Lemma 1.2.15 will help us characterize bipartite graphs.

    1.2.17. Definition. A bipartition of G is a specification of two disjoint inde-pendent sets in G whose union is V ( G). The statement "Let G be a bipartite graph with bipartition X, Y" specifies one such partition. An X, Y-bigraph is a