Basic properties Continuation

Slides:



Advertisements
Similar presentations
Chapter 8 Topics in Graph Theory
Advertisements

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,
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
SE561 Math Foundations Week 11 Graphs I
Introduction to Graphs
Graph Theory in CS Route Search in Online Map Services
Representing Graphs Wade Trappe. Lecture Overview Introduction Some Terminology –Paths Adjacency Matrix.
Math Foundations Week 12 Graphs (2). Agenda Paths Connectivity Euler paths Hamilton paths 2.
Copyright © Zeph Grunschlag, Paths and Connectivity Zeph Grunschlag.
Selected Topics in Data Networking Graph Representation.
Graphs.
KNURE, Software department, Ph , N.V. Bilous Faculty of computer sciences Software department, KNURE Discrete.
Graphs Rosen 8.1, 8.2. There Are Many Uses for Graphs! Networks Data organizations Scene graphs Geometric simplification Program structure and processes.
Graphs, relations and matrices
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,
Fall 2015 COMP 2300 Discrete Structures for Computation Donghyun (David) Kim Department of Mathematics and Physics North Carolina Central University 1.
© by Kenneth H. Rosen, Discrete Mathematics & its Applications, Sixth Edition, Mc Graw-Hill, 2007 Chapter 9 (Part 2): Graphs  Graph Terminology (9.2)
CSNB143 – Discrete Structure Topic 9 – Graph. Learning Outcomes Student should be able to identify graphs and its components. Students should know how.
Advanced Computer Networks: Part 1 Complex Networks, P2P Networks and Swarm Intelligence on Graphs.
1 CS104 : Discrete Structures Chapter V Graph Theory.
Based on slides by Y. Peng University of Maryland
Spring 2007Graphs1 ORD DFW SFO LAX
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.
Introduction to Graph Theory
Lecture 10: Graph-Path-Circuit
Graphs 9.1 Graphs and Graph Models أ. زينب آل كاظم 1.
 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.
Graphs Basic properties.
1 Graphs Terminology By: Sandeep Tuli Astt. Prof. CSE.
Lecture 5.1: Graphs Basics
Chapter 9: Graphs.
Lecture 5.3: Graph Isomorphism and Connectivity CS 250, Discrete Structures, Fall 2011 Nitesh Saxena *Adopted from previous lectures by Zeph Grunschlag.
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.
Chapter Chapter Summary Graphs and Graph Models Graph Terminology and Special Types of Graphs Representing Graphs and Graph Isomorphism Connectivity.
Applied Discrete Mathematics Week 14: Trees
Applied Discrete Mathematics Week 13: Graphs
Graphs: Definitions and Basic Properties
Introduction to Graphs
Lecture 19: CONNECTIVITY Sections
Copyright © Zeph Grunschlag,
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
CS 250, Discrete Structures, Fall 2015
Taibah University College of Computer Science & Engineering Course Title: Discrete Mathematics Code: CS 103 Chapter 10 Graphs Slides are adopted from “Discrete.
Introduction to Graphs
Graphs.
Can you draw this picture without lifting up your pen/pencil?
Chapters 8.1 and 8.2 Based on slides by Y. Peng University of Maryland
CS100: Discrete structures
Connectivity Section 10.4.
10.1 Graphs and Graph Models
Let us switch to a new topic:
Lecture 5.3: Graph Isomorphism and Paths
Graphs G = (V, E) V are the vertices; E are the edges.
Applied Combinatorics, 4th Ed. Alan Tucker
Paths and Connectivity
Paths and Connectivity
Applied Discrete Mathematics Week 13: Graphs
Based on slides by Y. Peng University of Maryland
Concepts of Computation
Introduction to Graphs
Presentation transcript:

Basic properties Continuation Graphs Basic properties Continuation

Multigraphs If computers are connected via internet instead of directly, there may be several routes to choose from for each connection. Depending on traffic, one route could be better than another. Makes sense to allow multiple edges:

Multigraphs e1 e2 Edge-labels distinguish between edges sharing same endpoints. e1  {1,2}, e2  {1,2}, e3  {1,3}, e4  {2,3}, e5  {2,3}, e6  {1,2} 1 2 e3 e4 e5 e6 3 4

Multigraphs A multigraph G = (V, E, f ) consists of a non-empty set V of vertices, a set E (possibly empty) of edges and a function f with domain E and codomain the set of pairs in V. L23

