Adjacent: Two distinct vertices u, v are adjacent if there is an edge with ends u, v. In this case we let uv denote such an edge.

Similar documents
Let G = (V, E) be a graph. If u, v V, then u is adjacent to v if {u, v} E. We also use the notation u v to denote that u is adjacent to v.

Assignment 4 Solutions of graph problems

Graph Theory S 1 I 2 I 1 S 2 I 1 I 2

CHAPTER 2. Graphs. 1. Introduction to Graphs and Graph Isomorphism

Math 776 Graph Theory Lecture Note 1 Basic concepts

Theorem 3.1 (Berge) A matching M in G is maximum if and only if there is no M- augmenting path.

v V Question: How many edges are there in a graph with 10 vertices each of degree 6?

Fundamental Properties of Graphs

MATH 350 GRAPH THEORY & COMBINATORICS. Contents

γ(ɛ) (a, b) (a, d) (d, a) (a, b) (c, d) (d, d) (e, e) (e, a) (e, e) (a) Draw a picture of G.

MATH20902: Discrete Maths, Solutions to Problem Set 1. These solutions, as well as the corresponding problems, are available at

Lecture 5: Graphs. Rajat Mittal. IIT Kanpur

DO NOT RE-DISTRIBUTE THIS SOLUTION FILE

GRAPHS, GRAPH MODELS, GRAPH TERMINOLOGY, AND SPECIAL TYPES OF GRAPHS

Basics of Graph Theory

Characterizing Graphs (3) Characterizing Graphs (1) Characterizing Graphs (2) Characterizing Graphs (4)

INTRODUCTION TO GRAPH THEORY. 1. Definitions

Definition For vertices u, v V (G), the distance from u to v, denoted d(u, v), in G is the length of a shortest u, v-path. 1

Introduction to Graph Theory

Two Characterizations of Hypercubes

Ma/CS 6b Class 5: Graph Connectivity

HW Graph Theory SOLUTIONS (hbovik)

DO NOT RE-DISTRIBUTE THIS SOLUTION FILE

Introduction III. Graphs. Motivations I. Introduction IV

Some Upper Bounds for Signed Star Domination Number of Graphs. S. Akbari, A. Norouzi-Fard, A. Rezaei, R. Rotabi, S. Sabour.

Math 170- Graph Theory Notes

Chapter 3: Paths and Cycles

Planar graphs. Chapter 8

MATH 363 Final Wednesday, April 28. Final exam. You may use lemmas and theorems that were proven in class and on assignments unless stated otherwise.

Varying Applications (examples)

Combinatorics Summary Sheet for Exam 1 Material 2019

Math 778S Spectral Graph Theory Handout #2: Basic graph theory

A graph is finite if its vertex set and edge set are finite. We call a graph with just one vertex trivial and all other graphs nontrivial.

8 Colouring Planar Graphs

Lecture 19 Thursday, March 29. Examples of isomorphic, and non-isomorphic graphs will be given in class.

Section 3.1: Nonseparable Graphs Cut vertex of a connected graph G: A vertex x G such that G x is not connected. Theorem 3.1, p. 57: Every connected

Problem Set 2 Solutions

Chapter 11: Graphs and Trees. March 23, 2008

MC 302 GRAPH THEORY 10/1/13 Solutions to HW #2 50 points + 6 XC points

Exercise set 2 Solutions

PACKING DIGRAPHS WITH DIRECTED CLOSED TRAILS

8.2 Paths and Cycles

Module 11. Directed Graphs. Contents

CPCS Discrete Structures 1

Graph Theory. Part of Texas Counties.

Math.3336: Discrete Mathematics. Chapter 10 Graph Theory

Number Theory and Graph Theory

Assignments are handed in on Tuesdays in even weeks. Deadlines are:

Discharging and reducible configurations

Graph Theory Day Four

Section 8.2 Graph Terminology. Undirected Graphs. Definition: Two vertices u, v in V are adjacent or neighbors if there is an edge e between u and v.

Graph theory. Po-Shen Loh. June We begin by collecting some basic facts which can be proved via bare-hands techniques.

Matching Theory. Figure 1: Is this graph bipartite?

