An Introduction to Graph Theory

Slides:



Advertisements
Similar presentations
Chapter 8 Topics in Graph Theory
Advertisements

Chapter 9 Graphs.
Lecture 5 Graph Theory. Graphs Graphs are the most useful model with computer science such as logical design, formal languages, communication network,
22C:19 Discrete Math Graphs Fall 2010 Sukumar Ghosh.
22C:19 Discrete Math Graphs Fall 2014 Sukumar Ghosh.
Midwestern State University Department of Computer Science Dr. Ranette Halverson CMPS 2433 – CHAPTER 4 GRAPHS 1.
Graph-02.
13 May 2009Instructor: Tasneem Darwish1 University of Palestine Faculty of Applied Engineering and Urban Planning Software Engineering Department Introduction.
1 Slides based on those of Kenneth H. Rosen Slides by Sylvia Sorkin, Community College of Baltimore County - Essex Campus Graphs.
 Graph Graph  Types of Graphs Types of Graphs  Data Structures to Store Graphs Data Structures to Store Graphs  Graph Definitions Graph Definitions.
Computational Geometry Seminar Lecture 1
Introduction to Graphs
Discrete Structures Chapter 7A Graphs Nurul Amelina Nasharuddin Multimedia Department.
CTIS 154 Discrete Mathematics II1 8.2 Paths and Cycles Kadir A. Peker.
W. D. Grover TRLabs & University of Alberta © Wayne D. Grover 2002, 2003 Graph theory and routing (initial background) E E Lecture 4.
Drawing of G. Planar Embedding of G Proposition Proof. 1. Consider a drawing of K 5 or K 3,3 in the plane. Let C be a spanning cycle. 2. If the.
Problem: Induced Planar Graphs Tim Hayes Mentor: Dr. Fiorini.
Chapter 4 Graphs.
Discrete Mathematics Lecture 9 Alexander Bukharovich New York University.
22C:19 Discrete Math Graphs Spring 2014 Sukumar Ghosh.
9.2 Graph Terminology and Special Types Graphs
GRAPH Learning Outcomes Students should be able to:
Introduction to Network Theory: Basic Concepts
Graphs Chapter 10.
Graph Theoretic Concepts. What is a graph? A set of vertices (or nodes) linked by edges Mathematically, we often write G = (V,E)  V: set of vertices,
Fall 2015 COMP 2300 Discrete Structures for Computation Donghyun (David) Kim Department of Mathematics and Physics North Carolina Central University 1.
CSE, IIT KGP Graph Theory: Introduction Pallab Dasgupta Dept. of CSE, IIT
© by Kenneth H. Rosen, Discrete Mathematics & its Applications, Sixth Edition, Mc Graw-Hill, 2007 Chapter 9 (Part 2): Graphs  Graph Terminology (9.2)
Chapter 6 Graph Theory R. Johnsonbaugh Discrete Mathematics 5 th edition, 2001.
1 CS104 : Discrete Structures Chapter V Graph Theory.
Indian Institute of Technology Kharagpur PALLAB DASGUPTA Graph Theory: Introduction Pallab Dasgupta, Professor, Dept. of Computer Sc. and Engineering,
Graphs.  Definition A simple graph G= (V, E) consists of vertices, V, a nonempty set of vertices, and E, a set of unordered pairs of distinct elements.
Week 11 - Monday.  What did we talk about last time?  Binomial theorem and Pascal's triangle  Conditional probability  Bayes’ theorem.
Basic Notions on Graphs. The House-and-Utilities Problem.
Chapter 1 Fundamental Concepts Introduction to Graph Theory Douglas B. West July 11, 2002.
Agenda Review: –Planar Graphs Lecture Content:  Concepts of Trees  Spanning Trees  Binary Trees Exercise.
Many structures involving real world situations can be conveniently represented on a paper by means of a diagram consisting of a set of points together.
1 12/2/2015 MATH 224 – Discrete Mathematics Formally a graph is just a collection of unordered or ordered pairs, where for example, if {a,b} G if a, b.
Chapter 5 Graphs  the puzzle of the seven bridge in the Königsberg,  on the Pregel.
1 Graphs Theory UNIT IV. 2Contents  Basic terminology,  Multi graphs and weighted graphs  Paths and circuits  Shortest path in weighted graph  Hamiltonian.
Graph Theory and Applications
CSCI 115 Chapter 8 Topics in Graph Theory. CSCI 115 §8.1 Graphs.
Introduction to Graph Theory
Graph theory and networks. Basic definitions  A graph consists of points called vertices (or nodes) and lines called edges (or arcs). Each edge joins.
Basic properties Continuation
Graphs Basic properties.
Graph Theory Unit: 4.
CSE, IIT KGP Graph Theory: Introduction Pallab Dasgupta Dept. of CSE, IIT
Chapter 9: Graphs.
Introduction to Graph Theory By: Arun Kumar (Asst. Professor) (Asst. Professor)
Indian Institute of Technology Kharagpur PALLAB DASGUPTA Graph Theory: Planarity Pallab Dasgupta, Professor, Dept. of Computer Sc. and Engineering, IIT.
Graph Theory Graph Theory - History Leonhard Euler's paper on “Seven Bridges of Königsberg”, published in 1736.
Chapter 7 Planar Graphs 大葉大學 資訊工程系 黃鈴玲  7.2 Planar Embeddings  7.3 Euler’s Formula and Consequences  7.4 Characterization of Planar Graphs.
1 GRAPH Learning Outcomes Students should be able to: Explain basic terminology of a graph Identify Euler and Hamiltonian cycle Represent graphs using.
Fundamental Graph Theory (Lecture 1) Lectured by Hung-Lin Fu 傅 恆 霖 Department of Applied Mathematics National Chiao Tung University.
Chapter Chapter Summary Graphs and Graph Models Graph Terminology and Special Types of Graphs Representing Graphs and Graph Isomorphism Connectivity.
An Introduction to Graph Theory
Chapter 9 (Part 2): Graphs
Graphs Hubert Chan (Chapter 9) [O1 Abstract Concepts]
Grade 11 AP Mathematics Graph Theory
Chapter 5 Fundamental Concept
Graph theory Definitions Trees, cycles, directed graphs.
Agenda Lecture Content: Introduction to Graph Path and Cycle
Taibah University College of Computer Science & Engineering Course Title: Discrete Mathematics Code: CS 103 Chapter 10 Graphs Slides are adopted from “Discrete.
Graphs G = (V, E) V are the vertices; E are the edges.
Planarity.
N(S) ={vV|uS,{u,v}E(G)}
5/9/2019 Discrete Math II Howon Kim
Introduction to Graph Theory
Agenda Review Lecture Content: Shortest Path Algorithm
Presentation transcript:

