About the Tutorial. Audience. Prerequisites. Disclaimer & Copyright. Graph Theory

Similar documents
GRAPH THEORY - FUNDAMENTALS

This is an introductory tutorial designed for beginners to help them understand the basics of Radius.

About the Tutorial. Audience. Prerequisites. Copyright & Disclaimer. Discrete Mathematics

This is a brief tutorial that explains how to make use of Sqoop in Hadoop ecosystem.

Chapter 1 Graph Theory

This tutorial also elaborates on other related methodologies like Agile, RAD and Prototyping.

Math.3336: Discrete Mathematics. Chapter 10 Graph Theory

Introduction to Graphs

(5.2) 151 Math Exercises. Graph Terminology and Special Types of Graphs. Malek Zein AL-Abidin

About the Tutorial. Audience. Prerequisites. Copyright & Disclaimer. Compiler Design

Graph and Digraph Glossary

About the Tutorial. Audience. Prerequisites. Copyright & Disclaimer DBMS

You must have a basic understanding of GNU/Linux operating system and shell scripting.

In this tutorial, we are going to learn how to use the various features available in Flexbox.

This tutorial has been prepared for beginners to help them understand the simple but effective SEO characteristics.

Excursions in Modern Mathematics Sixth Edition. Chapter 5 Euler Circuits. The Circuit Comes to Town. Peter Tannenbaum

Chapter 2 Graphs. 2.1 Definition of Graphs

CS6702 GRAPH THEORY AND APPLICATIONS QUESTION BANK

CS6702 GRAPH THEORY AND APPLICATIONS 2 MARKS QUESTIONS AND ANSWERS

Graph Theory. Connectivity, Coloring, Matching. Arjun Suresh 1. 1 GATE Overflow

This tutorial provides a basic understanding of how to generate professional reports using Pentaho Report Designer.

Outline. Introduction. Representations of Graphs Graph Traversals. Applications. Definitions and Basic Terminologies

Discrete mathematics II. - Graphs

Artificial Intelligence

So, this tutorial is divided into various chapters and describes the 5G technology, its applications, challenges, etc., in detail.

This tutorial has been prepared for beginners to help them understand the basic functionalities of Gulp.

Number Theory and Graph Theory

GRAPHS, GRAPH MODELS, GRAPH TERMINOLOGY, AND SPECIAL TYPES OF GRAPHS

Module 2: NETWORKS AND DECISION MATHEMATICS

This tutorial will help you in understanding IPv4 and its associated terminologies along with appropriate references and examples.

About the Tutorial. Audience. Prerequisites. Copyright & Disclaimer. Meteor

Graph (1A) Young Won Lim 4/19/18

About the Tutorial. Audience. Prerequisites. Disclaimer & Copyright DAX

Varying Applications (examples)

CPS 102: Discrete Mathematics. Quiz 3 Date: Wednesday November 30, Instructor: Bruce Maggs NAME: Prob # Score. Total 60

Algorithms. Graphs. Algorithms

Further Mathematics 2016 Module 2: NETWORKS AND DECISION MATHEMATICS Chapter 9 Undirected Graphs and Networks

WUCT121. Discrete Mathematics. Graphs

Chapter 11: Graphs and Trees. March 23, 2008

Brief History. Graph Theory. What is a graph? Types of graphs Directed graph: a graph that has edges with specific directions

About the Tutorial. Audience. Prerequisites. Copyright and Disclaimer. PySpark

Graph Theory. ICT Theory Excerpt from various sources by Robert Pergl

Assignment 4 Solutions of graph problems

Information Science 2

Contents. Bibliography 19. List of Symbols and Abbreviations 21. Index 22

Before proceeding with this tutorial, you should have a good understanding of the fundamental concepts of marketing.

Algorithms: Graphs. Amotz Bar-Noy. Spring 2012 CUNY. Amotz Bar-Noy (CUNY) Graphs Spring / 95

Scalable Vector Graphics commonly known as SVG is a XML based format to draw vector images. It is used to draw twodimentional vector images.

MATH 101: Introduction to Contemporary Mathematics

CS200: Graphs. Prichard Ch. 14 Rosen Ch. 10. CS200 - Graphs 1

Chapter 4 Answers. Lesson 4.1. Chapter 4 Answers 1

Basics of Graph Theory

This tutorial explains the key concepts of Web Dynpro with relevant screenshots for better understanding.

