Math 170- Graph Theory Notes

Similar documents
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

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

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.

Math 776 Graph Theory Lecture Note 1 Basic concepts

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

Ma/CS 6b Class 5: Graph Connectivity

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

Introduction III. Graphs. Motivations I. Introduction IV

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

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

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

Math.3336: Discrete Mathematics. Chapter 10 Graph Theory

Varying Applications (examples)

Module 1. Preliminaries. Contents

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.

The Structure of Bull-Free Perfect Graphs

Basics of Graph Theory

Fundamental Properties of Graphs

Two Characterizations of Hypercubes

DO NOT RE-DISTRIBUTE THIS SOLUTION FILE

Assignment 4 Solutions of graph problems

DO NOT RE-DISTRIBUTE THIS SOLUTION FILE

HW Graph Theory SOLUTIONS (hbovik) - Q

Number Theory and Graph Theory

Graphs. Introduction To Graphs: Exercises. Definitions:

CMSC 380. Graph Terminology and Representation

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.

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

Number Theory and Graph Theory

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

Module 7. Independent sets, coverings. and matchings. Contents

On vertex types of graphs

EDGE MAXIMAL GRAPHS CONTAINING NO SPECIFIC WHEELS. Jordan Journal of Mathematics and Statistics (JJMS) 8(2), 2015, pp I.

HW Graph Theory SOLUTIONS (hbovik)

Combinatorics Summary Sheet for Exam 1 Material 2019

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

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

Algebraic Graph Theory- Adjacency Matrix and Spectrum

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

Bipartite Roots of Graphs

(5.2) 151 Math Exercises. Graph Terminology and Special Types of Graphs. Malek Zein AL-Abidin

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

Introduction to Graph Theory

Partitioning Complete Multipartite Graphs by Monochromatic Trees

CPCS Discrete Structures 1

AMS /672: Graph Theory Homework Problems - Week V. Problems to be handed in on Wednesday, March 2: 6, 8, 9, 11, 12.

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

Title Edge-minimal graphs of exponent 2

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.

Lecture 5: Graphs. Rajat Mittal. IIT Kanpur

Problem Set 2 Solutions

The University of Sydney MATH2969/2069. Graph Theory Tutorial 2 (Week 9) 2008

Elements of Graph Theory

Chapter 3: Paths and Cycles

A Particular Type of Non-associative Algebras and Graph Theory

Line Graphs and Circulants

Matching and Factor-Critical Property in 3-Dominating-Critical Graphs

Lecture 1. 1 Notation

Graphs. Pseudograph: multiple edges and loops allowed

arxiv: v4 [math.co] 4 Apr 2011

Induction Review. Graphs. EECS 310: Discrete Math Lecture 5 Graph Theory, Matching. Common Graphs. a set of edges or collection of two-elt subsets

CMSC Honors Discrete Mathematics

arxiv: v1 [math.co] 30 Nov 2015

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

Discrete mathematics , Fall Instructor: prof. János Pach

Discrete Mathematics

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

The Restrained Edge Geodetic Number of a Graph

Chapter 11: Graphs and Trees. March 23, 2008

PACKING DIGRAPHS WITH DIRECTED CLOSED TRAILS

Vertex 3-colorability of claw-free graphs

5 Graph Theory Basics

5 Graphs

Module 11. Directed Graphs. Contents

Skew propagation time

Rigidity, connectivity and graph decompositions

Matching Theory. Figure 1: Is this graph bipartite?

Chapter 2. Splitting Operation and n-connected Matroids. 2.1 Introduction

Definition: A graph G = (V, E) is called a tree if G is connected and acyclic. The following theorem captures many important facts about trees.

DEFINITION OF GRAPH GRAPH THEORY GRAPHS ACCORDING TO THEIR VERTICES AND EDGES EXAMPLE GRAPHS ACCORDING TO THEIR VERTICES AND EDGES

Key Graph Theory Theorems

Math236 Discrete Maths with Applications

Introduction to Graphs

On the Relationships between Zero Forcing Numbers and Certain Graph Coverings

Discrete Mathematics and Probability Theory Fall 2013 Vazirani Note 7

Graph Theory Questions from Past Papers

1 Digraphs. Definition 1

Ma/CS 6b Class 26: Art Galleries and Politicians

BIL694-Lecture 1: Introduction to Graphs

Lecture 6: Graph Properties

Star Decompositions of the Complete Split Graph

Pebble Sets in Convex Polygons

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.

What you should know before you do Graph Theory Honours

V10 Metabolic networks - Graph connectivity

CS 311 Discrete Math for Computer Science Dr. William C. Bulko. Graphs

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

11.1. Definitions. 11. Domination in Graphs

Math 443/543 Graph Theory Notes 5: Planar graphs and coloring

Treewidth and graph minors

Transcription:

