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

Similar documents
Basics of Graph Theory

Graphs. Introduction To Graphs: Exercises. Definitions:

Varying Applications (examples)

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

Introduction III. Graphs. Motivations I. Introduction IV

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

Discrete Mathematics (2009 Spring) Graphs (Chapter 9, 5 hours)

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

1. a graph G = (V (G), E(G)) consists of a set V (G) of vertices, and a set E(G) of edges (edges are pairs of elements of V (G))

Elements of Graph Theory

Graphs. Pseudograph: multiple edges and loops allowed

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

2. CONNECTIVITY Connectivity

Planar Graph (7A) Young Won Lim 6/20/18

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.

Graph Theory. Part of Texas Counties.

Foundations of Discrete Mathematics

Math.3336: Discrete Mathematics. Chapter 10 Graph Theory

Discrete Math For Computing II

Planar Graph (7A) Young Won Lim 5/21/18

Fundamental Properties of Graphs

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.

SCHOOL OF ENGINEERING & BUILT ENVIRONMENT. Mathematics. An Introduction to Graph Theory

Discrete mathematics II. - Graphs

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

Graph and Digraph Glossary

UNDIRECTED GRAPH: a set of vertices and a set of undirected edges each of which is associated with a set of one or two of these vertices.

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

Introduction to Graph Theory

Chapter 3: Paths and Cycles

Paths. Path is a sequence of edges that begins at a vertex of a graph and travels from vertex to vertex along edges of the graph.

Majority and Friendship Paradoxes

Lecture 5: Graphs. Rajat Mittal. IIT Kanpur

CPCS Discrete Structures 1

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.

DS UNIT 4. Matoshri College of Engineering and Research Center Nasik Department of Computer Engineering Discrete Structutre UNIT - IV

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

Introduction to Graphs

Module 2: NETWORKS AND DECISION MATHEMATICS

Chapter 11: Graphs and Trees. March 23, 2008

Graph Theory CS/Math231 Discrete Mathematics Spring2015

Further Mathematics 2016 Module 2: NETWORKS AND DECISION MATHEMATICS Chapter 9 Undirected Graphs and Networks

Algorithms. Graphs. Algorithms

Algorithms: Graphs. Amotz Bar-Noy. Spring 2012 CUNY. Amotz Bar-Noy (CUNY) Graphs Spring / 95

CMSC 380. Graph Terminology and Representation

CS6702 GRAPH THEORY AND APPLICATIONS 2 MARKS QUESTIONS AND ANSWERS

Chapter 1 Graph Theory

Varying Applications (examples)

Graphs and trees come up everywhere. We can view the internet as a graph (in many ways) Web search views web pages as a graph

Section 10.1: Graphs and Graph Models. Introduction to Graphs Definition of a Graph Types of Graphs Examples of Graphs

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

Discrete Wiskunde II. Lecture 6: Planar Graphs

Computer Science 280 Fall 2002 Homework 10 Solutions

Ordinary Differential Equation (ODE)

Outline. Introduction. Representations of Graphs Graph Traversals. Applications. Definitions and Basic Terminologies

Assignment 4 Solutions of graph problems

Chapter 2 Graphs. 2.1 Definition of Graphs

1 Digraphs. Definition 1

INTRODUCTION TO GRAPH THEORY. 1. Definitions

Simple graph Complete graph K 7. Non- connected graph

Combinatorics Summary Sheet for Exam 1 Material 2019

Module 11. Directed Graphs. Contents

MATH 350 GRAPH THEORY & COMBINATORICS. Contents

Graph Theory. 1 Introduction to Graphs. Martin Stynes Department of Mathematics, UCC January 26, 2011

Discrete Structures CISC 2315 FALL Graphs & Trees

Number Theory and Graph Theory

0.0.1 Network Analysis

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

An Introduction to Graph Theory

Discrete mathematics

WUCT121. Discrete Mathematics. Graphs

Graphs: Definitions Trails, Paths, and Circuits Matrix Representations Isomorphisms. 11. Graphs and Trees 1. Aaron Tan. 30 October 3 November 2017

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

Paths, Circuits, and Connected Graphs

PACKING DIGRAPHS WITH DIRECTED CLOSED TRAILS

CS 2336 Discrete Mathematics

Number Theory and Graph Theory