Graphs and trees come up everywhere. We can view the internet as a graph (in many ways) Web search views web pages as a graph

This tutorial will give you a quick start with Consul and make you comfortable with its various components.

CHAPTER 10 GRAPHS AND TREES. Alessandro Artale UniBZ - artale/z

K 4 C 5. Figure 4.5: Some well known family of graphs

DS UNIT 4. Matoshri College of Engineering and Research Center Nasik Department of Computer Engineering Discrete Structutre UNIT - IV

About the Tutorial. Audience. Prerequisites. Copyright & Disclaimer. Haskell Programming

Introduction to Graphs

This tutorial is designed for those who would like to understand the basics of i-mode in simple and easy steps.

Graph Theory. Part of Texas Counties.

This tutorial will show you, how to use RSpec to test your code when building applications with Ruby.

Before you start with this tutorial, you need to know basic Java programming.

Computational Discrete Mathematics

Parrot is a virtual machine designed to efficiently compile and execute bytecode for interpreted languages.

Number Theory and Graph Theory

Graph Theory: Introduction

Math 776 Graph Theory Lecture Note 1 Basic concepts

Various Graphs and Their Applications in Real World

Logic: The Big Picture. Axiomatizing Arithmetic. Tautologies and Valid Arguments. Graphs and Trees

This tutorial will guide users on how to utilize TestLodge in reporting and maintaining the testing activities.

Elements of Graph Theory

This tutorial is prepared for beginners to help them understand the basic-to-advanced concepts related to GPRS.

0.0.1 Network Analysis

Testing is the process of evaluating a system or its component(s) with the intent to find whether it satisfies the specified requirements or not.

Graph Theory S 1 I 2 I 1 S 2 I 1 I 2

Simple graph Complete graph K 7. Non- connected graph

Lecture 3: Recap. Administrivia. Graph theory: Historical Motivation. COMP9020 Lecture 4 Session 2, 2017 Graphs and Trees

UNDIRECTED GRAPH: a set of vertices and a set of undirected edges each of which is associated with a set of one or two of these vertices.

Graphs (MTAT , 6 EAP) Lectures: Mon 14-16, hall 404 Exercises: Wed 14-16, hall 402

Unit 2: Graphs and Matrices. ICPSR University of Michigan, Ann Arbor Summer 2015 Instructor: Ann McCranie

Intermediate Math Circles Wednesday, February 8, 2017 Graph Theory I

SAP Lumira is known as a visual intelligence tool that is used to visualize data and create stories to provide graphical details of the data.

γ(ɛ) (a, b) (a, d) (d, a) (a, b) (c, d) (d, d) (e, e) (e, a) (e, e) (a) Draw a picture of G.

Minimal Spanning Tree

Lecture 5: Graphs & their Representation

Section 3.4 Basic Results of Graph Theory

This tutorial is designed for software programmers who would like to learn the basics of ASP.NET Core from scratch.

Microsoft Excel is a spreadsheet tool capable of performing calculations, analyzing data and integrating information from different programs.

4. (a) Draw the Petersen graph. (b) Use Kuratowski s teorem to prove that the Petersen graph is non-planar.

Assignments are handed in on Tuesdays in even weeks. Deadlines are:

GRAPH THEORY: AN INTRODUCTION

SCHOOL OF ENGINEERING & BUILT ENVIRONMENT. Mathematics. An Introduction to Graph Theory

BIL694-Lecture 1: Introduction to Graphs

This tutorial provides a basic level understanding of the LOLCODE programming language.

Chapter 5: Euler Paths and Circuits The Mathematics of Getting Around

Fundamental Properties of Graphs

CS 311 Discrete Math for Computer Science Dr. William C. Bulko. Graphs

Graphs Definitions. Gunnar Gotshalks. GraphDefinitions 1

Transcription:

