Download Graph Theory Tutorial

Total Page:16

File Type:pdf, Size:1020Kb

Download Graph Theory Tutorial Graph Theory i Graph Theory 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. Copyright & Disclaimer Copyright 2020 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 [email protected] ii Graph Theory Table of Contents About the Tutorial ........................................................................................................................................... ii Audience .......................................................................................................................................................... ii Prerequisites .................................................................................................................................................... ii Copyright & Disclaimer .................................................................................................................................... ii Table of Contents ........................................................................................................................................... iii 1. Graph Theory — Introduction ................................................................................................................... 1 What is a Graph? ............................................................................................................................................. 1 Applications of Graph Theory .......................................................................................................................... 1 2. Graph Theory — Fundamentals ................................................................................................................ 3 Degree of Vertex ............................................................................................................................................. 5 Degree of Vertex in an Undirected Graph ....................................................................................................... 5 Degree of Vertex in a Directed Graph ............................................................................................................. 7 3. Graph Theory — Basic Properties............................................................................................................ 13 Distance between Two Vertices .................................................................................................................... 13 Eccentricity of a Vertex .................................................................................................................................. 14 Radius of a Connected Graph ........................................................................................................................ 14 Diameter of a Graph ...................................................................................................................................... 15 Central Point .................................................................................................................................................. 15 Centre ............................................................................................................................................................ 15 Circumference ............................................................................................................................................... 15 Girth ............................................................................................................................................................... 15 Sum of Degrees of Vertices Theorem ............................................................................................................ 16 4. Graph Theory ― Types of Graphs ........................................................................................................... 17 Null Graph ..................................................................................................................................................... 17 Trivial Graph .................................................................................................................................................. 17 Non-Directed Graph ...................................................................................................................................... 17 iii Graph Theory Directed Graph .............................................................................................................................................. 18 Simple Graph ................................................................................................................................................. 19 Connected Graph........................................................................................................................................... 20 Disconnected Graph ...................................................................................................................................... 20 Regular Graph ................................................................................................................................................ 21 Complete Graph ............................................................................................................................................ 22 Cycle Graph ................................................................................................................................................... 23 Wheel Graph ................................................................................................................................................. 23 Cyclic Graph ................................................................................................................................................... 24 Acyclic Graph ................................................................................................................................................. 25 Bipartite Graph .............................................................................................................................................. 25 Complete Bipartite Graph ............................................................................................................................. 26 Star Graph...................................................................................................................................................... 27 5. Graph Theory — Trees ............................................................................................................................ 29 Tree................................................................................................................................................................ 29 Forest ............................................................................................................................................................. 30 Spanning Trees .............................................................................................................................................. 30 Circuit Rank .................................................................................................................................................... 31 Kirchoff’s Theorem ........................................................................................................................................ 32 6. Graph Theory — Connectivity ................................................................................................................. 33 Connectivity ................................................................................................................................................... 33 Cut Vertex ...................................................................................................................................................... 34 Cut Edge (Bridge) ........................................................................................................................................... 35 Cut Set of a Graph ........................................................................................................................................
Recommended publications
  • On Treewidth and Graph Minors
    On Treewidth and Graph Minors Daniel John Harvey Submitted in total fulfilment of the requirements of the degree of Doctor of Philosophy February 2014 Department of Mathematics and Statistics The University of Melbourne Produced on archival quality paper ii Abstract Both treewidth and the Hadwiger number are key graph parameters in structural and al- gorithmic graph theory, especially in the theory of graph minors. For example, treewidth demarcates the two major cases of the Robertson and Seymour proof of Wagner's Con- jecture. Also, the Hadwiger number is the key measure of the structural complexity of a graph. In this thesis, we shall investigate these parameters on some interesting classes of graphs. The treewidth of a graph defines, in some sense, how \tree-like" the graph is. Treewidth is a key parameter in the algorithmic field of fixed-parameter tractability. In particular, on classes of bounded treewidth, certain NP-Hard problems can be solved in polynomial time. In structural graph theory, treewidth is of key interest due to its part in the stronger form of Robertson and Seymour's Graph Minor Structure Theorem. A key fact is that the treewidth of a graph is tied to the size of its largest grid minor. In fact, treewidth is tied to a large number of other graph structural parameters, which this thesis thoroughly investigates. In doing so, some of the tying functions between these results are improved. This thesis also determines exactly the treewidth of the line graph of a complete graph. This is a critical example in a recent paper of Marx, and improves on a recent result by Grohe and Marx.
    [Show full text]
  • Decomposition of Wheel Graphs Into Stars, Cycles and Paths
    Malaya Journal of Matematik, Vol. 9, No. 1, 456-460, 2021 https://doi.org/10.26637/MJM0901/0076 Decomposition of wheel graphs into stars, cycles and paths M. Subbulakshmi1 and I. Valliammal2* Abstract Let G = (V;E) be a finite graph with n vertices. The Wheel graph Wn is a graph with vertex set fv0;v1;v2;:::;vng and edge-set consisting of all edges of the form vivi+1 and v0vi where 1 ≤ i ≤ n, the subscripts being reduced modulo n. Wheel graph of (n + 1) vertices denoted by Wn. Decomposition of Wheel graph denoted by D(Wn). A star with 3 edges is called a claw S3. In this paper, we show that any Wheel graph can be decomposed into following ways. 8 (n − 2d)S ; d = 1;2;3;::: if n ≡ 0 (mod 6) > 3 > >[(n − 2d) − 1]S3 and P3; d = 1;2;3::: if n ≡ 1 (mod 6) > <[(n − 2d) − 1]S3 and P2; d = 1;2;3;::: if n ≡ 2 (mod 6) D(Wn) = . (n − 2d)S and C ; d = 1;2;3;::: if n ≡ 3 (mod 6) > 3 3 > >(n − 2d)S3 and P3; d = 1;2;3::: if n ≡ 4 (mod 6) > :(n − 2d)S3 and P2; d = 1;2;3;::: if n ≡ 5 (mod 6) Keywords Wheel Graph, Decomposition, claw. AMS Subject Classification 05C70. 1Department of Mathematics, G.V.N. College, Kovilpatti, Thoothukudi-628502, Tamil Nadu, India. 2Department of Mathematics, Manonmaniam Sundaranar University, Tirunelveli-627012, Tamil Nadu, India. *Corresponding author: [email protected]; [email protected] Article History: Received 01 November 2020; Accepted 30 January 2021 c 2021 MJM.
    [Show full text]
  • Symmetry and Structure of Graphs
    Symmetry and Structure of graphs by Kovács Máté Submitted to Central European University Department of Department of Mathematics and its Applications In partial fulfillment of the requirements for the degree of Master of Science Supervisor: Dr. Hegedus˝ Pál CEU eTD Collection Budapest, Hungary 2014 I, the undersigned [Kovács Máté], candidate for the degree of Master of Science at the Central European University Department of Mathematics and its Applications, declare herewith that the present thesis is exclusively my own work, based on my research and only such external information as properly credited in notes and bibliography. I declare that no unidentified and illegitimate use was made of work of others, and no part the thesis infringes on any person’s or institution’s copyright. I also declare that no part the thesis has been submitted in this form to any other institution of higher education for an academic degree. Budapest, 9 May 2014 ————————————————— Signature CEU eTD Collection c by Kovács Máté, 2014 All Rights Reserved. ii Abstract The thesis surveys results on structure and symmetry of graphs. Structure and symmetry of graphs can be handled by graph homomorphisms and graph automorphisms - the two approaches are compatible. Two graphs are called homomorphically equivalent if there is a graph homomorphism between the two graphs back and forth. Being homomorphically equivalent is an equivalence relation, and every class has a vertex minimal element called the graph core. It turns out that transitive graphs have transitive cores. The possibility of a structural result regarding transitive graphs is investigated. We speculate that almost all transitive graphs are cores.
    [Show full text]
  • Blast Domination for Mycielski's Graph of Graphs
    International Journal of Engineering and Advanced Technology (IJEAT) ISSN: 2249 – 8958, Volume-8, Issue-6S3, September 2019 Blast Domination for Mycielski’s Graph of Graphs K. Ameenal Bibi, P.Rajakumari AbstractThe hub of this article is a search on the behavior of is the minimum cardinality of a distance-2 dominating set in the Blast domination and Blast distance-2 domination for 퐺. Mycielski’s graph of some particular graphs and zero divisor graphs. Definition 2.3[7] A non-empty subset 퐷 of 푉 of a connected graph 퐺 is Key Words:Blast domination number, Blast distance-2 called a Blast dominating set, if 퐷 is aconnected dominating domination number, Mycielski’sgraph. set and the induced sub graph < 푉 − 퐷 >is triple connected. The minimum cardinality taken over all such Blast I. INTRODUCTION dominating sets is called the Blast domination number of The concept of triple connected graphs was introduced by 퐺and is denoted by tc . Paulraj Joseph et.al [9]. A graph is said to be triple c (G) connected if any three vertices lie on a path in G. In [6] the Definition2.4 authors introduced triple connected domination number of a graph. A subset D of V of a nontrivial graph G is said to A non-empty subset 퐷 of vertices in a graph 퐺 is a blast betriple connected dominating set, if D is a dominating set distance-2 dominating set if every vertex in 푉 − 퐷 is within and <D> is triple connected. The minimum cardinality taken distance-2 of atleast one vertex in 퐷.
    [Show full text]
  • Empirical Comparison of Greedy Strategies for Learning Markov Networks of Treewidth K
    Empirical Comparison of Greedy Strategies for Learning Markov Networks of Treewidth k K. Nunez, J. Chen and P. Chen G. Ding and R. F. Lax B. Marx Dept. of Computer Science Dept. of Mathematics Dept. of Experimental Statistics LSU LSU LSU Baton Rouge, LA 70803 Baton Rouge, LA 70803 Baton Rouge, LA 70803 Abstract—We recently proposed the Edgewise Greedy Algo- simply one less than the maximum of the orders of the rithm (EGA) for learning a decomposable Markov network of maximal cliques [5], a treewidth k DMN approximation to treewidth k approximating a given joint probability distribution a joint probability distribution of n random variables offers of n discrete random variables. The main ingredient of our algorithm is the stepwise forward selection algorithm (FSA) due computational benefits as the approximation uses products of to Deshpande, Garofalakis, and Jordan. EGA is an efficient alter- marginal distributions each involving at most k + 1 of the native to the algorithm (HGA) by Malvestuto, which constructs random variables. a model of treewidth k by selecting hyperedges of order k +1. In The treewidth k DNM learning problem deals with a given this paper, we present results of empirical studies that compare empirical distribution P ∗ (which could be given in the form HGA, EGA and FSA-K which is a straightforward application of FSA, in terms of approximation accuracy (measured by of a distribution table or in the form of a set of training data), KL-divergence) and computational time. Our experiments show and the objective is to find a DNM (i.e., a chordal graph) that (1) on the average, all three algorithms produce similar G of treewidth k which defines a probability distribution Pµ approximation accuracy; (2) EGA produces comparable or better that ”best” approximates P ∗ according to some criterion.
    [Show full text]
  • A New Approach to Number of Spanning Trees of Wheel Graph Wn in Terms of Number of Spanning Trees of Fan Graph Fn
    [ VOLUME 5 I ISSUE 4 I OCT.– DEC. 2018] E ISSN 2348 –1269, PRINT ISSN 2349-5138 A New Approach to Number of Spanning Trees of Wheel Graph Wn in Terms of Number of Spanning Trees of Fan Graph Fn Nihar Ranjan Panda* & Purna Chandra Biswal** *Research Scholar, P. G. Dept. of Mathematics, Ravenshaw University, Cuttack, Odisha. **Department of Mathematics, Parala Maharaja Engineering College, Berhampur, Odisha-761003, India. Received: July 19, 2018 Accepted: August 29, 2018 ABSTRACT An exclusive expression τ(Wn) = 3τ(Fn)−2τ(Fn−1)−2 for determining the number of spanning trees of wheel graph Wn is derived using a new approach by defining an onto mapping from the set of all spanning trees of Wn+1 to the set of all spanning trees of Wn. Keywords: Spanning Tree, Wheel, Fan 1. Introduction A graph consists of a non-empty vertex set V (G) of n vertices together with a prescribed edge set E(G) of r unordered pairs of distinct vertices of V(G). A graph G is called labeled graph if all the vertices have certain label, and a tree is a connected acyclic graph according to Biggs [1]. All the graphs in this paper are finite, undirected, and simple connected. For a graph G = (V(G), E(G)), a spanning tree in G is a tree which has the same vertex set as G has. The number of spanning trees in a graph G, denoted by τ(G), is an important invariant of the graph. It is also an important measure of reliability of a network.
    [Show full text]
  • Coverings of Cubic Graphs and 3-Edge Colorability
    Discussiones Mathematicae Graph Theory 41 (2021) 311–334 doi:10.7151/dmgt.2194 COVERINGS OF CUBIC GRAPHS AND 3-EDGE COLORABILITY Leonid Plachta AGH University of Science and Technology Krak´ow, Poland e-mail: [email protected] Abstract Let h: G˜ → G be a finite covering of 2-connected cubic (multi)graphs where G is 3-edge uncolorable. In this paper, we describe conditions under which G˜ is 3-edge uncolorable. As particular cases, we have constructed regular and irregular 5-fold coverings f : G˜ → G of uncolorable cyclically 4-edge connected cubic graphs and an irregular 5-fold covering g : H˜ → H of uncolorable cyclically 6-edge connected cubic graphs. In [13], Steffen introduced the resistance of a subcubic graph, a char- acteristic that measures how far is this graph from being 3-edge colorable. In this paper, we also study the relation between the resistance of the base cubic graph and the covering cubic graph. Keywords: uncolorable cubic graph, covering of graphs, voltage permuta- tion graph, resistance, nowhere-zero 4-flow. 2010 Mathematics Subject Classification: 05C15, 05C10. 1. Introduction 1.1. Motivation and statement of results We will consider proper edge colorings of G. Let ∆(G) be the maximum degree of vertices in a graph G. Denote by χ′(G) the minimum number of colors needed for (proper) edge coloring of G and call it the chromatic index of G. Recall that according to Vizing’s theorem (see [14]), either χ′(G) = ∆(G), or χ′(G) = ∆(G)+1. In this paper, we shall consider only subcubic graphs i.e., graphs G such that ∆(G) ≤ 3.
    [Show full text]
  • Vertex Deletion Problems on Chordal Graphs∗†
    Vertex Deletion Problems on Chordal Graphs∗† Yixin Cao1, Yuping Ke2, Yota Otachi3, and Jie You4 1 Department of Computing, Hong Kong Polytechnic University, Hong Kong, China [email protected] 2 Department of Computing, Hong Kong Polytechnic University, Hong Kong, China [email protected] 3 Faculty of Advanced Science and Technology, Kumamoto University, Kumamoto, Japan [email protected] 4 School of Information Science and Engineering, Central South University and Department of Computing, Hong Kong Polytechnic University, Hong Kong, China [email protected] Abstract Containing many classic optimization problems, the family of vertex deletion problems has an important position in algorithm and complexity study. The celebrated result of Lewis and Yan- nakakis gives a complete dichotomy of their complexity. It however has nothing to say about the case when the input graph is also special. This paper initiates a systematic study of vertex deletion problems from one subclass of chordal graphs to another. We give polynomial-time algorithms or proofs of NP-completeness for most of the problems. In particular, we show that the vertex deletion problem from chordal graphs to interval graphs is NP-complete. 1998 ACM Subject Classification F.2.2 Analysis of Algorithms and Problem Complexity, G.2.2 Graph Theory Keywords and phrases vertex deletion problem, maximum subgraph, chordal graph, (unit) in- terval graph, split graph, hereditary property, NP-complete, polynomial-time algorithm Digital Object Identifier 10.4230/LIPIcs.FSTTCS.2017.22 1 Introduction Generally speaking, a vertex deletion problem asks to transform an input graph to a graph in a certain class by deleting a minimum number of vertices.
    [Show full text]
  • A Comparison of Two Approaches for Polynomial Time Algorithms
    A comparison of two approaches for polynomial time algorithms computing basic graph parameters∗† Frank Gurski‡ March 26, 2018 Abstract In this paper we compare and illustrate the algorithmic use of graphs of bounded tree- width and graphs of bounded clique-width. For this purpose we give polynomial time algorithms for computing the four basic graph parameters independence number, clique number, chromatic number, and clique covering number on a given tree structure of graphs of bounded tree-width and graphs of bounded clique-width in polynomial time. We also present linear time algorithms for computing the latter four basic graph parameters on trees, i.e. graphs of tree-width 1, and on co-graphs, i.e. graphs of clique-width at most 2. Keywords:graph algorithms, graph parameters, clique-width, NLC-width, tree-width 1 Introduction A graph parameter is a mapping that associates every graph with a positive integer. Well known graph parameters are independence number, dominating number, and chromatic num- ber. In general the computation of such parameters for some given graph is NP-hard. In this work we give fixed-parameter tractable (fpt) algorithms for computing basic graph parameters restricted to graph classes of bounded tree-width and graph classes of bounded clique-width. The tree-width of graphs has been defined in 1976 by Halin [Hal76] and independently in arXiv:0806.4073v1 [cs.DS] 25 Jun 2008 1986 by Robertson and Seymour [RS86] by the existence of a tree decomposition. Intuitively, the tree-width of some graph G measures how far G differs from a tree. Two more powerful and more recent graph parameters are clique-width1 and NLC-width2 both defined in 1994, by Courcelle and Olariu [CO00] and by Wanke [Wan94], respectively.
    [Show full text]
  • Determination and Testing the Domination Numbers of Tadpole Graph, Book Graph and Stacked Book Graph Using MATLAB Ayhan A
    College of Basic Education Researchers Journal Vol. 10, No. 1 Determination and Testing the Domination Numbers of Tadpole Graph, Book Graph and Stacked Book Graph Using MATLAB Ayhan A. khalil Omar A.Khalil Technical College of Mosul -Foundation of Technical Education Received: 11/4/2010 ; Accepted: 24/6/2010 Abstract: A set is said to be dominating set of G if for every there exists a vertex such that . The minimum cardinality of vertices among dominating set of G is called the domination number of G denoted by . We investigate the domination number of Tadpole graph, Book graph and Stacked Book graph. Also we test our theoretical results in computer by introducing a matlab procedure to find the domination number , dominating set S and draw this graph that illustrates the vertices of domination this graphs. It is proved that: . Keywords: Dominating set, Domination number, Tadpole graph, Book graph, stacked graph. إﯾﺟﺎد واﺧﺗﺑﺎر اﻟﻌدد اﻟﻣﮭﯾﻣن(اﻟﻣﺳﯾطر)Domination number ﻟﻠﺑﯾﺎﻧﺎت ﺗﺎدﺑول (Tadpole graph)، ﺑﯾﺎن ﺑوك (Book graph) وﺑﯾﺎن ﺳﺗﺎﻛﯾت ﺑوك (Stacked Book graph) ﺑﺎﺳﺗﻌﻣﺎل اﻟﻣﺎﺗﻼب أﯾﮭﺎن اﺣﻣد ﺧﻠﯾل ﻋﻣر اﺣﻣد ﺧﻠﯾل اﻟﻛﻠﯾﺔ اﻟﺗﻘﻧﯾﺔ-ﻣوﺻل- ھﯾﺋﺔ اﻟﺗﻌﻠﯾم اﻟﺗﻘﻧﻲ ﻣﻠﺧص اﻟﺑﺣث : ﯾﻘﺎل ﻷﯾﺔ ﻣﺟﻣوﻋﺔ ﺟزﺋﯾﺔ S ﻣن ﻣﺟﻣوﻋﺔ اﻟرؤوس V ﻓﻲ ﺑﯾﺎن G ﺑﺄﻧﻬﺎ ﻣﺟﻣوﻋﺔ ﻣﻬﯾﻣﻧﺔ Dominating set إذا ﻛﺎن ﻟﻛل أرس v ﻓﻲ اﻟﻣﺟﻣوﻋﺔ V-S ﯾوﺟد أرس u ﻓﻲS ﺑﺣﯾث uv ﺿﻣن 491 Ayhan A. & Omar A. ﺣﺎﻓﺎت اﻟﺑﯾﺎن،. وﯾﻌرف اﻟﻌدد اﻟﻣﻬﯾﻣن Domination number ﺑﺄﻧﻪ أﺻﻐر ﻣﺟﻣوﻋﺔ أﺳﺎﺳﯾﺔ ﻣﻬﯾﻣﻧﺔ Domination. ﻓﻲ ﻫذا اﻟﺑﺣث ﺳوف ﻧدرس اﻟﻌدد اﻟﻣﻬﯾﻣن Domination number ﻟﺑﯾﺎن ﺗﺎدﺑول (Tadpole graph) ، ﺑﯾﺎن ﺑوك (Book graph) وﺑﯾﺎن ﺳﺗﺎﻛﯾت ﺑوك ( Stacked Book graph).
    [Show full text]
  • On Graph Crossing Number and Edge Planarization∗
    On Graph Crossing Number and Edge Planarization∗ Julia Chuzhoyy Yury Makarychevz Anastasios Sidiropoulosx Abstract Given an n-vertex graph G, a drawing of G in the plane is a mapping of its vertices into points of the plane, and its edges into continuous curves, connecting the images of their endpoints. A crossing in such a drawing is a point where two such curves intersect. In the Minimum Crossing Number problem, the goal is to find a drawing of G with minimum number of crossings. The value of the optimal solution, denoted by OPT, is called the graph's crossing number. This is a very basic problem in topological graph theory, that has received a significant amount of attention, but is still poorly understood algorithmically. The best currently known efficient algorithm produces drawings with O(log2 n) · (n + OPT) crossings on bounded-degree graphs, while only a constant factor hardness of approximation is known. A closely related problem is Minimum Planarization, in which the goal is to remove a minimum-cardinality subset of edges from G, such that the remaining graph is planar. Our main technical result establishes the following connection between the two problems: if we are given a solution of cost k to the Minimum Planarization problem on graph G, then we can efficiently find a drawing of G with at most poly(d) · k · (k + OPT) crossings, where d is the maximum degree in G. This result implies an O(n · poly(d) · log3=2 n)-approximation for Minimum Crossing Number, as well as improved algorithms for special cases of the problem, such as, for example, k-apex and bounded-genus graphs.
    [Show full text]
  • Applications of the Quantum Algorithm for St-Connectivity
    Applications of the quantum algorithm for st-connectivity KAI DELORENZO1 , SHELBY KIMMEL1 , AND R. TEAL WITTER1 1Middlebury College, Computer Science Department, Middlebury, VT Abstract We present quantum algorithms for various problems related to graph connectivity. We give simple and query-optimal algorithms for cycle detection and odd-length cycle detection (bipartiteness) using a reduction to st-connectivity. Furthermore, we show that our algorithm for cycle detection has improved performance under the promise of large circuit rank or a small number of edges. We also provide algo- rithms for detecting even-length cycles and for estimating the circuit rank of a graph. All of our algorithms have logarithmic space complexity. 1 Introduction Quantum query algorithms are remarkably described by span programs [15, 16], a linear algebraic object originally created to study classical logspace complexity [12]. However, finding optimal span program algorithms can be challenging; while they can be obtained using a semidefinite program, the size of the program grows exponentially with the size of the input to the algorithm. Moreover, span programs are designed to characterize the query complexity of an algorithm, while in practice we also care about the time and space complexity. One of the nicest span programs is for the problem of undirected st-connectivity, in which one must decide whether two vertices s and t are connected in a given graph. It is “nice” for several reasons: It is easy to describe and understand why it is correct. • It corresponds to a quantum algorithm that uses logarithmic (in the number of vertices and edges of • the graph) space [4, 11].
    [Show full text]