Graphs: Definitions and Basic Properties

Slides:



Advertisements
Similar presentations
CSE 211 Discrete Mathematics
Advertisements

Chapter 8 Topics in Graph Theory
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.
Introduction to Graphs
Discrete Structures Chapter 7B Graphs Nurul Amelina Nasharuddin Multimedia Department.
Discrete Structures Chapter 7A Graphs Nurul Amelina Nasharuddin Multimedia Department.
CTIS 154 Discrete Mathematics II1 8.2 Paths and Cycles Kadir A. Peker.
Chapter 11 Graphs and Trees This handout: Terminology of Graphs Eulerian Cycles.
Graphs and Trees This handout: Terminology of Graphs Applications of Graphs.
Discrete Mathematics Lecture 9 Alexander Bukharovich New York University.
Chapter 15 Graph Theory © 2008 Pearson Addison-Wesley.
Copyright © Cengage Learning. All rights reserved.
GRAPH Learning Outcomes Students should be able to:
Graphs Chapter 10.
7 Graph 7.1 Even and Odd Degrees.
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,
Copyright © Cengage Learning. All rights reserved. CHAPTER 10 GRAPHS AND TREES.
(CSC 102) Lecture 29 Discrete Structures. Graphs.
Fall 2015 COMP 2300 Discrete Structures for Computation Donghyun (David) Kim Department of Mathematics and Physics North Carolina Central University 1.
Can you connect the dots as shown without taking your pen off the page or drawing the same line twice.
© 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.
1 CS104 : Discrete Structures Chapter V Graph Theory.
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.
Fall 2015 COMP 2300 Discrete Structures for Computation Donghyun (David) Kim Department of Mathematics and Physics North Carolina Central University 1.
Introduction to Graph Theory
Graphs Edge(arc) Vertices can be even or odd or undirected (two-way) Edges can be directed (one-way) This graph is connected. Degree(order) = 3 Odd vertex.
Discrete Mathematical Structures: Theory and Applications
Graph Theory. A branch of math in which graphs are used to solve a problem. It is unlike a Cartesian graph that we used throughout our younger years of.
Introduction to Graphs. This Lecture In this part we will study some basic graph theory. Graph is a useful concept to model many problems in computer.
CSCI 115 Chapter 8 Topics in Graph Theory. CSCI 115 §8.1 Graphs.
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.
Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. 5 The Mathematics of Getting Around 5.1Euler Circuit Problems 5.2What.
Basic properties Continuation
Chapter 11 - Graph CSNB 143 Discrete Mathematical Structures.
Chapter 9: Graphs.
(CSC 102) Lecture 30 Discrete Structures. Graphs.
1 GRAPH Learning Outcomes Students should be able to: Explain basic terminology of a graph Identify Euler and Hamiltonian cycle Represent graphs using.
Chapter Chapter Summary Graphs and Graph Models Graph Terminology and Special Types of Graphs Representing Graphs and Graph Isomorphism Connectivity.
An Introduction to Graph Theory
Excursions in Modern Mathematics Sixth Edition
CSNB 143 Discrete Mathematical Structures
Applied Discrete Mathematics Week 13: Graphs
Chapter 9 (Part 2): Graphs
Graph Graphs and graph theory can be used to model:
Graphs Hubert Chan (Chapter 9) [O1 Abstract Concepts]
Chapters 8.1 and 8.2 Based on slides by Y. Peng University of Maryland
Grade 11 AP Mathematics Graph Theory
Graph theory Definitions Trees, cycles, directed graphs.
Agenda Lecture Content: Introduction to Graph Path and Cycle
Discrete Structures – CNS2300
Taibah University College of Computer Science & Engineering Course Title: Discrete Mathematics Code: CS 103 Chapter 10 Graphs Slides are adopted from “Discrete.
Introduction to Graph Theory
Copyright © Cengage Learning. All rights reserved.
Advanced Algorithms Analysis and Design
Discrete Maths 9. Graphs Objective
Can you draw this picture without lifting up your pen/pencil?
Introduction to Graph Theory Euler and Hamilton Paths and Circuits
Lecture 15: Graph Theory II
Chapters 8.1 and 8.2 Based on slides by Y. Peng University of Maryland
CS100: Discrete structures
5 The Mathematics of Getting Around
Discrete Mathematics Lecture 13_14: Graph Theory and Tree
Let us switch to a new topic:
Chapter 15 Graph Theory © 2008 Pearson Addison-Wesley.
Applied Combinatorics, 4th Ed. Alan Tucker
Chapter 10 Graphs and Trees
Presentation transcript:

Graphs: Definitions and Basic Properties The formal definition of a graph follows.

Graphs: Definitions and Basic Properties The edges may be straight or curved and should either connect one vertex to another or a vertex to itself, as shown below.