Pseudographs If self-loops in a multigraph are allowed, we get a pseudograph: Now edges may be associated with a single vertex, when the edge is a loop e1  {1,2}, e2  {1,2}, e3  {1,3}, e4  {2,3}, e5  {2}, e6  {2}, e7  {4} e6 e1 e2 1 2 e5 e3 e4 e7 3 4

Pseudographs A pseudograph G = (V, E, f ) consists of a non-empty set V of vertices, a set E (possibly empty) of edges and a function f whose domain is E and whose codomain the set of pairs and singletons in V. Sometimes a pseudograph and a multigraph are not differed from each other and in this case a term “multigraph” is used. A singleton is a set of cardinality 1.

Degree of a Vertex The number of edges incident with a vertex is called the degree of this vertex: deg(A) is the degree of A. A loop on a vertex A is counted twice in deg(A) deg(1)=3; deg(2)=7; deg(3)=2; deg(4)=2 e6 e1 e2 1 2 e5 e3 e4 e7 3 4

Degree of a Vertex Theorem. In a multi (pseudo) graph, the sum of degrees of the vertices equals twice the number of edges. deg(1)=3; deg(2)=7; deg(3)=2; deg(4)=2 There are 7 edges and e6 e1 e2 1 2 e5 e3 e4 e7 3 4

Multigraphs: Adjacency Matrix For an undirected multi (pseudo) graph G = (V,E ,f) define the matrix AG by: Rows, Columns –one for each element of V Value at i th row and j th column is the number of edges incident with vertices i and j.

Multigraphs: Adjacency Matrix Q: What’s the adjacency matrix? 1 2 3 4 L23

Multigraphs: Adjacency Matrix 1 2 A: Important property: AG is symmetric. 3 4 L23

Paths A path in a multi(pseudo) graph is a continuous way of getting from one vertex to another by using a sequence of edges. Could get from 1 to 3 circuitously as follows: 1-e12-e11-e33-e42-e62-e52-e43 Or simpler: 1-e12-e43 e6 e1 e2 1 2 e5 e3 e4 e7 3 4

Paths The length of a path is n (the number of edges listed). 1-e12-e11-e33-e42-e62-e52-e43 =>7 Or simpler: 1-e12-e43 =>2 4 is the path to itself with the length 0. However, there is another path 4-e74 =>1 e6 e1 e2 1 2 e5 e3 e4 e7 3 4

Paths In a path the vertices need not be distinct, and some of the edges can be the same. When there is no chance of confusion, a path can be represented by the vertices V1, V2, …, Vn+1 only or by the edges e1, e2, …, en only.

Paths – Another Definition A path of length n in a multi (pseudo) graph is a sequence of n edges e1, e2, … ,en such that each consecutive pair ei , ei+1 share a common vertex. In a simple graph, one may instead define a path of length n as a sequence of n+1 vertices v0, v1, v2, … ,vn such that each consecutive pair vi , vi+1 are adjacent. Paths of length 0 are also allowed according to this definition.

Simple Paths and Circuits A simple path contains no duplicate edges (though duplicate vertices are allowed). A circuit (or cycle ) is a path which starts and ends at the same vertex and where all the vertices (excepting the first/last one) and all the edges are distinct. Note: Simple paths need not be in simple graphs. E.g., may contain loops and therefore they may be found in multi (pseudo) graphs.

Simple Paths and Circuits Find a longest possible simple path in the following graph: e6 e1 e2 1 2 e5 e3 e4 e7 3 4 L24

Simple Paths and Circuits Solution: The path e1,e5,e6,e2,e3,e4 from 1 to 2 is a maximal simple path because simple: each of its edges appears exactly once maximal: because it contains every edge except the unreachable edge e7 e1 e6 1 e2 2 e5 e3 e4 e7 3 4

Connectivity Let G be a multi (pseudo) graph. Let U and V be vertices. U and V are connected to each other if there is a path in G which starts at U and ends at V. Graph G is said to be connected if all vertices are connected to each other. Remark : Any vertex is automatically connected to itself via the empty path. L24

Connectivity Which of the following graphs are connected? The first is disconnected (there is no path to (from) 4 from (to) other vertices), the second is connected 1 2 1 2 3 4 3

Homework Read pp. 164-169 Problems (Exercises 4.2) 1-9