Math 443/543 Graph Theory Notes 11: Graph minors and Kuratowski s Theorem

WUCT121. Discrete Mathematics. Graphs

Matching and Planarity

Part II. Graph Theory. Year

Artificial Intelligence

Modules. 6 Hamilton Graphs (4-8 lectures) Introduction Necessary conditions and sufficient conditions Exercises...

List of Theorems. Mat 416, Introduction to Graph Theory. Theorem 1 The numbers R(p, q) exist and for p, q 2,

Basic Combinatorics. Math 40210, Section 01 Fall Homework 4 Solutions

ECS 20 Lecture 17b = Discussion D8 Fall Nov 2013 Phil Rogaway

Bipartite Roots of Graphs

Number Theory and Graph Theory

K 4 C 5. Figure 4.5: Some well known family of graphs

by conservation of flow, hence the cancelation. Similarly, we have

IMO Training 2008: Graph Theory

1 Matchings in Graphs

Pebble Sets in Convex Polygons

Ma/CS 6b Class 4: Matchings in General Graphs

Matching Algorithms. Proof. If a bipartite graph has a perfect matching, then it is easy to see that the right hand side is a necessary condition.

Elements of Graph Theory

1 Digraphs. Definition 1

Majority and Friendship Paradoxes

CS473-Algorithms I. Lecture 13-A. Graphs. Cevdet Aykanat - Bilkent University Computer Engineering Department

How can we lay cable at minimum cost to make every telephone reachable from every other? What is the fastest route between two given cities?

Chapter 2 Graphs. 2.1 Definition of Graphs

V10 Metabolic networks - Graph connectivity

Graphs and Network Flows IE411. Lecture 21. Dr. Ted Ralphs

{ 1} Definitions. 10. Extremal graph theory. Problem definition Paths and cycles Complete subgraphs

Lecture 20 : Trees DRAFT

BIL694-Lecture 1: Introduction to Graphs

CPS 102: Discrete Mathematics. Quiz 3 Date: Wednesday November 30, Instructor: Bruce Maggs NAME: Prob # Score. Total 60

11.4 Bipartite Multigraphs

The Structure of Bull-Free Perfect Graphs

Definition 1.1. A matching M in a graph G is called maximal if there is no matching M in G so that M M.

Spanning Eulerian Subgraphs in claw-free graphs

An Introduction to Graph Theory

Discrete mathematics II. - Graphs

1 Some Solution of Homework

Graph Theory: Introduction

CLAW-FREE 3-CONNECTED P 11 -FREE GRAPHS ARE HAMILTONIAN

Graphs. Pseudograph: multiple edges and loops allowed

Lecture 4: Walks, Trails, Paths and Connectivity

Rigidity, connectivity and graph decompositions

9.5 Equivalence Relations

On the Relationships between Zero Forcing Numbers and Certain Graph Coverings

Line Graphs and Circulants

Math 443/543 Graph Theory Notes

Graphs (MTAT , 6 EAP) Lectures: Mon 14-16, hall 404 Exercises: Wed 14-16, hall 402

Transcription:

1 Graph Basics What is a graph? Graph: a graph G consists of a set of vertices, denoted V (G), a set of edges, denoted E(G), and a relation called incidence so that each edge is incident with either one or two vertices - its ends. We assume that V (G) and E(G) are finite. Adjacent: Two distinct vertices u, v are adjacent if there is an edge with ends u, v. In this case we let uv denote such an edge. Loops, Parallel Edges, and Simple Graphs: An edge with only one endpoint is called a loop. Two (or more) distinct edges with the same ends are called parallel. A graph is simple if it has no loops or parallel edges. Drawing: It is helpful to represent graphs by drawing them so that each vertex corresponds to a distinct point, and each edge with ends u, v is realized as a curve which has endpoints corresponding to u and v (a loop with end u is realized as a curve with both endpoints corresponding to u). Below is a drawing of a famous graph. Figure 1: the Petersen Graph