1 Math 170- Graph Theory Notes Michael Levet December 3, 2018 Notation: Let n be a positive integer. Denote [n] to be the set {1, 2,..., n}. So for example, [3] = {1, 2, 3}. To quote Bud Brown, Graph theory is a subject whose deceptive simplicity masks its vast applicability. Graph theory provides simple mathematical structures known as graphs to model the relations of various objects. The applications are numerous, including efficient storage of chemicals (graph coloring), optimal assignments (matchings), distribution networks (flows), efficient storage of data (tree-based data structures), and machine learning. In automata theory, we use directed graphs to provide a visual representation of our machines. Many elementary notions from graph theory, such as path-finding and walks, come up as a result. In complexity theory, many combinatorial optimization problems of interest are graph theoretic in nature. Therefore, it is important to discuss basic notions from graph theory. We begin with the basic definition of a graph. Definition 1 (Simple Graph). A simple graph is a two-tuple G(V, E) where V is a set of vertices, and the edge set E is a set of 2-element subsets of V. By convention, a simple graph is referred to as a graph, and an edge {i, j} is written as ij. In simple graphs, ij = ji. Two vertices i, j are said to be adjacent if ij E(G). Now let s consider an example of a graph. Example 1. Let G(V, E) be the graph where V = [6] and E = {12, 15, 23, 25, 34, 45, 56}. This graph is pictured below. We now introduce several common classes of graphs. Definition 2 (Complete Graph). The complete graph, denoted K n, has the vertex set V = [n] and edge set E = ( V 2). That is, Kn has all possible edges between vertices. Example 2. The complete graph on five vertices K 5 is pictured below.

2 Definition 3 (Path Graph). The path graph, dentoed P n, has vertex set V = [n] and the edge set E = {{i, i + 1} : i [n 1]}. Example 3. The path on three vertices P 3 is shown below. 1 2 3 Definition 4 (Cycle Graph). Let n 3. The cycle graph, denoted C n, has the vertex set V = [n] and the edge set E = {{i, i + 1} : i [n 1]} {{1, n}}. Example 4. Intuitively, C n can be thought of as the regular n-gon. So C 3 is a triangle, C 4 is a quadrilateral, and C 5 is a pentagon. The graph C 6 is pictured below. Definition 5 (Wheel Graph). Let n 4. The wheel graph, denoted W n, is constructed by joining a vertex n to each vertex of C n 1. So we take C n 1 n and add the edges vn for each v [n 1]. Example 5. The wheel graph on seven vertices W 7 is pictured below. Definition 6 (Bipartite Graph). A bipartite graph G(V, E) has a vertex set V, which can be partitioned into two sets X and Y. That is, V = X Y and X Y =. The edge set of a bipartite graph E is a subset of {xy : x X, y Y }. That is, no two vertices in the same part of V are adjacent. So no two vertices in X are adjacent, and no two vertices in Y are adjacent. Example 6. A common class of bipartite graphs include even-cycles C 2n. The complete bipartite graph is another common example. We denote the complete bipartite graph as K m,n which has vertex partitions X Y where X = m and Y = n. The edge set E(K m,n ) = {xy : x X, y Y }. The graph K 3,3 is pictured below.

3 Definition 7 (Hypercube). The hypercube, denoted Q n, has vertex set V = {0, 1} n. Two vertices are adjacent if the binary strings differ in precisely one component. Example 7. The hypercube Q 2 is isomorphic to C 4 (isomorphism roughly means that two graphs are the same). The hypercube Q 3 is pictured below. Definition 8 (Connected Graph). A graph G(V, E) is said to be connected if for every u, v V (G), there exists a u v path in G. A graph is said to be disconnected if it is not connected; and each connected subgraph is known as a component. Example 8. So far, every graph presented has been connected. If we take two disjoint copies of any of the above graphs, their union forms a disconnected graph. Definition 9 (Degree). Let G(V, E) be a graph and let v V (G). The degree of v, dentoed deg(v) is the number of edges containing v. That is, deg(v) = {vx : vx E(G)}. Example 9. Each vertex in the Cycle graph C n has degree 2. In Example 17, deg(6) = 1 and deg(5) = 3. Theorem 0.1 (Handshake Lemma). Let G(V, E) be a graph. We have v V (G) deg(v) = 2 E(G). Proof. The proof is by double counting. The term deg(v) counts the number of edges incident to v. Each edge has two endpoints v and x, for some other x V (G). So the edge vx is double counted in both deg(v) and deg(x). Thus, v V (G) deg(v) = 2 E(G). Remark: The Handshake Lemma is a necessary condition for a graph to exist. That is, all graphs satisfy the Handshake Lemma. Consider the following: does there exist a graph on 11 vertices each having degree 5? By the Handshake Lemma, 11 5 = 2 E(G). However, 55 is not even, so no such graph exists. Note that the Handshake Lemma is not a sufficient condition. That is, there exist degree sequences such as (3, 3, 1, 1) satisfying the Handshake Lemma which are not realizable by any graph. Theorems such as Havel-Hakimi and Erdós-Gallai provide conditions that are both sufficient and necessary for a degree sequence to be realizable by some graph. Next, the notion of a walk will be introduced. Walks on graphs come up frequently in automata theory. Intuitively, the sequence of transitions in an automaton is analogous to a walk on a graph. Additionally, algorithms like the State Reduction procedure and Brzozowski Algebraic Method that convert finite state automata to regular expressions are based on the idea of a walk on a graph. Definition 10 (Walk). Let G(V, E) be a graph. A walk of length n is a sequence (v i ) n i=0 such that v iv i+1 E(G) for all i {0,..., n 1}. If v 0 = v n, the walk is said to be closed. Let us develop some intuition for a walk. We start a given vertex v 0. Then we visit one of v 0 s neighbors, which we call v 1. Next, we visit one of v 1 s neighbors, which we call v 2. We continue this construction for the desired length of the walk. The key difference between a walk and a path is that a walk can repeat vertices, while all vertices in a path are distinct.

