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.

Similar documents
CPCS Discrete Structures 1

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

Graphs. Introduction To Graphs: Exercises. Definitions:

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

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

Introduction to Graphs

Math.3336: Discrete Mathematics. Chapter 10 Graph Theory

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

Ma/CS 6b Class 5: Graph Connectivity

The vertex set is a finite nonempty set. The edge set may be empty, but otherwise its elements are two-element subsets of the vertex set.

Introduction III. Graphs. Motivations I. Introduction IV

Graphs. Pseudograph: multiple edges and loops allowed

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.

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

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)

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

An Introduction to Graph Theory

Foundations of Discrete Mathematics

Basics of Graph Theory

CMSC 380. Graph Terminology and Representation

Varying Applications (examples)

Computer Science 280 Fall 2002 Homework 10 Solutions

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

Math 170- Graph Theory Notes

Assignment 4 Solutions of graph problems

WUCT121. Discrete Mathematics. Graphs

5 Graphs

Discrete Structures CISC 2315 FALL Graphs & Trees

Elements of Graph Theory

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

Graphs. The ultimate data structure. graphs 1

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

Algorithms. Graphs. Algorithms

Matchings and Covers in bipartite graphs

Number Theory and Graph Theory

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

11.4 Bipartite Multigraphs

Lecture 6: Graph Properties

Graph Theory CS/Math231 Discrete Mathematics Spring2015

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

Majority and Friendship Paradoxes

Graph Theory Day Four

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))

Chromatic Transversal Domatic Number of Graphs

Graphs and Isomorphisms

HW Graph Theory SOLUTIONS (hbovik) - Q

Chapter 2 Graphs. 2.1 Definition of Graphs

Introduction to Graph Theory

Combinatorics Summary Sheet for Exam 1 Material 2019

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

Artificial Intelligence

An Introduction to Graph Theory

1 Matchings in Graphs

The Restrained Edge Geodetic Number of a Graph

Math 776 Graph Theory Lecture Note 1 Basic concepts

On Balance Index Set of Double graphs and Derived graphs

λ -Harmonious Graph Colouring

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

Graph theory - solutions to problem set 1

Graphs: Introduction. Ali Shokoufandeh, Department of Computer Science, Drexel University

Graph Theory: Introduction

GRAPH THEORY: AN INTRODUCTION

Discrete mathematics II. - Graphs

CHAPTER 10 GRAPHS AND TREES. Alessandro Artale UniBZ - artale/z

Extremal Graph Theory: Turán s Theorem

Intermediate Math Circles Wednesday, February 8, 2017 Graph Theory I

Discrete Mathematics for CS Spring 2008 David Wagner Note 13. An Introduction to Graphs

Approximation slides 1. An optimal polynomial algorithm for the Vertex Cover and matching in Bipartite graphs

Complete Cototal Domination

Chapter 6 GRAPH COLORING

MTL 776: Graph Algorithms. B S Panda MZ 194

Chapter 8 Topics in Graph Theory

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

Graph (1A) Young Won Lim 4/19/18

Chapter 1 Graph Theory

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

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

Matching and Planarity

Two Characterizations of Hypercubes

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

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

Proposition 1. The edges of an even graph can be split (partitioned) into cycles, no two of which have an edge in common.

Discrete Wiskunde II. Lecture 6: Planar Graphs

Ordinary Differential Equation (ODE)

HOMEWORK 4 SOLUTIONS. Solution: The Petersen graph contains a cycle of odd length as a subgraph. Hence,

Lecture 2 - Graph Theory Fundamentals - Reachability and Exploration 1

Discrete Mathematics and Probability Theory Fall 2009 Satish Rao,David Tse Note 8

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

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

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

ON A WEAKER VERSION OF SUM LABELING OF GRAPHS

Week 8: The fundamentals of graph theory; Planar Graphs 25 and 27 October, 2017

The Geodesic Integral on Medial Graphs

Lecture 1: An Introduction to Graph Theory

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

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