Planar graphs. Chapter 8

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.

Key Graph Theory Theorems

Discrete mathematics

Graphs: introduction, terminology, special graphs, representation and connectivity. Sections 8.1, 8.2, 8.3, 8.4

4. (a) Draw the Petersen graph. (b) Use Kuratowski s teorem to prove that the Petersen graph is non-planar.

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

CS200: Graphs. Prichard Ch. 14 Rosen Ch. 10. CS200 - Graphs 1

Chapter 9 Graph Algorithms

Chapter 9 Graph Algorithms

11/22/2016. Chapter 9 Graph Algorithms. Introduction. Definitions. Definitions. Definitions. Definitions

Lecture 6: Graph Properties

Domination, Independence and Other Numbers Associated With the Intersection Graph of a Set of Half-planes

An Introduction to Graph Theory

Chapter 9 Graph Algorithms

EECS 203 Lecture 20. More Graphs

MAS 341: GRAPH THEORY 2016 EXAM SOLUTIONS

CS 441 Discrete Mathematics for CS Lecture 26. Graphs. CS 441 Discrete mathematics for CS. Final exam

Math 776 Graph Theory Lecture Note 1 Basic concepts

Discrete Mathematics and Probability Theory Fall 2013 Vazirani Note 7

Artificial Intelligence

Logic: The Big Picture. Axiomatizing Arithmetic. Tautologies and Valid Arguments. Graphs and Trees

Graphs. The ultimate data structure. graphs 1

Transcription:

GRAPHS, GRAPH MODELS, GRAPH TERMINOLOGY, AND SPECIAL TYPES OF GRAPHS DR. ANDREW SCHWARTZ, PH.D. 10.1 Graphs and Graph Models (1) A graph G = (V, E) consists of V, a nonempty set of vertices (or nodes) and E, a set of edges. Each edge has either one or two vertices associated with it, called its endpoints. An edge is said to connect its endpoints. (2) if the vertex set is infinite, we call this an infinite graph (3) if the vertex set is finite, we call this a finite graph (4) (undirected) simple graph - no multiple edges no loops (5) (undirected) multigraph - possibly multiple edges, but no loops (6) (undirected) pseudographs - possibly multiple edges, possibly loops (7) A directed graph (digraph) G = (V, E) consists of a nonempty set of vertices V and a set of directed edges (or arcs) E. Each directed edge is associated with an ordered pair of vertices. The directed edge associated with the ordered pair (u, v) is said to start at u and end at v. (8) simple directed graph - no multiple edges, no loops (but we can have edges between vertices going both ways) (9) directed multigraph - possibly multiple edges, possibly loops (10) mixed graph - both directed and undirected edges with possibly multiple edge and possibly loops (11) niche graphs - graphs where the vertices are animals, and there is an undirected edge if the animals share a food source (12) acquantiship graphs - graphs where the vertices are people, and there is an undirected edge if the people know each other 10.2 Graph Terminology and Special Types of Graphs (1) adjacent (neighbors) - when two vertices u and v are the endpoints of a common edge (2) incident - when an edge e is associated with its endpoints (u, v) (e is said to connect u and v which are called endpoints) (3) degree (valence) - the number of edges incident with a vertex; denoted by deg(v) (4) isolated vertex - a vertex of degree zero Date: Fall 2009. 1

2 DR. ANDREW SCHWARTZ, PH.D. (5) pendant vertex - a vertex of degree one (6) Handshaking Theorem 2e = deg(v) v V (7) Corollary - an undirected graph has an even number of vertices of odd degree (8) adjacent to (9) adjacent from (10) in-degree - deg (v) (11) out-degree - deg + (v) (12) E = v V deg (v) = v V deg + (v) (13) complete graphs (14) cycles (15) wheels (16) n-cubes (17) bipartite graphs (complete also) (18) matching (19) maximal and perfect matching (20) subgraph (21) union of graphs 10.3 Representing Graphs and Graph Isomorphisms (1) One way to represent graphs without multiple edges is to list all the edges of the graph. (2) Also, there are adjacency lists which specify the vertices that are adjacent to each vertex of the graph. (3) The adjacency matrix A (or A G ) of G, with respect to a listing v 1, v 2,..., v n of the vertices, is the n n zero-one matrix with 1 as its (i, j)th entry when v i and v j are adjacent, and 0 as its entry when they are not adjacent. (4) sparse graphs contain relatively few edges (5) dense graphs contain many edges (6) The incidence matrix M of G, with respect to a listing v 1, v 2,..., v n of the vertices and a listing e 1, e 2,..., e m of the edges, is the n m matrix M=[m ij ], where m ij = 1 when edge e j is incident with v i, and 0 otherwise. (7) The simple graphs G 1 = (V 1, E 1 ) and G 2 = (V 2, E 2 ) are isomorphic if there exists a bijection f from V 1 to V 2 with the property that a and b are adjacent in G 1 iff f(a) and f(b) are adjacent in G 2. The function is then called a graph isomorphism. Two simple graphs that are not isomorphic are called nonisomorphic. (8) A property preserved by isomorphism of graphs is called a graph invariant. 10.4 Connectivity

