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.

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
SE561 Math Foundations Week 11 Graphs I
Graph Theory in CS Route Search in Online Map Services
Discrete Structures Chapter 7A Graphs Nurul Amelina Nasharuddin Multimedia Department.
Selected Topics in Data Networking Graph Representation.
Applied Discrete Mathematics Week 12: Trees
Graphs.
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.
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,
Copyright © Cengage Learning. All rights reserved. CHAPTER 10 GRAPHS AND TREES.
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.
1 Topics Intro. to Graphs (11.1) A B C D EF G. 2 Definition (p.650) A graph G = V(G) + E(G) A set of vertices (or nodes), V(G) = {v 1, v 2, …, v n } A.
Lecture 10: Graphs Graph Terminology Special Types of Graphs
© by Kenneth H. Rosen, Discrete Mathematics & its Applications, Sixth Edition, Mc Graw-Hill, 2007 Chapter 9 (Part 2): Graphs  Graph Terminology (9.2)
aka “Undirected Graphs”
9.2: Graph Terminology. Special Simple Graphs Complete GraphsK 1,… CyclesC 3,… WheelsW 3,… N-cubesQ 1,… Complete bipartiteK 2,2,…
Copyright © Zeph Grunschlag, More on Graphs.
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.
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.
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.
And before you really hate (mathematical) relations and begin to break your (social) relations, let’s switch to a new topic: Graphs Discrete Structures.
GRAPHS. Graph Graph terminology: vertex, edge, adjacent, incident, degree, cycle, path, connected component, spanning tree Types of graphs: undirected,
Discrete Structures CISC 2315 FALL 2010 Graphs & Trees.
Graphs Basic properties.
1 Graphs Terminology By: Sandeep Tuli Astt. Prof. CSE.
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.
MAT 2720 Discrete Mathematics Section 8.1 Introduction
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.
Applied Discrete Mathematics Week 13: Graphs
Chapter 9 (Part 2): Graphs
Lecture 19: CONNECTIVITY Sections
Applied Discrete Mathematics Week 13: Graphs
Special Graphs By: Sandeep Tuli Astt. Prof. CSE.
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
Graph theory Definitions Trees, cycles, directed graphs.
Taibah University College of Computer Science & Engineering Course Title: Discrete Mathematics Code: CS 103 Chapter 10 Graphs Slides are adopted from “Discrete.
Graphs Chapters 10.1 and 10.2 Based on slides by Y. Peng University of Maryland.
Chapters 8.1 and 8.2 Based on slides by Y. Peng University of Maryland
Relations (sections 7.1 – 7.5)
CS100: Discrete structures
Let us switch to a new topic:
Lecture 10: Graphs Graph Terminology Special Types of Graphs
Graphs G = (V, E) V are the vertices; E are the edges.
Graphs: An Introduction
Presentation transcript:

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 G if there is an edge {u,v} Incident, connect: if edge e = {u,v}, e is incident with vertices u & v, and e connects u and v Endpoints: vertices u & v are endpoints of edge e

3 Terms related to undirected graphs Degree of vertex in an undirected graph is the number of edges incident with it –loops count twice –degree of vertex v is denoted deg(v) Example: what are the degrees of the vertices in this graph?

4 Terms related to undirected graphs Isolated vertex (like e in previous example) has degree 0, not adjacent to any other vertex Pendant vertex (like d in previous example) - adjacent to exactly one vertex The sum of the degrees of all vertices in a graph is exactly twice the number of edges in the graph

5 Handshaking Theorem Let G=(V,E) be an undirected graph with e edges; then 2e = Note that sum of degrees of vertices is always even; this leads to the theorem: An undirected graph has an even number of vertices of odd degree

6 Terminology related to directed graphs Let G be a directed graph, with an edge e=(u,v): –u is initial vertex –v is terminal, or end vertex –u is adjacent TO v –v is adjacent FROM u –initial & terminal vertex of a loop are the same

7 Terminology related to digraphs In-degree of vertex v, denoted deg - (v), is the number of edges with v as the terminal vertex Out-degree of vertex v, denoted deg + (v), is the number of edges with v as the initial vertex A loop has one of each

8 Terminology related to digraphs The sum of in-degrees is equal to the sum of out- degrees Both are equal to the number of edges in the graph: –Let G=(V,E) be a directed graph; then The undirected graph that results from ignoring arrows in a directed graph is called the underlying undirected graph

9 Classes of simple graphs Complete graphs: complete graph on n vertices, denoted K n, is the simple graph that contains exactly one edge between each pair of distinct vertices; Examples:

10 Classes of Simple Graphs Cycle: C n, where n  3, consists of n vertices v 1, v 2, …, v n and edges {v 1, v 2 }, {v 2, v 3 }, …, {v n-1, v n } Examples:

11 Classes of Simple Graphs Wheel: a cycle with an additional vertex, which is adjacent to all other vertices; example:

12 Classes of Simple Graphs n-Cube: denoted Q n, is a graph representing the 2 n bit strings of length n: 2 vertices are adjacent if and only if the bit strings they represent differ in exactly one position. Examples:

13 Bipartite Graphs A simple graph G is called bipartite if its vertex set V can be partitioned into 2 disjoint non-empty sets V 1 and V 2 such that: –every edge connects a vertex in V 1 with a vertex in V 2 –no edge connects 2 vertices in V 1 or in V 2

14 Example: lining up 1st graders CateJohn MaryMark Mary AnnTerry Mary PatTim MarieJimmy

15 Example - cycle C6 is bipartite; can partition its vertex set into 2 distinct sets: –V 1 = {v 1, v 3, v 5 ) –V 2 = {v 2, v 4, v 6 } –with every edge connecting a vertex in V 1 with one in V 2

16 Examples Graph at left is not bipartite; to divide into 2 sets, one set must include 2 vertices and to be bipartite, those vertices must not be connected But every vertex in this graph is connected to 2 others This graph, on the other hand, is bipartite; the two sets are V 1 = {v 1, v 3, v 5 } and V 2 = {v 2, v 4, v 6 } Note that the definition doesn’t say a vertex in one set can’t connect to more than one vertex in the other - only that each in one must connect to one in the other, and no vertex in a set can connect to a vertex in the same set

17 Examples: are they bipartite?

18 Complete Bipartite Graphs Denoted K m,n is the graph that has its vertex set partitioned into 2 subsets of m vertices and n vertices There is an edge between 2 vertices if and only if one vertex is in the first subset and the other is in the second subset

19 Examples

20 Applications of Special Types of Graphs: LAN topology A star is a complete bipartite K 1,n graph: A ring is an n-cycle: A redundant network may have both a central hub and a ring, forming a wheel:

21 Subgraph Graph obtained by removing vertices and their associated edges from a larger graph; more formally: Subgraph of G=(V,E) is H=(W,F) where W  V and F  E

22 Subgraph Example

23 Can combine graphs, forming a union Let G 1 = (V 1, E 1 ) and G 2 = (V 2, E 2 ) The union, G 1  G 2 = (V 1  V 2, E 1  E 2 )

24 Section 8.2 Graph Terminology