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.

Slides:



Advertisements
Similar presentations
CSE 211 Discrete Mathematics
Advertisements

Lecture 5 Graph Theory. Graphs Graphs are the most useful model with computer science such as logical design, formal languages, communication network,
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
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.
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.
Discrete Structures Chapter 7A Graphs Nurul Amelina Nasharuddin Multimedia Department.
Selected Topics in Data Networking Graph Representation.
Applied Discrete Mathematics Week 12: Trees
KNURE, Software department, Ph , N.V. Bilous Faculty of computer sciences Software department, KNURE Discrete.
Let us switch to a new topic:
Graphs Rosen 8.1, 8.2. There Are Many Uses for Graphs! Networks Data organizations Scene graphs Geometric simplification Program structure and processes.
9.2 Graph Terminology and Special Types Graphs
GRAPH Learning Outcomes Students should be able to:
Intro to Graphs CSIT 402 Data Structures II. CSIT 402 Graph Introduction2 Graphs Graphs are composed of ›Nodes (vertices) Can be labeled ›Edges (arcs)
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)
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.
Module #19: Graph Theory: part I Rosen 5 th ed., chs. 8-9 내년 3 월 ? 교환 학생 프로그램 영어 점수 미리미리 준비하세요.
Fall 2015 COMP 2300 Discrete Structures for Computation Donghyun (David) Kim Department of Mathematics and Physics North Carolina Central University 1.
Lecture 10: Graphs Graph Terminology Special Types of Graphs
aka “Undirected Graphs”
9.2: Graph Terminology. Special Simple Graphs Complete GraphsK 1,… CyclesC 3,… WheelsW 3,… N-cubesQ 1,… Complete bipartiteK 2,2,…
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.
Graphs What are Graphs? General meaning in everyday math: A plot or chart of numerical data using a coordinate system. Technical meaning in discrete.
Discrete Structures Graphs 1 (Ch. 10) Dr. Muhammad Humayoun Assistant Professor COMSATS Institute of Computer Science, Lahore.
Chapter 5 Graphs  the puzzle of the seven bridge in the Königsberg,  on the Pregel.
CS 103 Discrete Structures Lecture 20
© 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.
Graphs G = (V,E) V is the vertex set. Vertices are also called nodes and points. E is the edge set. Each edge connects two different vertices. Edges are.
Basic properties Continuation
Discrete Structures CISC 2315 FALL 2010 Graphs & Trees.
Introduction to Graphs Slides by Gene Boggess
Graphs Basic properties.
1 Graphs Terminology By: Sandeep Tuli Astt. Prof. CSE.
Lecture 5.1: Graphs Basics
Chapter Graphs and Graph Models
Chapter 9: Graphs.
Graphs Rosen, Chapter 8. NOT ONE OF THESE! One of these!
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.
رياضيات متقطعة لعلوم الحاسب 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.
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
Lecture 19: CONNECTIVITY Sections
Applied Discrete Mathematics Week 13: Graphs
Graph Graphs and graph theory can be used to model:
Chapters 8.1 and 8.2 Based on slides by Y. Peng University of Maryland
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
Graphs Chapters 10.1 and 10.2 Based on slides by Y. Peng University of Maryland.
Chapter 13 (Part 1): Graphs
Chapters 8.1 and 8.2 Based on slides by Y. Peng University of Maryland
CS100: Discrete structures
10.1 Graphs and Graph Models
CC 215 Data Structures Graph Terminology
CSE 373 Data Structures Lecture 17
Let us switch to a new topic:
Graphs By Rajanikanth B.
Lecture 10: Graphs Graph Terminology Special Types of Graphs
Chapter 5 Graphs the puzzle of the seven bridge in the Königsberg,
Graph Terminology CSE 373 Data Structures.
CSE 373 Data Structures Lecture 13
Presentation transcript:

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 with it, called its endpoints. An edge is said to connect its endpoints. A graph with an infinite vertex set is called an infinite graph, and a graph with finite vertex is called finite graph. In this book, we usually consider only finite graphs.

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. San Francisco Denver Chicago Washington Detroit New York Los Angeles Model of Computer Networks

Graphs that may have multiple edges connecting the same vertices are called multigraphs. multiplicity of an edge San Francisco Denver Chicago Washington Detroit New York Los Angeles

Sometimes a communication link connects a data center to itself for diagnosis purpose. Such edges are called loops. Graphs that includes loops and possibly multiedges are called pseudographs. San Francisco Denver Chicago Washington Detroit New York Los Angeles

undirected graphs undirected edges simple directed graphs directed multigraphs (multiple directed edges, multiplicity) mixed graphs

Denver Chicago Washington Detroit New York Los Angeles Simple directed graphs

Denver Chicago Washington Detroit New York Los Angeles Directed multigraphs

Niche Overlap Graphs in Ecology Graph Models Shrew Opossum WoodpeckerMouse Owl Squirrel Hawk Raccoon Crow

Acquaintanceship Graphs A B GF E H C D I M M K L J

Influence graphs B H C D I M M K

The Hollywood graph

Round Robin Tournament B H D I M C

Call graphs The Web Graph Roadmaps

Precedence Graphs and Concurrent Processing S1S1 S4S4 S3S3 S5S5 S6S6 S2S2

9.2 Graph Terminology and Special Types of Graphs 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 of G. If e is associated with {u,v}, the edge e is called incident with the vertices u and v. The edge e is also said connect u and v. The vertices u and v are called endpoints of an edge associated with {u,v}.

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 a vertex. The degree of the vertex v is denoted by deg(v). Example: What are the degrees of the vertices in the graphs G and H displayed below. G H a a b bc c d d e e f g

Theorem: (The Handshaking Theorem) Let G = (u,v) be an undirected graph with e edges. Then Example: How many edges are there in a graph with 10 vertices each of degree six? 2e=6  10. Thus e=30

Theorem: An undirected graph has an even number of vertices of odd degree. Proof. Let V 1 and V 2 be the set of vertices of odd degree and the set of even degree. Thus, |V 1 | is even.

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 the terminal vertex of a loop are the same.

In a graph with directed edges the in-degree of a vertex v, denoted by deg - (v), is the number of edges with v as their terminal vertex. The out-degree of a vertex 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 of the following graph. ab c d e f

Theorem: Let G = (V,E) be a graph with directed edges. Then