Example 1 – Terminology Consider the graph at the right. Write the vertex set and the edge set, and give a table showing the edge-endpoint function. Solution: vertex set = {v1, v2, v3, v4, v5, v6} edge set = {e1, e2, e3, e4, e5, e6, e7} edge-endpoint function is Note that the isolated vertex v4 does not appear in this table.

Graphs: Definitions and Basic Properties We have discussed the directed graph of a binary relation on a set. The general definition of directed graph is similar to the definition of graph, except that one associates an ordered pair of vertices with each edge instead of a set of vertices. Thus each edge of a directed graph can be drawn as an arrow going from the first vertex to the second vertex of the ordered pair.

Graphs: Definitions and Basic Properties Note that each directed graph has an associated ordinary (undirected) graph, which is obtained by ignoring the directions of the edges.

Example 4 – Using a Graph to Represent a Network Telephone, electric power, gas pipelines, and air transport systems can all be represented by graphs, as can computer networks. Questions that arise in the design of such systems involve choosing connecting edges to minimize cost, optimize a certain type of service, and so forth.

The Concept of Degree The degree of a vertex is the number of end segments of edges that “stick out of” the vertex.

The Concept of Degree Since an edge that is a loop is counted twice, the degree of a vertex can be obtained from the drawing of a graph by counting how many end segments of edges are incident on the vertex. This is illustrated below.

Example 12 – Degree of a Vertex and Total Degree of a Graph Find the degree of each vertex of the graph G to the right. Then find the total degree of G. Solution: deg(v1) = 0 since no edge is incident on v1 (v1 is isolated). deg(v2) = 2 since both e1 and e2 are incident on v2. deg(v3) = 4 since e1 and e2 are incident on v3 and the loop e3 is also incident on v3 (and contributes 2 to the degree of v3). total degree of G = deg(v1) + deg(v2) + deg(v3) = 6

The Concept of Degree The total degree of the graph G of Example 12, which is 6, equals twice the number of edges of G, which is 3. This is true because each edge has two end segments, and each end segment is counted once toward the degree of some vertex. This result generalizes to any graph.

The Concept of Degree The following proposition is easily deduced from Corollary 10.1.2 using properties of even and odd integers.

Special Graphs One important class of graphs consists of those that do not have any loops or parallel edges. Such graphs are called simple. In a simple graph, no two edges share the same set of endpoints, so specifying two endpoints is sufficient to determine an edge.

Special Graphs Another important class of graphs consists of those that are “complete” in the sense that all pairs of vertices are connected by edges.

Example 9 – Complete Graphs on n Vertices: K1, K2, K3, K4, K5 The complete graphs K1, K2, K3, K4, and K5 can be drawn as follows:

Special Graphs

Definitions

Definitions For ease of reference, these definitions are summarized in the following table: Often a walk can be specified unambiguously by giving either a sequence of edges or a sequence of vertices.

Example 2 – Walks, Trails Paths, and Circuits

Definitions Because most of the major developments in graph theory have happened relatively recently and in a variety of different contexts, the terms used in the subject have not been standardized. For example, what this book calls a graph is sometimes called a multigraph, what this book calls a simple graph is sometimes called a graph, what this book calls a vertex is sometimes called a node, and what this book calls an edge is sometimes called an arc.

Definitions Similarly, instead of the word trail, the word path is sometimes used; instead of the word path, the words simple path are sometimes used; and instead of the words simple circuit, the word cycle is sometimes used.

Connectedness It is easy to understand the concept of connectedness on an intuitive level. Roughly speaking, a graph is connected if it is possible to travel from any vertex to any other vertex along a sequence of adjacent edges of the graph.

Connectedness The formal definition of connectedness is stated in terms of walks. If you take the negation of this definition, you will see that a graph G is not connected if, and only if, there are two vertices of G that are not connected by any walk.

Example 3 – Connected and Disconnected Graphs Which of the following graphs are connected? Connected Not connected Not connected

Euler Circuits The following definition is made in honor of Euler. Visit all edges exactly once. Vertices can be visited more than once.

Hamiltonian Circuits Visit all vertices exactly once. Each edge may be visited at most once (i.e., possibly not visited).

Trees In mathematics, a tree is a connected graph that does not contain any circuits. Mathematical trees are similar in certain ways to their botanical namesakes.

Characterizing Trees In fact, any tree that has more than one vertex has at least two vertices of degree 1.

Example 5 – Terminal and Internal Vertices Find all terminal vertices and all internal vertices in the following tree: Solution: The terminal vertices (leaves) are v0, v2, v4, v5, v7, and v8. The internal vertices are v6, v1, and v3.

Characterizing Trees Proof by mathematical induction. Proof by contradiction.