2 Standard Graphs Null graph Complete graph K n Path P n Cycle C n the (unique) graph with no vertices or edges. a simple graph on n vertices every two of which are adjacent. a graph whose vertex set may be numbered {v 1,..., v n } and edges may be numbered {e 1,..., e n 1 } so that every e i has endpoints v i and v i+1. The ends of the path are v 1, v n. a graph whose vertex set may be numbered {v 1,..., v n } and edges may be numbered {e 1,..., e n } so that every e i has endpoints v i and v i+1 (modulo n) Subgraph: If G is a graph and H is another graph with V (H) V (G) and E(H) E(G) with the same incidence relation on these sets, we say that H is a subgraph of G and we write H G. If H 1, H 2 G we let H 1 H 2 denote the subgraph of G with vertices V (H 1 ) V (H 2 ) and edges E(H 1 ) E(H 2 ). We define H 1 H 2 analogously. A path (cycle) of G is a subgraph of G which is a path (cycle). Degree: The degree of a vertex v, denoted deg(v) is the number of edges incident with v where loops are counted twice. Theorem 1.1 For every graph G deg(v) = 2 E(G) v V (G) Proof: Each edge contributes exactly 2 to the sum of the degrees. Corollary 1.2 Every graph has an even number of vertices of odd degree. Isomorphic: We say that two graphs G and H are isomorphic if there exist bijections between V (G) and V (H) and between E(G) and E(H) which preserve the incidence relation. Informally, we may think of G and H as isomorphic if one can be turned into the other by renaming vertices and edges. Connectivity Walk: A walk W in a graph G is a sequence v 0, e 1, v 1,..., e n v n so that v 0,..., v n V (G), e 1,..., e n E(G), and every e i has ends v i 1 and v i. We say that W is a walk from v 0 to v n

3 with length n. If v 0 = v n we say the W is closed, and if v 0,..., v n are distinct, then (abusing notation) we call this walk a path. Connected: A graph G is connected if for every u, v V (G) there is a walk from u to v. Proposition 1.3 If there is a walk from u to v, then there is a path from u to v. Proof: Choose a walk W from u to v, say u = v 0, e 1, v 1,..., e n, v n = v of minimum length. Then v 0, v 1,..., v n are distinct, so W is a path. Proposition 1.4 If G is not connected, there is a partition {X, Y } of V (G) so that no edge has an end in X and an end in Y. Proof: Choose u and v so that there is no walk from u to v. Now, let X V (G) be the set of all vertices w so that there exists a walk from u to w and let Y = V (G) \ X. Then u X and v Y so X, Y. Furthermore, there cannot be an edge with an end in X and an end in Y (why?). Proposition 1.5 If H 1, H 2 G are connected and H 1 H 2, then H 1 H 2 is connected. Proof: Let u, v V (H 1 H 2 ) and choose p V (H 1 ) V (H 2 ). Now, there exists a walk W 1 from u to p in H 1 H 2 (in H 1 if u V (H 1 ) and otherwise in H 2 ). Similarly, there is a walk W 2 from p to v. By concatenating W 1 and W 2, we obtain a walk from u to v. Since u, v were arbitrary vertices, it follows that G is connected. Component: A component of G is a maximal nonempty connected subgraph of G. We let comp(g) denote the number of components of G. Theorem 1.6 Every vertex is in a unique component of G. Proof: Every vertex v is in a connected subgraph (consisting of only that vertex with no edges), so v must be contained in at least one component. However, by the previous proposition, no two components can share a vertex. It follows that every vertex is in exactly one, as required. Cut-edge: An edge e is called a cut-edge if there is no cycle containing e.

