Introduction to Graph Theory Lecture 19: Digraphs and Networks.

Slides:



Advertisements
Similar presentations
Partial Orderings Section 8.6.
Advertisements

CS 336 March 19, 2012 Tandy Warnow.
Chapter 8 Topics in Graph Theory
Midwestern State University Department of Computer Science Dr. Ranette Halverson CMPS 2433 – CHAPTER 4 GRAPHS 1.
Introduction to Graphs
Hamiltonian Circuits and Paths
Introduction to Graph Theory Lecture 11: Eulerian and Hamiltonian Graphs.
MCA 520: Graph Theory Instructor Neelima Gupta
1 Chapter 22: Elementary Graph Algorithms IV. 2 About this lecture Review of Strongly Connected Components (SCC) in a directed graph Finding all SCC (i.e.,
Chapter 3 Relations. Section 3.1 Relations and Digraphs.
Basic Properties of Relations
1 Section 8.1 Introduction to Graphs. 2 Graph A discrete structure consisting of a set of vertices and a set of edges connecting these vertices –used.
Data Structures, Spring 2004 © L. Joskowicz 1 Data Structures – LECTURE 14 Strongly connected components Definition and motivation Algorithm Chapter 22.5.
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
The Mathematics of Scheduling Chapter 8. How long does it take to build a house? It depends on Size of the house Type of construction Number of workers.
How many non-isomorphic tournaments with 10 vertices are there? a). 5 b). 10 c). 362,880 d). Over nine million.
Data Structures, Spring 2006 © L. Joskowicz 1 Data Structures – LECTURE 14 Strongly connected components Definition and motivation Algorithm Chapter 22.5.
Applied Discrete Mathematics Week 12: Trees
Partially Ordered Sets (POSets)
Relations Chapter 9.
Chapter 9 1. Chapter Summary Relations and Their Properties n-ary Relations and Their Applications (not currently included in overheads) Representing.
Graph Algorithms Using Depth First Search Prepared by John Reif, Ph.D. Distinguished Professor of Computer Science Duke University Analysis of Algorithms.
C o n f i d e n t i a l HOME NEXT Subject Name: Data Structure Using C Unit Title: Graphs.
Introduction to Graph Theory
GRAPH Learning Outcomes Students should be able to:
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,
1 Graphs Chapters 9.1 and 9.2 University of Maryland Chapters 9.1 and 9.2 Based on slides by Y. Peng University of Maryland.
GRAPHS CSE, POSTECH. Chapter 16 covers the following topics Graph terminology: vertex, edge, adjacent, incident, degree, cycle, path, connected component,
Chapter 4 Relations and Digraphs
Chapter 9. Chapter Summary Relations and Their Properties n-ary Relations and Their Applications (not currently included in overheads) Representing Relations.
Foundations of Discrete Mathematics
Introduction to Graphs. Introduction Graphs are a generalization of trees –Nodes or verticies –Edges or arcs Two kinds of graphs –Directed –Undirected.
Chapter 1 Fundamental Concepts II Pao-Lien Lai 1.
It's a world-wide webby wonderland.. Graphs are often used to represent real-world information and real-world structures. Graph Theory was even invented.
1 CS104 : Discrete Structures Chapter V Graph Theory.
Chapter 9. Section 9.1 Binary Relations Definition: A binary relation R from a set A to a set B is a subset R ⊆ A × B. Example: Let A = { 0, 1,2 } and.
8.3 Representing Relations Directed Graphs –Vertex –Arc (directed edge) –Initial vertex –Terminal vertex.
Data Structures & Algorithms Graphs
COSC 2007 Data Structures II Chapter 14 Graphs I.
Chapter 5 Graphs  the puzzle of the seven bridge in the Königsberg,  on the Pregel.
Graphs 9.1 Graphs and Graph Models أ. زينب آل كاظم 1.
Relation. Combining Relations Because relations from A to B are subsets of A x B, two relations from A to B can be combined in any way two sets can be.
Chapter 9. Chapter Summary Relations and Their Properties n-ary Relations and Their Applications (not currently included in overheads) Representing Relations.
4. Relations and Digraphs Binary Relation Geometric and Algebraic Representation Method Properties Equivalence Relations Operations.
 Quotient graph  Definition 13: Suppose G(V,E) is a graph and R is a equivalence relation on the set V. We construct the quotient graph G R in the follow.