GRAPHS, GRAPH MODELS, GRAPH TERMINOLOGY, AND SPECIAL TYPES OF GRAPHS 3 A path of length n (or walk)from u to v in G is a sequence of n edges e 1,..., e n of G such that e 1 corrsponds to some vertice {x 0, x 1 }, e 2 corresponds to some vertices {x 1, x 2 }, and so on and so forth. The path is a circuit (or closed walk) if it begins and ends at the same vertex. If we let u = x 0 and v = x n, then we call this a u, v-path (or u, v-circuit). It is said this path or circuit pass through these vertices, or traverses these edges. A path or circuit is simple (or a trail) if it does not contain the same edge more than once. For directed graphs {x i, x i+1 } is replaced by (x i, x i+1 ). An undirected graph is called connected if there is a path between every pair of distinct vertices of the graph. Simple Paths in Connected Simple Graphs Theorem There is a simple path between every pair of distinct vertices of a connected undirected graph. Pf. Let u and v be two arbitrary vertices in an arbitrary graph G. Since G is connected, then there exists at least one path between u and v. Let x 0, x 1,..., x n be the associated vertex sequence of the least length. This path must be simple. If not, then x i = x j for some i < j. Hence, the x i, x j -path is actually a circuit. So, remove this circuit and form the path with shorter length using the vertices x 0, x 1,..., x i 1, x j,..., x n. A connected component of a graph G is a connected subgraph of G that is not a proper subgraph of another connected subgraph of G. (In other words, a maximal connected subgraph of G). If the removal of a vertex breaks a graph G into more components than it had before, we call it a cut vertex (or an articulation point). If the removal of an edge breaks a graph G into more components than were there before, we call it a cut edge (or a bridge). A digraph is strongly connected if there is a path from a to b and from b to a whenever a and b are vertices in the graph. A digraph is weakly connected if the underlying undirected graph is connected. The subgraphs of a digraph D that are strongly connected but not contained in larger strongly connected subgraphs are called strongly connected components or strong components of D. Note that the lengths of paths in between vertices are a graph invariants and hence can be used to determine if two graphs are isomorphic or not. Using Powers of the Adjacency Matrix to Count Paths Theorem Let G be a graph with adjacency matrix A with respect to the ordering v 1, v 2,..., v n (with directed or undirected edges, with multiple edges and loops allowed). The number of different paths of length r from v i and v j, where r is a positive integer, equals the (i, j)th entry of A r. Pf. (B.C.) Note that A 1 = A being an adjacency matrix show the adajacency or the number of paths of length 1 from v i to v j which is precisely the (i, j)th of the adjancency matrix. (I.S.) Assume that the (i, j)th entry of A r is the number of different paths of length r from v i to v j. However, recall that A r+1 = A r A, and the (i, j)th entry of A r+1 is b i1 a1j + b i2 a 2j +... + b in a nj, where b ik is the (i, k)th entry of A r. By induction hypothesis, this is the number of path of length r from v i to v k. A path of length r + 1 from v i and v j is made up of a path of length r from v i to some intermediate vertex v k, and an edge from v k to v j. By the product rule for counting, the number of such paths is the product of the number of paths of length r from v i to v k, namely, b ik, and the number of edges from v k to v j, namely a kj. When these products are added for all possible intermediate vertices v k, the desired result follows from the Addition Principle.