4 Theorem 1.7 Let G be a graph, let e E(G) be an edge with ends u, v and let G be the graph obtained from G by deleting e. Then one of the following holds: 1. e is a cut-edge of G and u, v are in different components of G. 2. e is not a cut-edge of G and u, v are in the same component of G. Further, comp(g ) = comp(g) + 1 in the first case and comp(g ) = comp(g) in the second. Proof: To see that 1 or 2 holds, observe that e is in a cycle of G there is a path in G from u to v u and v are in the same component of G. To see how comp(g) and comp(g ) are related, let H 1,..., H m be the components of G and assume that u V (H i ) and v V (H j ). If i j, then H i H j together with the edge e is a component of G and comp(g ) = comp(g) + 1. If i = j, the vertex set of every component of G is also the vertex set of a component of G, so we have comp(g ) = comp(g). Bipartite, Eulerian, and Hamiltonian Bipartite: A bipartition of a graph G is a pair (A, B) of disjoint subsets of V (G) with A B = V (G) so that every edge has one end in A and one end in B. We say that G is bipartite if it has a bipartition. Complete Bipartite: The complete bipartite graph K m,n is a simple bipartite graph with bipartition (A, B) where A = m, B = n, and every vertex in A is adjacent to every vertex in B. Theorem 1.8 For every graph G, the following are equivalent (the length of a cycle is its number of edges). (i) (ii) (iii) G is bipartite G has no cycle of odd length G has no closed walk of odd length

5 Proof: First we show that (ii) and (iii) are equivalent. If G has a cycle of odd size, then it has a closed walk of odd length, so (ii) implies (iii) On the other hand, if G has a closed walk of odd length, then choose such a walk v 0, e 1,..., e n, v n of minimum length. We claim that {v 0,..., v n } and {e 1,..., e n } form a cycle of odd length - or equivalently v 1,..., v n are distinct. Suppose (for a contradiction) that v i = v j for some 1 i < j n. If j i is odd, then v i, e i,..., v j is a shorter closed walk of odd length - a contradiction. If j i is even, then v 0, e 1, v 1,..., v i, v j+1,..., v n is a shorter closed walk of odd length - again contradicting our assumption. Thus (iii) implies (ii). It is immediate that (i) implies (iii), so to complete the proof, it suffices to show that (iii) implies (i) To do this, let G be a graph which satisfies (iii), and assume (without loss) that G is connected. Now choose a vertex u V (G), let A V (G) (B V (G)) be the set of all vertices v so that there is a path of odd length (even length) from u to v. Suppose (for a contradiction) that there exists a vertex w A B. Then there is a walk W 1 from u to w of odd length, and a walk W 2 from u to w of even length. By concatenating W 1 with the reverse of W 2 we obtain a closed walk of odd length - a contradiction. It follows that A B =. Since G is connected, we have A B = V (G). Now, (A, B) is a bipartition of G, so G satisfies (i) - as required. Deletion: If G is a graph and S E(G), we let G S denote the graph obtained from G by deleting every edge in S. Similarly, if X V (G), we let G X denote the graph obtained from G by deleting every vertex in X and any edge incident with such a vertex. Induced Subgraph: A subgraph H G is induced if E(H) contains every edge with both ends in V (H). Equivalently, H is an induced subgraph of G if and only if H = G (V (G) \ V (H)). Theorem 1.9 If G is a simple graph, then G is bipartite if and only if every induced cycle of G has even length. Proof: In light of the above result, to prove this theorem, we need only show that every graph with a cycle of odd length has an induced cycle of odd length. To see this G be a simple graph which is not bipartite, and choose an odd cycle C G of shortest length. If C is not induced, say e E(G) \ E(C) has both ends in V (C), then there is a smaller odd cycle using edges in E(C) {e} - a contradiction. Thus, C is an induced cycle of odd length - as required.