γ(ɛ) (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 777 Graph Theory, Spring, 2006 Lecture Note 1 Planar graphs Week 1 Weak 2

1 Random Walks on Graphs

Transcription:

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. The edge e connects u and v. The vertices u and v are endpoints of e. Definition: The degree of a vertex v, denoted deg(v), is the number of edges for which it is an endpoint. A loop contributes twice in an undirected graph. Example: 2 2 3 If deg(v) = 0, v is called isolated. 1 and Its Applications 4/E Kenneth Rosen TP 1

If deg(v) = 1, v is called pendant. The Handshaking Theorem: Let G = (V, E). Then Proof: 2 E = deg(v) v V Each edge contributes twice to the degree count of all vertices. Q. E. D. Example: If a graph has 5 vertices, can each vertex have degree 3? 4? The sum is 3 5 = 15 which is an odd number. Not possible. The sum is 20 = 2 E and 20/2 = 10. May be possible. and Its Applications 4/E Kenneth Rosen TP 2

Theorem: A graph has an even number of vertices of odd degree. Proof: Let V1 = vertices of odd degree V2= vertices of even degree The sum must be even. But odd times odd = odd odd times even = even even times even = even even plus odd = odd It doesn't matter whether V2 has odd or even cardinality. V1 cannot have odd cardinality. Q. E. D. Example: It is not possible to have a graph with 3 vertices each of which has degree 1. and Its Applications 4/E Kenneth Rosen TP 3

Directed Graphs Definition: Let <u, v> be an edge in G. Then u is an initial vertex and is adjacent to v and v is a terminal vertex and is adjacent from u. Definition: The in degree of a vertex v, denoted deg - (v) is the number of edges which terminate at v. Similarly, the out degree of v, denoted deg + (v), is the number of edges which initiate at v. Theorem: E = deg (v) = deg + (v) v V v V Special Simple Graphs Complete graphs - K n : the simple graph with - n vertices - exactly one edge between every pair of distinct vertices. Maximum redundancy in local area networks and processor connection in parallel machines. and Its Applications 4/E Kenneth Rosen TP 4

Examples: K 1 K 2 K 3 K 4 Discrete Mathematics by Section 7.2 and Its Applications 4/E Kenneth Rosen TP 5

K 5 Note: K5 is important because it is the simplest nonplanar graph: It cannot be drawn in a plane with nonintersecting edges. Cycles: C n is an n vertex graph which is a cycle. Local area networks are sometimes configured this way called Ring networks. and Its Applications 4/E Kenneth Rosen TP 6

C 3 C 4 C 5 and Its Applications 4/E Kenneth Rosen TP 7

Wheels: Add one additional vertex to the cycle C n and add an edge from each vertex to the new vertex to produce W n. Provides redundancy in local area networks. W 3 W 4 and Its Applications 4/E Kenneth Rosen TP 8

n-cubes: Q n is the graph with 2 n vertices representing bit strings of length n. An edge exists between two vertices that differ by one bit position. A common way to connect processors in parallel machines. Intel Hypercube. 0 1 Q 00 01 1 10 011 Q 2 11 111 001 101 010 110 000 100 Q 3 and Its Applications 4/E Kenneth Rosen TP 9

Bipartite Graphs Definition: A simple graph G is bipartite if V can be partitioned into two disjoint subsets V 1 and V 2 such that every edge connects a vertex in V 1 and a vertex in V 2. Note: There are no edges which connect vertices in V 1 or in V 2. A bipartite graph is complete if there is an edge from every vertex in V 1 to every vertex in V 2, denoted K m,n where m = V 1 and n = V 2. Examples: Suppose bigamy is permitted but not same sex marriages and males are in V1 and females in V2 and an edge represents a marriage. If every male is married to every female then the graph is complete. Supplier, warehouse transportation models are bipartite and an edge indicates that a given supplier sends inventory to a given warehouse. A Star network is a K 1,n bipartite graph. Discrete Mathematics by Section 7.2 and Its Applications 4/E Kenneth Rosen TP 10

K 1,8 C k for k even is a bipartite graph: even numbered vertices in V1, odd numbered in V2. 1 2 4 3 1 2 3 4 and Its Applications 4/E Kenneth Rosen TP 11

Is the following graph bipartite? b c a d e If a is in V1 then e, d and b must be in V2 (why?). Then c is in V1 and there is no inconsistency. We rearrange the graph as follows: c a b d e New Graphs from Old Definition: (W, F) is a subgraph of G = (V, E) if W V and F E. and Its Applications 4/E Kenneth Rosen TP 12

Definition: If G1 and G2 are simple then G1 G2 = (V1 V2, E1 E2) and the graph is simple. Examples: Find the subgraphs of Q 1 : 0 0 1 1 0 1 Count the number of subgraphs of a given graph. Find the union of the two graphs G 1 and G 2 : and Its Applications 4/E Kenneth Rosen TP 13

a b a f b c e d e G 2 G 1 a c f g b d c g e d G G 1 2 Note: The important properties of a graph do not depend on how we draw it. We want to be able to identify two graphs that are the same (up to labeling of the vertices). and Its Applications 4/E Kenneth Rosen TP 14