4 DR. ANDREW SCHWARTZ, PH.D. 10.5 Euler and Hamiltonian Paths An Euler circuit in a graph G is a simple circuit containing every edge G. An Euler path in a graph G is a simple path containing every edge of G. Eulerian Circuit Theorem A connected multigraph with at least two vertices has an Euler circuit iff each of its vertices has even degree. Pf. Eulerian Path Theorem A connected multigraph has an Euler path but not an Euler circuit iff it has exactly two vertices of odd degree. Pf. A simple path in a graph G that passes through every vertex exactly once is called a Hamiltonian path, and a simple circuit in a graph G that passes through every vertex exactly once is called a Hamiltonian circuit. That is, the simple path x 0, x 1,..., x n 1, x n in the graph G = (V, E) is a Hamiltonian path if V = {x 0, x 1,..., x n } and x i x j for 0 i < j n, and the simple circuit x 0, x 1,..., x n 1, x n, x 0 (with n > 0) is a Hamiltonian circuit x 0, x 1,..., x n 1, x n is a Hamilton path. Dirac s Theorem If G is a simple graph with n vertices with n 3 such that the degree of every vertex in G is at least n/2, then G has a Hamiltonian circuit. Pf. Corollary of Ore s Theorem Ore s Theorem If G is a simple graph with n vertices with n 3 such that deg(u) + deg(v) n for every pair of nonadjacent vertices u and v in G, then G has Hamiltonian circuit. Pf. Exercise 65 The famous traveling salesperson problem or TSP asks for the shortest route a traveling salesperson should take to visit a set of cities. This problem reduces to finding a Hamiltonian circuit in a complete graph such that the total weight of its edges is as small as possible. 10.6 Shortest Path Problems (1) graphs that have a number assigned to each edge are called weighted graphs (2) we will call the weight (length) of a path in a weighted graph the sum of the weights of the edges of this path (3) Dijkstra s Algorithm finds the weight of a lightest path between two vertices in a connected simple undirected weighted graph. Dijkstra s Algorithm begins by labeling a with 0 and the other vertices with. It then proceeds by forming a distinguished set of vertices. Let S k denote this set after k iterations of the labeling procedure. We begin with S 0 =. The set S k is formed from S k 1 by adding a vertex u not in S k 1 with the smallest label. Once u is added to S k, we update the labels of all vertices not in S k so that the new lable of the vertex v at the kth stage is the weight of the shortest path from a to v that contains vertices only in S k. Note that a lightest path form a to v containing only elements of S k is either a shortest path from a to v that contains only elements of S k 1 or it is a shortest path form a to u at the (k 1)st stage with the edge {u, v} added. We repeat this procedure until z is added to S k. 10.7 Planar Graphs

GRAPHS, GRAPH MODELS, GRAPH TERMINOLOGY, AND SPECIAL TYPES OF GRAPHS 5 (1) a graph is called planar if it can be drawn in the plane without any edges crossing (where a crossing of edges is the intersection of the lines or arcs representing them at a point other than their common endpoint). Such a drawing is called a planar representation of the graph. (2) A planar representation of a graph splits the plane into regions (3) Euler s Formula Let G be a connected planar simple graph with e edges and v vertices. Let r be the number of regions in a planar representation of G. Then r = e v + 2 (4) If G is a connected planar simple graph with e edges and v vertices, where v 3, then e 3v 6. (5) If G is a connected planar simple graph, then G has a vertex of degree not exceeding five. (6) If a connected planar simple graph has e edges and v vertices with v 3 and no circuits of length three, then e 2v 4 (7) If a graph is planar, so will be any graph obtain by removing an edge {u, v} and adding a new vertex w together with edges {u, w} and {w, v}. This process is called an elementary subdivision. (8) The graphs G 1 and G 2 are called homeomorphic if they can be obtained from the same graph by a sequence of elementary subdivisions. (9) Kuratowski s Theorem - A graph is nonplanar iff it contains a subgraph homeomorphic to K 3,3 or K 5. REFERENCES Kenneth H. Rosen, (2007) Discrete Mathematics and Its Applications (6th ed.), St. Louis, MO: McGraw- Hill. West, Douglas B. Combinatorial Mathematics. Special Printing Spring 2011 Edition, University of Illinois: Urbana, IL. Department of Mathematics, Southeast Missouri State University