An Introduction to Graph Theory BY DR. DALVINDER SINGH GOVT. COLLEGE ROPAR

INTRODUCTION What is a graph G? It is a pair G = (V, E), where V = V(G) = set of vertices E = E(G) = set of edges Example: V = {s, u, v, w, x, y, z} E = {(x,s), (x,v)1, (x,v)2, (x,u), (v,w), (s,v), (s,u), (s,w), (s,y), (w,y), (u,y), (u,z),(y,z)}

Directed graphs (digraphs) G is a directed graph or digraph if each edge has been associated with an ordered pair of vertices, i.e. each edge has a direction

UNDIRECTED GRAPH Edges have no direction. If an edge connects vertices 1 and 2, either convention can be used: No duplication: only one of (1, 2) or (2, 1) is allowed in E. Full duplication: both (1, 2) and (2, 1) should be in E.

Edges An edge may be labeled by a pair of vertices, for instance e = (v,w). e is said to be incident on v and w. Isolated vertex = a vertex without incident edges.

Special edges Parallel edges Loops Two or more edges joining a pair of vertices in the example, a and b are joined by two parallel edges Loops An edge that starts and ends at the same vertex In the example, vertex d has a loop

Special graphs Simple graph Weighted graph A graph without loops or parallel edges. Weighted graph A graph where each edge is assigned a numerical label or “weight”.

Complete graph K n Let n > 3 The complete graph Kn is the graph with n vertices and every pair of vertices is joined by an edge. The figure represents K5 The degree of complete graph is n-1

FINITE AND INFINITE GRAPH A graph G = ( V, E ) is called a finite graph if the vertex Set V is finite set. A graph G = ( V, E ) is called an infinite graph if the vertex Set V is an infinite set.

DEGREE OF THE VERTEX The degree of a vertex v, denoted by (v), is the number of edges incident on v Example: (a) = 4, (b) = 3, (c) = 4, (d) = 6, (e) = 4, (f) = 4, (g) = 3.

In degree and out degree