1 Graphs Terminology By: Sandeep Tuli Astt. Prof. CSE.
Graphs Lecture 2. Graphs (1) An undirected graph is a triple (V, E, Y), where V and E are finite sets and Y:E g{X V :| X |=2}. A directed graph or digraph.
12. Lecture WS 2012/13Bioinformatics III1 V12 Menger’s theorem Borrowing terminology from operations research consider certain primal-dual pairs of optimization.
Section 9.3. Section Summary Representing Relations using Matrices Representing Relations using Digraphs.
1 GRAPH Learning Outcomes Students should be able to: Explain basic terminology of a graph Identify Euler and Hamiltonian cycle Represent graphs using.
Relations and Graphs Relations and Graphs Sanjay Jain, Lecturer, School of Computing.
رياضيات متقطعة لعلوم الحاسب MATH 226. Chapter 10.
1 Graphs Chapters 10.1 and 10.2 University of Maryland Chapters 10.1 and 10.2 Based on slides by Y. Peng University of Maryland.
Trees.
Chapter Chapter Summary Graphs and Graph Models Graph Terminology and Special Types of Graphs Representing Graphs and Graph Isomorphism Connectivity.
Hamiltonian Circuits and Paths
Relations and Their Properties
CSE 2813 Discrete Structures
Partial Orderings CSE 2813 Discrete Structures.
Equivalence Relations
Relations Chapter 9.
Basic Concepts Graphs For more notes and topics visit:
Representing Relations
Task Tables Draw a graph for the following task table.
Hamiltonian Circuits and Paths
Let us switch to a new topic:
Graphs Chapter 7 Visit for more Learning Resources.
Graphs G = (V,E) V is the vertex set.
Presentation transcript:

Introduction to Graph Theory Lecture 19: Digraphs and Networks

Introduction Diagraph: A directed graph with directions on the edges. Digraph are used to model problems where the direction of flow of some quantity is important. Network: a digraph with limits placed on the quantity flown through a particular directed edge.

Directed Graph A digraph consists of a finite nonempty set of vertices V(D) and a set of ordered pairs of distinct vertices called arcs. For the graph below,  the arc xy goes from x to y.  x is adjacent to y  y is adjacent from x x y

More Terminology od(v): outdegree. The number of vertices that v is adjacent to. id(v): indegree. The number of vertices that v is adjacent from. Transmitter: a vertex v with id(v)=0. (only sending information, but receiving none) Receiver: a vertex v with in(v)=0.

Our first simple theorem Theorem 10.1: If D is a digraph with vertex set and having q arcs, then

Connectivity Weakly connected: A connected digraph with pairs of vertices not accessible from each other. Unilateral: for every pair of vertices (u,v) there is either a directed u-v or v-u path. Strongly connected: for every pair of vertices (u,v) there are both directed u-v and v-u paths.

Strong Orientation Assigning a direction to each edge is orienting the graph. If the resulting graph becomes strongly connected, it is strong orientation. Q1: Is there any way that we could make a graph with a bridge strongly oriented? Q2: Is strong orientation always possible if G contains no bridge?

Achieving Strong Orientation Theorem 10.2: A connected graph G has a strong orientation if and only if it contains no bridges, i.e. every edge is in some cycle. To obtain a strong orientation, we use our favorite search strategy --- DFS  Obtain a tree T using DFS  Orient each edge of T toward the vertex with higher number  Orient the remaining edges of G toward the vertex with lower number.

Example Can we convince that every vertex can reach the root?

Acyclic Dgraphs A digraph that has no directed cycle is called acyclic. Theorem 10.3: Every acyclic digraph has at least one vertex of outdegree zero and at least one vertex of indegree zero.  Proof: Consider the last vertex v in any longest path in the digraph, od(v)=0 Consider the first vertex u of a longest path P, id(v)=0 u x y v w

Applications of Acyclic Digraphs A partially ordered set (poset) is often modeled by using an acyclic diagraph. A partial order on a set is a relation that is  Reflexive (a~a, “a is related to a”)  Antisymmetric (a~b and b~a implies a=b)  Transitive (a~b and b~c implies a~c) Examples of such relations are “less equal” and “a subset of”

Example Consider the set A={2,3,5,6,10,12,15,39} with the relation | (divide)  Is the relation a partial order  If so, draw the associated acyclic digraph  What is the acyclic digraph if we omit the transitive arcs?  Do you verify theorem 103 with this poset?

Tournaments Since some of you are volleyball player, this topic might interest you. There are two kinds of tournament:  Elimination tournament --- once a team loses a game, it is out of the competition  Round-robin tournament --- each team plays each other team exactly once. We’ll focus out discussion on round-robin tournaments.

Round-Robin Tournament A tournament is a directed graph. A tournament on n vertices is an orientation of K n. An arc from u to v indicates that vertex u defeated vertex v. How many possible outcome for a tournament of 3 teams and 4 teams? What we would like to do is to rank the players from best to worst, which is a hard task  Consider a tournament of 5 teams

(cont) However, it is still possible to arrange the players on a list so that player i beats player i+1 for. The next theorem should convince us the statement. Theorem 10.4: Every Tournament contains a directed hamiltonian path.

Proof of Theorem 10.4 Proof by induction  Basic case: True for  Hypothesis: True for every tournament with n=k  We want to prove that it is true for a tournament with k+1 teams. Let’s consider the the T-v for any v. there is a h- path. Let v i be the first vertex for which, then the h-path in T is If no such v i then the h-path is