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,

Slides:



Advertisements
Similar presentations
CSE 211 Discrete Mathematics
Advertisements

Chapter 8 Topics in Graph Theory
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.
Graph-02.
Review Binary Search Trees Operations on Binary Search Tree
1 Slides based on those of Kenneth H. Rosen Slides by Sylvia Sorkin, Community College of Baltimore County - Essex Campus Graphs.
1 Section 8.2 Graph Terminology. 2 Terms related to undirected graphs Adjacent: 2 vertices u & v in an undirected graph G are adjacent (neighbors) in.
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.
Selected Topics in Data Networking Graph Representation.
Applied Discrete Mathematics Week 12: Trees
Chapter 11 Graphs and Trees This handout: Terminology of Graphs Eulerian Cycles.
KNURE, Software department, Ph , N.V. Bilous Faculty of computer sciences Software department, KNURE Discrete.
Discrete Mathematics Lecture 9 Alexander Bukharovich New York University.
GRAPHS Education is what remains after one has forgotten what one has learned in school. Albert Einstein Albert Einstein Smitha N Pai.
GRAPH Learning Outcomes Students should be able to:
Been-Chian Chien, Wei-Pang Yang, and Wen-Yang Lin 6-1 Chapter 6 Graphs Introduction to Data Structure CHAPTER 6 GRAPHS 6.1 The Graph Abstract Data Type.
GRAPHS CSE, POSTECH. Chapter 16 covers the following topics Graph terminology: vertex, edge, adjacent, incident, degree, cycle, path, connected component,
Fall 2015 COMP 2300 Discrete Structures for Computation Donghyun (David) Kim Department of Mathematics and Physics North Carolina Central University 1.
 What is a graph? What is a graph?  Directed vs. undirected graphs Directed vs. undirected graphs  Trees vs graphs Trees vs graphs  Terminology: Degree.