PENDENT VERTEX A vertex whose degree in a graph is 1 is called the pendent vertex. a b ____________c The vertices a and c are pendent vertex because their degree is 1

DEFINATION A Regular graph is a graph in which each vertex has the same degree K- Regular graph is a graph in which each vertex has the same degree equal to k

for example

Sum of the degrees of a graph Theorem : If G is a graph with m edges and n vertices v1, v2,…, vn, then n  (vi) = 2m i = 1 In particular, the sum of the degrees of all the vertices of a graph is even.

Isomorphic graphs G1 and G2 are isomorphic if there exist one-to-one onto functions f : V(G1) → V(G2) and g : E(G1) → E(G2) such that an edge e is adjacent to vertices v, w in G1 if and only if g(e) is adjacent to f(v) and f(w) in G2

Isomorphic Graphs In other words ,two graphs which are isomorphic will have Same number of vertices Same number of edges An equal number of vertices with given degrees

Homeomorphic graphs Two graphs G and G’ are said to be homeomorphic if G’ is obtained from G by a sequence of series reductions. By convention, G is said to be obtainable from itself by a series reduction, i.e. G is homeomorphic to itself. Define a relation R on graphs: GRG’ if G and G’ are homeomorphic. R is an equivalence relation on the set of all graphs.

SUB GRAPH Let G and H be two graphs with vertex sets V(H),V(G) and edge sets E(H) and E(G) respectively such that V(H) is contained in V(G) and E(H) is contained in E(G) , then we call H as a Subgraph of G ( or G as a supergraph of H )

EXAMPLE

G-V GRAPH G-V is a subgraph of G obtained by deleting the vertex V from the vertex set V(G) and deleting all the edges in E(G)which are incident on V REMARK: Every graph is its own subgraph The null graph obtained from G by deleting all the edges of G is a subgraph of G

Walks, Paths, and Cycles

Length of Walk

PATH , CYCLE A path of length n is a sequence of n + 1 vertices and n consecutive edges A cycle is a path that begins and ends at the same vertex

CONNECTED,DISCONNECTED GRAPHS AND COMPONENT

EXAMPLES

Euler graphs An Euler cycle in a graph G is a simple cycle that passes through every edge of G only once. A graph G is an Euler graph if it has an Euler cycle. G is an Euler graph if and only if G is connected and all its vertices have even degree.

Hamiltonian cycles Traveling salesperson problem To visit every vertex of a graph G only once by a simple cycle. Such a cycle is called a Hamiltonian cycle. If a connected graph G has a Hamiltonian cycle, G is called a Hamiltonian graph.

Bipartite graphs A bipartite graph G is a graph such that V(G) = V(G1)  V(G2) |V(G1)| = m, |V(G2)| = n V(G1) V(G2) =  No edges exist between any two vertices in the same subset V(Gk), k = 1,2

Complete bipartite graph Km,n A bipartite graph is the complete bipartite graph Km,n if every vertex in V(G1) is joined to a vertex in V(G2) and conversely, |V(G1)| = m |V(G2)| = n

Planar graphs A graph (or multigraph) G is called planar if G can be drawn in the plane with its edges intersecting only at vertices of G. Such a drawing of G is called an embedding of G in the plane.

Euler’s formula If G is planar graph, Then: v – e + f = 2 v = number of vertices e = number of edges f = number of faces, including the exterior face Then: v – e + f = 2

Representations of graphs Adjacency matrix Rows and columns are labeled with ordered vertices write a 1 if there is an edge between the row vertex and the column vertex and 0 if no edge exists between them

EXAMPLE

Incidence matrix Incidence matrix Label rows with vertices Label columns with edges 1 if an edge is incident to a vertex, 0 otherwise

INCIDENCE GRAPH

Edges in Series Edges in series: If v  V(G) has degree 2 and there are edges (v, v1), (v, v2) with v1  v2, we say the edges (v, v1) and (v, v2) are in series.

Series Reduction A series reduction consists of deleting the vertex v  V(G) and replacing the edges (v,v1) and (v,v2) by the edge (v1,v2) The new graph G’ has one vertex and one edge less than G and is said to be obtained from G by series reduction

Kuratowski’s theorem G is a planar graph if and only if G does not contain a subgraph homeomorphic to either K 5 or K 3,3

Isomorphism and adjacency matrices Two graphs are isomorphic if and only if after reordering the vertices their adjacency matrices are the same

THE END THANKS