About the Tutorial This tutorial offers a brief introduction to the fundamentals of graph theory. Written in a reader-friendly style, it covers the types of graphs, their properties, trees, graph traversability, and the concepts of coverings, coloring, and matching. Audience This tutorial has been designed for students who want to learn the basics of Graph Theory. Graph Theory has a wide range of applications in engineering and hence, this tutorial will be quite useful for readers who are into Language Processing or Computer Networks, physical sciences and numerous other fields. Prerequisites Before you start with this tutorial, you need to know elementary number theory and basic set operations in Mathematics. It is mandatory to have a basic knowledge of Computer Science as well. Disclaimer & Copyright Copyright 2015 by Tutorials Point (I) Pvt. Ltd. All the content and graphics published in this e-book are the property of Tutorials Point (I) Pvt. Ltd. The user of this e-book is prohibited to reuse, retain, copy, distribute or republish any contents or a part of contents of this e-book in any manner without written consent of the publisher. We strive to update the contents of our website and tutorials as timely and as precisely as possible, however, the contents may contain inaccuracies or errors. Tutorials Point (I) Pvt. Ltd. provides no guarantee regarding the accuracy, timeliness or completeness of our website or its contents including this tutorial. If you discover any errors on our website or in this tutorial, please notify us at contact@tutorialspoint.com. i

Table of Contents About the Tutorial... i Audience... i Prerequisites... i Disclaimer & Copyright... i Table of Contents... ii GRAPH THEORY INTRODUCTION... 1 What is a Graph?... 1 Applications of Graph Theory... 1 GRAPH THEORY FUNDAMENTALS... 3 Point... 3 Line... 3 Vertex... 3 Edge... 4 Graph... 4 Loop... 5 Degree of Vertex... 6 Degree of Vertex in an Undirected Graph... 6 Degree of Vertex in a Directed Graph... 7 Pendent Vertex... 10 Isolated Vertex... 10 Adjacency... 10 Parallel Edges... 12 Multi Graph... 12 Degree Sequence of a Graph... 13 ii

GRAPH BASIC PROPERTIES... 15 Distance between Two Vertices... 15 Eccentricity of a Vertex... 16 Radius of a Connected Graph... 16 Diameter of a Graph... 17 Central Point... 17 Centre... 17 Circumference... 17 Girth... 18 Sum of Degrees of Vertices Theorem... 18 TYPES OF GRAPHS... 19 Null Graph... 19 Trivial Graph... 19 Non-Directed Graph... 20 Directed Graph... 20 Simple Graph... 21 Connected Graph... 23 Disconnected Graph... 23 Regular Graph... 24 Complete Graph... 25 Cycle Graph... 26 Wheel Graph... 27 Cyclic Graph... 28 Acyclic Graph... 28 Bipartite Graph... 28 Complete Bipartite Graph... 29 Star Graph... 30 iii

Complement of a Graph... 31 TREES... 33 Tree... 33 Forest... 34 Spanning Trees... 34 Circuit Rank... 35 Kirchoff s Theorem... 36 CONNECTIVITY... 38 Connectivity... 38 Cut Vertex... 39 Cut Edge (Bridge)... 40 Cut Set of a Graph... 42 Edge Connectivity... 43 Vertex Connectivity... 44 COVERINGS... 46 Line Covering... 46 Minimal Line Covering... 47 Minimum Line Covering... 47 Vertex Covering... 48 Minimal Vertex Covering... 48 Minimum Vertex Covering... 49 MATCHINGS... 50 Matching... 50 Maximal Matching... 51 Maximum Matching... 52 iv

Perfect Matching... 53 INDEPENDENT SETS... 55 Independent Line Set... 55 Maximal Independent Line Set... 56 Maximum Independent Line Set... 56 Independent Vertex Set... 58 Maximal Independent Vertex Set... 58 Maximum Independent Vertex Set... 60 COLORING... 62 Vertex Coloring... 62 Chromatic Number... 62 Region Coloring... 63 Applications of Graph Coloring... 64 ISOMORPHISM... 65 Isomorphic Graphs... 65 Planar Graphs... 67 Regions... 67 Homomorphism... 71 TRAVERSABILITY... 73 Euler s Path... 73 Euler s Circuit... 74 Euler s Circuit Theorem... 74 Hamiltonian Graph... 75 Hamiltonian Path... 75 EXAMPLES... 77 Example 1... 77 v

Example 2... 78 Example 3... 78 Example 4... 79 Example 5... 79 Example 6... 80 vi

