Chapter Graphs and Graph Models

Slides:



Advertisements
Similar presentations
CSE 211 Discrete Mathematics
Advertisements

Graphs CSCI 2720 Spring 2005.
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.
Midwestern State University Department of Computer Science Dr. Ranette Halverson CMPS 2433 – CHAPTER 4 GRAPHS 1.
Graph-02.
1 Slides based on those of Kenneth H. Rosen Slides by Sylvia Sorkin, Community College of Baltimore County - Essex Campus Graphs.
Discrete Mathematics and Its Applications
Graphs Chapter 20 Data Structures and Problem Solving with C++: Walls and Mirrors, Carrano and Henry, © 2013.
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.
Selected Topics in Data Networking Graph Representation.
Graphs Chapter 20 Data Structures and Problem Solving with C++: Walls and Mirrors, Frank Carrano, © 2012.
Chapter 4 Graphs.
Chapter 11 Graphs and Trees This handout: Terminology of Graphs Eulerian Cycles.
Graphs Rosen 8.1, 8.2. There Are Many Uses for Graphs! Networks Data organizations Scene graphs Geometric simplification Program structure and processes.
GRAPH Learning Outcomes Students should be able to:
Graphs Chapter 10.
© by Kenneth H. Rosen, Discrete Mathematics & its Applications, Sixth Edition, Mc Graw-Hill, 2007 Chapter 9 (Part 1): Graphs  Introduction to Graphs (9.1)
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.
© 2006 Pearson Addison-Wesley. All rights reserved14 A-1 Chapter 14 Graphs.
Copyright © Cengage Learning. All rights reserved. CHAPTER 10 GRAPHS AND TREES.
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.
9.1 Introduction to Graphs
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.
Computer Science: A Structured Programming Approach Using C Graphs A graph is a collection of nodes, called vertices, and a collection of segments,
Discrete Structures Graphs 1 (Ch. 10) Dr. Muhammad Humayoun Assistant Professor COMSATS Institute of Computer Science, Lahore.
9 Graphs. 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.
September1999 CMSC 203 / 0201 Fall 2002 Week #13 – 18/20/22 November 2002 Prof. Marie desJardins.
Topics Paths and Circuits (11.2) A B C D E F G.
An Introduction to Graph Theory
Foundations of Discrete Mathematics Chapters 9 and 10 By Dr. Dalia M. Gil, Ph.D.
CSCI 115 Chapter 8 Topics in Graph Theory. CSCI 115 §8.1 Graphs.
© by Kenneth H. Rosen, Discrete Mathematics & its Applications, Sixth Edition, Mc Graw-Hill, 2007 Chapter 9 (Part 1): Graphs  Introduction to Graphs (9.1)
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.
Homework #5 Due: October 31, 2000 Christine Kang Graph Concepts and Algorithms.
Basic properties Continuation
Graphs Basic properties.
1 Graphs Terminology By: Sandeep Tuli Astt. Prof. CSE.
Graphs. Contents Terminology Graphs as ADTs Applications of Graphs.
Chapter 9: Graphs.
Graph Concepts and Algorithms Using LEDA By Caroline Moore and Carmen Frerichs (252a-at and 252a-ao) each graph in the presentation was created using gw_basic_graph_algorithms.
Lecture 9: Graphs & Graph Models. Definition of a Graph edge vertex cycle path.
Graph Concepts Illustrated Using The Leda Library Amanuel Lemma CS252 Algorithms.
CSC 252: Algorithms October 28, 2000 Homework #5: Graphs Victoria Manfredi (252a-ad) notes: -Definitions for each of the graph concepts are those presented.
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.
Graph Terms By Susan Ott. Vertices Here are 7 vertices without any edges Each Vertex is labeled a different color and number.
Leda Demos By: Kelley Louie Credits: definitions from Algorithms Lectures and Discrete Mathematics with Algorithms by Albertson and Hutchinson graphics.
رياضيات متقطعة لعلوم الحاسب MATH 226. Chapter 10.
Subject Four Graphs Data Structures. What is a graph? A data structure that consists of a set of nodes (vertices) and a set of edges that relate the nodes.
CSC 252 Pallavi Moorthy Homework 5. 1.) Vertices, edges From cd../../handout/demo/graph_alg/gw_shortest_path.
Chapter Chapter Summary Graphs and Graph Models Graph Terminology and Special Types of Graphs Representing Graphs and Graph Isomorphism Connectivity.
Chapter 9 (Part 1): Graphs
Applied Discrete Mathematics Week 13: Graphs
Graphs: Definitions and Basic Properties
Graph Graphs and graph theory can be used to model:
Taibah University College of Computer Science & Engineering Course Title: Discrete Mathematics Code: CS 103 Chapter 10 Graphs Slides are adopted from “Discrete.
Graphs and Graph Models
CS100: Discrete structures
10.1 Graphs and Graph Models
Let us switch to a new topic:
Graphs By Rajanikanth B.
Chapter 10 Graphs and Trees
Presentation transcript:

