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

Similar documents
Graphs. Introduction To Graphs: Exercises. Definitions:

CPCS Discrete Structures 1

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

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.

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

Introduction to Graphs

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

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.

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

Math.3336: Discrete Mathematics. Chapter 10 Graph Theory

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

Graphs. Pseudograph: multiple edges and loops allowed

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

Introduction III. Graphs. Motivations I. Introduction IV

Foundations of Discrete Mathematics

An Introduction to Graph Theory

Varying Applications (examples)

Chapter 2 Graphs. 2.1 Definition of Graphs

CMSC 380. Graph Terminology and Representation

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

Basics of Graph Theory

Ordinary Differential Equation (ODE)

Number Theory and Graph Theory

Introduction to Graph Theory

Ma/CS 6b Class 5: Graph Connectivity

Graphs. The ultimate data structure. graphs 1

Graph Theory CS/Math231 Discrete Mathematics Spring2015

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.

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

Discrete Structures CISC 2315 FALL Graphs & Trees

11.1. Definitions. 11. Domination in Graphs

Fundamentals of Graph Theory MATH Fundamentals of Graph Theory. Benjamin V.C. Collins, James A. Swenson MATH 2730

March 20/2003 Jayakanth Srinivasan,

Solving Linear Recurrence Relations (8.2)

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

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

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

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

Elements of Graph Theory

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

CS 441 Discrete Mathematics for CS Lecture 24. Relations IV. CS 441 Discrete mathematics for CS. Equivalence relation

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

A good picture is worth a thousand words

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

Assignment 4 Solutions of graph problems

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

Math 170- Graph Theory Notes

Binary Relations McGraw-Hill Education

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.

Chromatic Transversal Domatic Number of Graphs

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

BIL694-Lecture 1: Introduction to Graphs

Directed Graph and Binary Trees

Dieter Jungnickel (2008), Graphs, Networks and Algorithms, 3rd edition, which is available online via SpringerLink.

Math 776 Graph Theory Lecture Note 1 Basic concepts

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.

1.2 Venn Diagrams and Partitions

Graphs V={A,B,C,D,E} E={ (A,D),(A,E),(B,D), (B,E),(C,D),(C,E)}

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

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

Some Elementary Lower Bounds on the Matching Number of Bipartite Graphs

Artificial Intelligence

Assignment 1 Introduction to Graph Theory CO342

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.

5 Graphs

MTL 776: Graph Algorithms. B S Panda MZ 194

Binding Number of Some Special Classes of Trees

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

CHAPTER 10 Graphs. 258 Chapter 10 Graphs

MATH 682 Notes Combinatorics and Graph Theory II

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.

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

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

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

Key Graph Theory Theorems

Discrete Mathematics and Probability Theory Fall 2013 Vazirani Note 7

The Restrained Edge Geodetic Number of a Graph

Majority and Friendship Paradoxes

Complete Cototal Domination

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

Graph and Digraph Glossary

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

Graph Theory: Introduction

Graph Theory. Part of Texas Counties.

Lecture 1: An Introduction to Graph Theory

Crossing bridges. Crossing bridges Great Ideas in Theoretical Computer Science. Lecture 12: Graphs I: The Basics. Königsberg (Prussia)

Lecture Notes on Graph Theory

Chapter 4. Relations & Graphs. 4.1 Relations. Exercises For each of the relations specified below:

HW Graph Theory SOLUTIONS (hbovik)

PACKING DIGRAPHS WITH DIRECTED CLOSED TRAILS

WUCT121. Discrete Mathematics. Graphs

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

Lecture 6: Graph Properties

Combinatorics Summary Sheet for Exam 1 Material 2019

Graph Theory Day Four

Discrete Wiskunde II. Lecture 6: Planar Graphs

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

Chapter 1 Graph Theory

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

Transcription:

DEFINITION OF GRAPH GRAPH THEORY Prepared by Engr. JP Timola Reference: Discrete Math by Kenneth H. Rosen 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. EXAMPLE a network is made up of data centers and communication links between computers THEIR VERTICES AND EDGES Simple graph graph in which each edge connects two different vertices and where no two edges connect the same pair of vertices THEIR VERTICES AND EDGES Multigraphs Graphs that may have multiple edges connecting the same vertices THEIR VERTICES AND EDGES Pseudographs Graphs that may include loops, and possibly multiple edges connecting the same pair of vertices or a vertex to itself