Theorem 1.10 Every loopless graph G has a bipartite subgraph H with E(H) 1 2 E(G). 6 Proof: Choose disjoint sets A, B V (G) with A B = V (G) so that the number of edges of G with one end in A and one end in B is maximum. Let H be the subgraph of G with vertex set V (G) and all edges with one end in A and one end in B. Let H be the subgraph of G with vertex set V (G) and all edges with either both ends in A or both ends in B. Let v A and assume that v has s edges with other endpoint in A and t edges with other endpoint in B. If s > t, then moving v to B increases the number of edges with one end in A and one in B - a contradiction. Thus, the degree of v in H is at least the degree of v in H. Since this holds for every vertex, it follows from Theorem 1.1 that E(H) E(H ) and this implies E(H) 1 E(G) as required. 2 Proposition 1.11 If G is a connected graph in which every vertex has degree 2, then G contains a cycle. Proof: If G has a loop edge, then this edge with its endpoint forms a cycle. Thus, we may assume (without loss) that G has no loop. Now, construct a walk v 0, e 1, v 2,... in a greedy manner by beginning at a vertex v 0, following an edge e 1 to a new vertex v 1, then following a new edge e 2 e 1 to a vertex v 2, and so on (maintaining the property that e i+1 e i ), stopping when we first revisit a vertex. Since each vertex has degree 2 (and no loops) it is always possible to choose e i+1 with e i+1 e i. Since V (G) is finite, at some point we have v i = v j for some i < j and our procedure terminates. Now v i, e i+1,..., v j forms a cycle. Proposition 1.12 If G is a graph in which every vertex has even degree, then there exists a list of cycles C 1,..., C m of G so that every edge appears in exactly one of these cycles. Proof: Choose a maximal list of cycles C 1,..., C m they have disjoint edge sets). which are pairwise edge-disjoint (i.e. Suppose (for a contradiction) that some component H of G ( m i=1e(c i )) has at least one edge. Since every vertex of G has even degree, it follows that every vertex in H has even degree. Since H is connected with E(H), it then follows that every vertex of H has degree 2. But then, the previous proposition shows that H contains a cycle, contradicting our choice of C 1,..., C m. Thus m i=1e(c i ) = E(G), and every edge occurs exactly once in C 1,..., C m as required.

7 Eulerian: A closed walk of a graph G is called Eulerian if it uses every edge exactly once. A graph is Eulerian if it has an Eulerian walk. Theorem 1.13 A connected graph G is Eulerian if and only if every vertex of G has even degree. Proof: The only if direction is immediate. For the if direction, assume that every vertex of G has even degree, and choose a closed walk v 0, e 1,..., v n of maximum length subject to the constraint that each edge is used at most once. Let S = {e 1,..., e n }, and let X = {v 0,..., v n }. Suppose (for a contradiction) that S E(G). We claim that there must exist an edge e E(G) \ S with at least one end in X. This is certainly true if X = V (G). If X V (G), then since G is connected, there must be an edge e with one end in X and one in V (G) \ X, so e E(G) \ S has one end in X. Now, let v i X be an end of e and consider the component H of G S which contains e and v i. It follows from our assumptions that every vertex of H has even degree, so by the previous proposition, we may choose a cycle C of H which contains the edge e (and thus the vertex v i ). Now we may extend the walk W by taking the initial part of this walk from v 0 to v i, then traversing the cycle C once from v i back to itself, and then taking the final part of W from v i to v n. This new walk contradicts our original choice. Thus S = E(G), and W is an Eulerian walk. Hamiltonian: A cycle C of a graph G is Hamiltonian if V (C) = V (G). Hamiltonian if it has a Hamiltonian cycle. A graph is Observation 1.14 Let G be a graph and X V (G). If X < comp(g X), then G is not Hamiltonian. Proof: Suppose (for a contradiction) that G has a Hamiltonian cycle C G. Then for every X V (G) we must have X comp(c X) comp(g X), a contradiction. Theorem 1.15 Let G be a simple graph with n 3 vertices. If deg(u) + deg(v) n for every two non-adjacent vertices u, v, then G is Hamiltonian. Proof: We proceed by induction on t = ( n 2) E(G). If t = 0, then G is complete, so it has a Hamiltonian cycle. Thus we may assume that t > 0 and we may choose two distinct non-adjacent vertices u, v. Now, add a new edge with e with ends u, v to form the graph

8 G. By induction, G has a Hamiltonian cycle. If this cycle does not use e, then it is also a Hamiltonian cycle of G, so we are done. Thus, we may assume that this cycle uses e. Therefore, we may number V (G) as v = v 1, v 2,..., v n = u so that v i is adjacent to v i+1 for 1 i n 1. Set P = {v i : i 2 and v i is adjacent to v 1 } Q = {v i : i 2 and v i 1 is adjacent to v n } Then P + Q = deg(v) + deg(u) n and since P Q {v 2,..., v n }, it follows that there exists 2 i n with v i P Q, so there is an edge e with ends v 1 and v i and an edge e with ends v n and v i 1. Using these two edges, we may form a Hamiltonian cycle in G as desired.