Chapter 9 9.1 Graphs and Graph Models 9.2 Graph Terminology and Special Types of Graphs 9.3 Representing Graph and Graph Isomorphism 9.4 Connectivity 9.5 Euler and Hamilton Path 9.6 Shortest-Path Problem 9.7 Planar Graphs 9.8 Graph Coloring

9.1 Graphs and Graph Models Definition 1: 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. Remark : The set of vertices V of a graph G may be infinite. A graph with an infinite vertex set is called an infinite graph, and in comparison, a graph with a finite vertex set is called a finite graph.

Graphs and Graph Models Now suppose that a network is made up of data centers and communication links between computers. We can represent the location of each data center by a point and each communications link by a line segment, as shown in Figure 1. FIGURE 1 A Computer Network.

Graphs and Graph Models A graph in which each edge connects two different vertices and where no two edges connect the same pair of vertices is called a simple graph. Graphs that may have multiple edges connecting the same vertices are called multigraphs. To model this network we need to include edges that connect a vertex to itself. Such edges are called loops. Graphs that may include loops, and possibly multiple edges connecting the same pair of vertices, are sometime called pseudographs. So far the graphs we have introduced are undirected graphs. Their edges are also said to be undirected.

Graphs and Graph Models A computer network may contain multiple links between data centers, as shown in Figure 2. FIGURE 2 A Computer Network with Multiple Links between Data Centers.

Graphs and Graph Models Sometimes a communications link connects a data center with itself, perhaps a feedback loop for diagnostic purposes. Such a network is illustrated in Figure 3. FIGURE 3 A Computer Network with Diagnostic Links.

Graphs and Graph Models Such links are called single duplex lines. This may be the case if there is large amount of traffic sent to some data center, with little or no traffic going in the opposite direction. Such a network is shown in Figure 4. FIGURE 4 A Communications Network with One-Way Communications Links.

Graphs and Graph Models Definition 2: A directed graph (or digraph) (V, E) consists of a nonempty 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.

Graphs and Graph Models When a directed graph has no loops and has no multiple directed edges, it is called a simple directed graph. Directed graphs that may have multiple directed edges from a vertex to a second (possibly the same) vertex are to use model such networks. We called such graphs directed multigraphs. 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. A graph with both directed and undirected edges is called a mixed graph.

Graphs and Graph Models This terminology for the various types of graphs is summarized in Table 1. We will some times use the term graph as a general term to describe graphs with directed or undirected edges (or both), with or with out loops, and with or without multiple edges.

Graphs and Graph Models In some computer networks, multiple communication links between two data centers may be present, as illustrated in Figure 5. FIGURE 5 A Computer Network with Multiple One-Way Links.

Graphs and Graph Models Although the terminology used to describe graphs may vary, three key questions can help us understand the structure of a graph: Are the edges of the graph undirected or directed (or both)? If the graph is undirected, are multiple edges present that connect the same pair of vertices? If the graph is directed , are multiple directed edges present? Are loops present? Answering such questions helps us understand graphs. It is less important to remember the particular terminology used.

Graph models Example 1: Niche Overlap Graphs in Ecology Graphs are used in many models involving the interaction of different species of animals. For instance, the competition between species in an ecosystem can be modeled using a niche overlap graph. Each species is represented by a vertex. An undirected edge connects two vertices if the two species represented by these vertices compete. A niche overlap graph is a simple graph because no loops or multiple edges are needed in this model. The graph in Figure 6 models the ecosystem of a forest. We see from this graph that squirrels and raccoons compete but that crows and shrews do not.

Graph models FIGURE 6 A Niche Overlap Graph.

Graph models Example 2: Acquaintanceship Graphs We can use graph models to represent various relationships between people. FIGURE 7 An Acquaintanceship Graph.

Graph models Example 5: Round-Robin Tournaments A tournament where each team plays each other team exactly once is called a round –robin tournament. Such tournaments can be modeled using directed graphs where each team is represented by a vertex. Note that (a, b) is an edge if team a beats team b. This graph is a simple directed graph, containing no loops or multiple directed edges (because no two teams play each other more than once). Such a directed graph model is presented in Figure 9. we see that Team 1 is undefeated in this tournament, and Team 3 is winless.

Graph models FIGURE 9 A Graph Model of a Round-Robin Tournament.