4 Example 10. Consider a walk on the hypercube Q 3. The sequence of vertices (000, 100, 110, 111, 101) forms a walk, while (000, 100, 110, 111, 101, 001, 000) is a closed walk. The sequence (000, 111) is not a walk because 000 and 111 are not adjacent in Q 3. We now define the adjacency matrix, which is useful for enumerating walks of a given length. Definition 11 (Adjacency Matrix). Let G(V, E) be a graph. The adjacency matrix A is an n n matrix where: { 1 : ij E(G) A ij = (1) 0 : ij E(G) Example 11. Consider the adjacency matrix for the graph K 5 : 0 1 1 1 1 1 0 1 1 1 1 1 0 1 1 1 1 1 0 1 1 1 1 1 0 (2) Theorem 0.2. Let G(V, E) be a graph, and let A be its adjacency matrix. For each n Z +, A n ij number of walks of length n starting at vertex i and ending at vertex j. counts the Proof. The proof is by induction on n. When n = 1, we have A. By definition A ij = 1 iff ij E(G). All walks of length 1 correspond to the edges incident to i, so the theorem holds true when n = 1. Now fix k 1 and suppose that for each m [k] that A m ij counts the number of i j walks of length m. The k+1 case will now be shown. Consider A k+1 = A k A by associativity. By the inductive hypothesis, A k ij and A ij count the number of i j walks of length k and 1 respectively. Observe that: A k+1 ij = n x=1 A k ixa xj So A k ix counts the number of ix walks of length k, and A xj = 1 iff xj E(G). Adding the edge xj to an i x walk of length k forms an i j walk of length k + 1. The result follows by induction. We prove one more theorem before concluding with the graph theory section. In order to prove this theorem, the following lemma (or helper theorem) will be introduced first. Lemma 0.1. Let G(V, E) be a graph. Every closed walk of odd length in G contains an odd-cycle. Proof. The proof is by induction on the length of the walk. When we have a single vertex, this is trivially a cycle. Now suppose the that any closed walk of odd length up to 2k + 1 has an odd-cycle. We prove true for walks of length 2k +3. Let (v i ) 2k+3 i=0 be a walk closed of odd length. If v 0 = v 2k+3, are the only repeated vertices, then the walk itself is an odd cycle and we are done. Otherwise, suppose v i = v j for some 0 i < j 2k + 3. If the walk (v t ) k t=i is odd, then there exists an odd cycle by the inductive hypothesis. Otherwise, the walk W = (v 0,..., v i, v j+1,..., v 2k+3 ) is of odd length at most 2k + 1. So by the IH, W has an odd cycle. So the lemma holds by induction. We now characterize bipartite graphs. Theorem 0.3. A graph G(V, E) is bipartite if and only if it contains no cycles of odd length. Proof. Suppose first that G is bipartite with parts X and Y. Now consider a walk of length n. As no vertices in a fixed part are adjacent, only walks of even lengths can end back in the same part as the staring vertex. A cycle is a walk where all vertices are distinct, save for v 0 and v n which are the same. Therefore, no cycle of odd length exists in G.

Conversely, suppose G has no cycles of odd length. We construct a bipartition of V (G). Without loss of generality, suppose G is connected. For if G is not connected, we apply the same construction to each connected component. Fix the vertex v. Let X = {u V (G) : d(u, v) is even }, where d(u, v) denotes the distance or length of the shortest uv path. Let Y = {u V (G) : d(u, v) is odd }. Clearly, X Y =. So it suffices to show no vertices within X are adjacent, and no vertices within Y are adjacent. Fix v X and suppose to the contrary that two vertices in y 1, y 2 Y are adjacent. Then there exists a closed walk of odd length (v,..., y 1, y 2,... v). By Lemma 1.1, G must contain an odd-cycle, a contradiction. By similar argument, no vertices in X can be adjacent. So G is bipartite with bipartition X Y. 5