1. GRAPH THEORY INTRODUCTION Graph Theory In the domain of mathematics and computer science, graph theory is the study of graphs that concerns with the relationship among edges and vertices. It is a popular subject having its applications in computer science, information technology, biosciences, mathematics, and linguistics to name a few. Without further ado, let us start with defining a graph. What is a Graph? A graph is a pictorial representation of a set of objects where some pairs of objects are connected by links. The interconnected objects are represented by points termed as vertices, and the links that connect the vertices are called edges. Formally, a graph is a pair of sets (V, E), where V is the set of vertices and E is the set of edges, connecting the pairs of vertices. Take a look at the following graph: In the above graph, V = {a, b, c, d, e} E = {ab, ac, bd, cd, de} Applications of Graph Theory Graph theory has its applications in diverse fields of engineering: Electrical Engineering The concepts of graph theory is used extensively in designing circuit connections. The types or organization of connections are named as topologies. Some examples for topologies are star, bridge, series, and parallel topologies. Computer Science Graph theory is used for the study of algorithms. For example, 1

o o o Kruskal's Algorithm Prim's Algorithm Dijkstra's Algorithm Computer Network The relationships among interconnected computers in the network follows the principles of graph theory. Science The molecular structure and chemical structure of a substance, the DNA structure of an organism, etc., are represented by graphs. Linguistics The parsing tree of a language and grammar of a language uses graphs. General Routes between the cities can be represented using graphs. Depicting hierarchical ordered information such as family tree can be used as a special type of graph called tree. 2

2. GRAPH THEORY FUNDAMENTALS Graph Theory A graph is a diagram of points and lines connected to the points. It has at least one line joining a set of two vertices with no vertex connecting itself. The concept of graphs in graph theory stands up on some basic terms such as point, line, vertex, edge, degree of vertices, properties of graphs, etc. Here, in this chapter, we will cover these fundamentals of graph theory. Point A point is a particular position in a one-dimensional, two-dimensional, or threedimensional space. For better understanding, a point can be denoted by an alphabet. It can be represented with a dot. Example a Here, the dot is a point named a. Line A Line is a connection between two points. It can be represented with a solid line. Example a b Here, a and b are the points. The link between these two points is called a line. Vertex A vertex is a point where multiple lines meet. It is also called a node. Similar to points, a vertex is also denoted by an alphabet. 3

Example a Here, the vertex is named with an alphabet a. Edge An edge is the mathematical term for a line that connects two vertices. Many edges can be formed from a single vertex. Without a vertex, an edge cannot be formed. There must be a starting vertex and an ending vertex for an edge. Example Here, a and b are the two vertices and the link between them is called an edge. Graph A graph G is defined as G = (V, E) Where V is a set of all vertices and E is a set of all edges in the graph. Example 1 In the above example, ab, ac, cd, and bd are the edges of the graph. Similarly, a, b, c, and d are the vertices of the graph. 4

Example 2 In this graph, there are four vertices a, b, c, and d, and four edges ab, ac, ad, and cd. Loop In a graph, if an edge is drawn from vertex to itself, it is called a loop. Example 1 In the above graph, V is a vertex for which it has an edge (V, V) forming a loop. Example 2 In this graph, there are two loops which are formed at vertex a, and vertex b. 5

Degree of Vertex It is the number of vertices incident with the vertex V. Notation: deg(v). In a simple graph with n number of vertices, the degree of any vertices is: deg(v) n 1 v G A vertex can form an edge with all other vertices except by itself. So the degree of a vertex will be up to the number of vertices in the graph minus 1. This 1 is for the self-vertex as it cannot form a loop by itself. If there is a loop at any of the vertices, then it is not a Simple Graph. Degree of vertex can be considered under two cases of graphs: Undirected Graph Directed Graph Degree of Vertex in an Undirected Graph An undirected graph has no directed edges. Consider the following examples. Example 1 Take a look at the following graph: 6

In the above Undirected Graph, deg(a) = 2, as there are 2 edges meeting at vertex a. deg(b) = 3, as there are 3 edges meeting at vertex b. deg(c) = 1, as there is 1 edge formed at vertex c So c is a pendent vertex. deg(d) = 2, as there are 2 edges meeting at vertex d. deg(e) = 0, as there are 0 edges formed at vertex e. So e is an isolated vertex. Example 2 Take a look at the following graph: In the above graph, deg(a) = 2, deg(b) = 2, deg(c) = 2, deg(d) = 2, and deg(e) = 0. The vertex e is an isolated vertex. The graph does not have any pendent vertex. Degree of Vertex in a Directed Graph In a directed graph, each vertex has an indegree and an outdegree. Indegree of a Graph Indegree of vertex V is the number of edges which are coming into the vertex V. Notation: deg + (V). 7

End of ebook preview If you liked what you saw Buy it from our store @ https://store.tutorialspoint.com 8