DEFINITION Directed Graph (or Digraph) consists of a non-empty 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. THEIR DIRECTION Simple Directed Graph When a directed graph has no loops and has no multiple directed edges Because a simple directed graph has at most one edge associated to each ordered pair of vertices (u, v), we call (u, v) an edge if there is an edge associated to it in the graph. THEIR DIRECTION Directed multigraphs may have multiple directed edges from a vertex to a second vertex When there are m directed edges, each associated to an ordered pair of vertices (u, v), we say that (u, v) is an edge of multiplicity m. THEIR DIRECTION Mixed Graph. graph with both directed and undirected d edges For some models that may need a graph where some edges are undirected, while others are directed. EXERCISE 1. Draw graph models, stating the type of graph used, to represent airline routes where every day there are four flights from Manila to Palawan, two flights from Palawan to Manila, three flights from Palawan to Butuan, two flights from Butuan to Palawan, one flight from Palawan to Cebu, two flights from Cebu to Palawan, three flights from Palawan to Bohol, two flights from Bohol to Palawan, and one flight from Bohol to Butuan, with

EXERCISE a) an edge between vertices representing cities that have a flight between them (in either direction). b) an edge between vertices representing cities for each flight that operates between them (in either direction). EXERCISE 2)What kind of graph can be used to model a highway system between major cities where a) there is an edge between the vertices representing cities if there is an interstate highway between them? b) there is an edge between the vertices representing cities for each interstate highway between them? DEFINITION 1 Basic Terminology Two vertices u and v in an undirected graph G are called adjacent (or neighbors) in G if u and v are endpoints of an edge e of G. Such an edge e is called incident with the vertices u and v and e is said to connect u and v. DEFINITION 2 Basic Terminology The set of all neighbors of a vertex v of G = (V,E), denoted by N(v), is called the neighborhood of v. If A is a subset of V, we denote by N(A) the set of all vertices in G that are adjacent to at least one vertex in A. So, N(A) = U v A N(v). DEFINITION 3 Basic Terminology The degree of a vertex in an undirected graph is the number of edges incident with it, except that a loop at a vertex contributes twice to the degree of that vertex. The degree of the vertex v is denoted by deg(v). Example What are the degrees and what are the neighborhoods of the vertices in the graphs G and H?

Other terms A vertex of degree zero is called isolated. It follows that an isolated vertex is not adjacent to any vertex. A vertex is pendant if and only if it has degree one. Consequently, a pendant vertex is adjacent to exactly one other vertex. THEOREM 1 THE HANDSHAKING THEOREM Let G = (V,E) be an undirected graph with m edges. Then 2m deg( v) vv Example How many edges are there in a graph with 10 vertices each of degree six? THEOREM 2 An undirected graph has an even number of vertices of odd degree. DEFINITION 4 When (u, v) is an edge of the graph G with directed edges, u is said to be adjacent to v and v is said to be adjacent from u. The vertex u is called the initial vertex of (u, v), and v is called the terminal or end vertex of (u, v). The initial vertex and terminal vertex of a loop are the same. DEFINITION 5 In a graph with directed edges the indegree of a vertex v, denoted by deg (v), is the number of edges with v as their terminal vertex. The out-degree of v, denoted by deg+(v), is the number of edges with v as their initial vertex.

EXAMPLE Find the in-degree and out-degree of each vertex in the graph G with directed edges shown THEOREM 3 Let G = (V,E) be a graph with directed edges. Then vv deg ( v) deg ( v) E vv Complete Graphs simple graph that contains exactly one edge between each pair of distinct vertices. Cycles A cycle C n, n 3, consists of n vertices and edges Wheels We obtain a wheel W n when we add an additional vertex to a cycle C n, for n 3,and connect this new vertex to each of the n vertices in C n, by new edges. n-cubes is a graph that has vertices representing the 2 n bit strings of length n.

DEFINITION 6 A simple graph G is called bipartite if its vertex set V can be partitioned into two disjoint sets V1 and V2 such that every edge in the graph connects a vertex in V1 and a vertex in V2 (so that no edge in G connects either two vertices in V1 or two vertices in V2). When this condition holds, we call the pair (V1, V2) a bipartition of the vertex set V of G. THEOREM 4 A simple graph is bipartite if and only if it is possible to assign one of two different colors to each vertex of the graph so that no two adjacent vertices are assigned the same color. Are G and H bipartite? No. G is a bipartite while H is not. THEOREM 5 HALL S MARRIAGE THEOREM The bipartite graph G = (V,E) with bipartition(v1, V2) has a complete matching from V1 to V2 if and only if N(A) A for all subsets A of V1. DEFINITION 7 A subgraph of a graph G = (V,E) is a graph H = (W, F), where W V and F E. A subgraph H of G is a proper subgraph of G if H = G. DEFINITION 8 Let G = (V,E) be a simple graph. The subgraph induced by a subset W of the vertex set V is the graph (W, F), where the edge set F contains an edge in E if and only if both endpoints of this edge are in W.

Graph and subgraph DEFINITION 9 The union of two simple graphs G1 = (V1,E1) and G2 = (V2,E2) is the simple graph with vertex set V1 V2 and edge set E1 E2. The union of G1 and G2 is denoted by G1 G2. Graphs and their union