1 CS104 : Discrete Structures Chapter V Graph Theory.
GRAPHS THEROY. 2 –Graphs Graph basics and definitions Vertices/nodes, edges, adjacency, incidence Degree, in-degree, out-degree Subgraphs, unions, isomorphism.
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.
Graphs What are Graphs? General meaning in everyday math: A plot or chart of numerical data using a coordinate system. Technical meaning in discrete.
Chapter 1 Fundamental Concepts Introduction to Graph Theory Douglas B. West July 11, 2002.
COSC 2007 Data Structures II Chapter 14 Graphs I.
September1999 CMSC 203 / 0201 Fall 2002 Week #13 – 18/20/22 November 2002 Prof. Marie desJardins.
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.
An Introduction to Graph Theory
Graph Theory and Applications
Lecture 10: Graph-Path-Circuit
Graphs 9.1 Graphs and Graph Models أ. زينب آل كاظم 1.
Graph theory and networks. Basic definitions  A graph consists of points called vertices (or nodes) and lines called edges (or arcs). Each edge joins.
GRAPHS. Graph Graph terminology: vertex, edge, adjacent, incident, degree, cycle, path, connected component, spanning tree Types of graphs: undirected,
Basic properties Continuation
Discrete Structures CISC 2315 FALL 2010 Graphs & Trees.
Graphs Basic properties.
1 Graphs Terminology By: Sandeep Tuli Astt. Prof. CSE.
Chapter 9: Graphs.
Introduction to Graph Theory By: Arun Kumar (Asst. Professor) (Asst. Professor)
Grade 11 AP Mathematics Graph Theory Definition: A graph, G, is a set of vertices v(G) = {v 1, v 2, v 3, …, v n } and edges e(G) = {v i v j where 1 ≤ i,
Chap 7 Graph Def 1: Simple graph G=(V,E) V : nonempty set of vertices E : set of unordered pairs of distinct elements of V called edges Def 2: Multigraph.
1 GRAPH Learning Outcomes Students should be able to: Explain basic terminology of a graph Identify Euler and Hamiltonian cycle Represent graphs using.
Leda Demos By: Kelley Louie Credits: definitions from Algorithms Lectures and Discrete Mathematics with Algorithms by Albertson and Hutchinson graphics.
رياضيات متقطعة لعلوم الحاسب MATH 226. Chapter 10.
An Introduction to Graph Theory
Applied Discrete Mathematics Week 13: 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
Discrete Structures – CNS2300
Can you draw this picture without lifting up your pen/pencil?
Relations (sections 7.1 – 7.5)
CS100: Discrete structures
Let us switch to a new topic:
Graphs By Rajanikanth B.
Graphs G = (V, E) V are the vertices; E are the edges.
5/9/2019 Discrete Math II Howon Kim
Paths and Connectivity
Introduction to Graph Theory
Applied Discrete Mathematics Week 13: Graphs
GRAPHS.
Concepts of Computation
Presentation transcript:

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, so |V| = number of vertices  E: set of edges, so |E| = number of edges

Graphs A graph G (sometimes called networks) consists of two things: (i) A set V = V(G) whose elements are called vertices, points, or nodes of G. (ii) A set E = E(G) of unordered pairs of distinct vertices called edges of G. Vertices “u” and “v” are said to be adjacent if there is an edge e = {u, v} joining them. the edge “e” is said to be incident on each of its vertices u and v. 3

Example of a graph 4

Examples e3e3 v2v2 v1v1 v3v3 e2e2 e1e1 e4e4 1.Vertex set = {v 1, v 2, v 3, v 4, v 5, v 6 } 2.Edge set = {e 1, e 2, e 3, e 4, e 5, e 6, e 7 } 3.e 1, e 2, and e 3 are incident on v 1 4.v 2 and v 3 are adjacent to v 1 5.e 2,, e 3 and e 4 are adjacent to e 1 6.e 6 and e 7 are loops 7.e 2 and e 3 are parallel 8.v 5 and v 6 are adjacent to themselves 9.v 4 is an isolated vertex 10.Endpoint(e 5 ) = (v 5, v 6 ) v4v4 v6v6 v5v5 e5e5 e7e7 e6e6

Degree of vertices in a graph The degree of a vertex “v” in a graph G, written deg (v), is equal to the number of edges in G incident on a vertex “v”. Each edge is counted twice in counting the degrees of the vertices of G. Therefore, sum of the degrees of the vertices of a graph G is equal to twice the number of edges in G. A vertex is said to be even or odd according as its degree is an even or an odd number. A vertex of degree zero is called an isolated vertex. 6

Various types of graphs Connected/disconnected graphs The circled subgraphs are also known as connected components

Various types of graphs Weighted/unweighted graphs You may treat unweighted edges to be weighted edges of equal weights

Multigraphs The edges “e4” and “е5” are called multiple edges since they connect the same endpoints, and the edge “e6” is called a loop since its endpoints are the same single vertex. 9

Complete, regular and bipartite graphs A graph G is said to be complete if every vertex in G is connected to every other vertex in G. A graph G is regular of degree k or k-regular if every vertex has degree k. (I.e every vertex has equal number of edges) A graph G is said to be bipartite if its vertices V can be partitioned into two subsets M and N such that each edge of G connects a vertex of M to a vertex of N. By a complete bipartite graph, we mean that each vertex of M is connected to each vertex of N. 10

Graphs.G1 11 Graph G1 is complete, 3-regular and G2 bipartite graphs Graphs.G2

Directed(digraphs)/undirected graphs You may treat each undirected edge as two directed edges in opposite directions

Directed graphs or digraphs Directed graphs are graphs in which the edges are one-way or arrows. A directed graph G or digraph consists of two things: (i) A set V whose elements are called vertices, nodes, or points. (ii) A set of ordered pairs (u, v) of vertices called arcs or directed edges. 14

Directed graphs 15

Degrees of digraph The outdegree of a vertex v of G, written outdeg(v), is the number of arcs beginning at v, and the indegree of v, written indeg(v), is the number of arcs ending at v. each arc begins and ends at a vertex. Theorem: The sum of the outdegrees of the vertices of a digraph G equals the sum of the indegrees of the vertices, which equals the number of edges in G. 16

Adjacency matrix of digraph X Y Z W 17 XYZWXYZW No. of 1’s in A is equal to no. of edges, row total and col. Gives the indegree and outdegree, resp.

Adjacency list In graph theory, an adjacency list is the representation of all edges or arcs in a graph as a list.

Connectivity of digraphs There are three types of connectivity in a directed graph G: (i) G is strongly connected or strong if, for any pair of vertices u and v in G, there is a path from u to v; and a path from v to u, that is, each is reachable from the other. (ii) G is unilaterally connected or unilateral if, for any pair of vertices u and v in G, there is a path from u to v or a path from v to u, that is, one of them is reachable from the other. (iii) G is weakly connected or weak if there is a undirected path between any pair of vertices u and v in G. 19

Digraphs and relations The relation R is reflexive if every node has a loop. The relations R is symmetric if arcs are bidirectional. The relation R is transitive if for any sequence of consecutive arcs, there is a single arc from the first to the last node. 20

Digraphs and relations 21

Paths and connectivity A path in a graph G consists of an alternating sequence of vertices and edges of the form; v0, e1, v1, e2, v2, ………., en-1, vn-1, еn, vn where each edge ei contains the vertices vi-1 and vi (which appear on the sides of edge ei in the sequence). The path is said to be closed if v0 = vn. Otherwise, we say the path is from v0 to vn, or between v0 and vn, or connects v0 to vn. A simple path is a path in which all vertices are distinct. Length of a path is the number of edges in the path. A graph G is connected if there is a path between any two of its vertices 22

Eulerian circuit vs Hamiltonian circuit A Hamiltonian circuit in a graph G, named after the nineteenth-century Irish mathematician William Hamilton A ), is a closed path that visits every vertex in G exactly once. Eulerian circuit traverses every edge exactly once, but may repeat vertices, while a Hamiltonian circuit visits each vertex exactly once but may repeat edges. An Euler circuit for G is a circuit that contains every vertex and every edge of G. That is, an Euler circuit is a sequence of adjacent vertices and edges in G that starts and ends at the same vertex, uses every vertex of G at least once, and every edge exactly once. 23

■ A Hamilton path in a graph is a path that includes each vertex of the graph once and only once. ■ A Hamilton circuit is a circuit that includes each vertex of the graph once and only once. (At the end, of course, the circuit must return to the starting vertex.) HAMILTON PATHS & CIRCUITS

Euler Paths and Circuits Euler path- a continuous path that passes through every edge once and only once. Euler circuit- when a Euler path begins and ends at the same vertex