Graph Overview (1A) Young Won Lim 5/9/18

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

Eulerian Cycle (2A) Young Won Lim 4/26/18

Planar Graph (7A) Young Won Lim 5/21/18

Planar Graph (7A) Young Won Lim 6/20/18

Eulerian Cycle (2A) Walk : vertices may repeat, edges may repeat (closed or open) Trail: vertices may repeat, edges cannot repeat (open)

Introduction III. Graphs. Motivations I. Introduction IV

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

Varying Applications (examples)

11.4 Bipartite Multigraphs

Chapter 1 Graph Theory

Graph Theory CS/Math231 Discrete Mathematics Spring2015

Graphs. Pseudograph: multiple edges and loops allowed

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

Minimum Spanning Tree (5A) Young Won Lim 5/11/18

Graph and Digraph Glossary

Graph Theory. Part of Texas Counties.

Elements of Graph Theory

6.2. Paths and Cycles

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

1. a graph G = (V (G), E(G)) consists of a set V (G) of vertices, and a set E(G) of edges (edges are pairs of elements of V (G))

Algorithms. Graphs. Algorithms

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

Graphs. Introduction To Graphs: Exercises. Definitions:

Lecture 5: Graphs. Rajat Mittal. IIT Kanpur

CMSC 380. Graph Terminology and Representation

Course Introduction / Review of Fundamentals of Graph Theory

Eulerian Cycle (2A) Young Won Lim 5/11/18

Computational Discrete Mathematics

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

Graph Overview (1A) Young Won Lim 5/11/18

Mathematics and Statistics, Part A: Graph Theory Problem Sheet 1, lectures 1-4

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

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

BIL694-Lecture 1: Introduction to Graphs

Eulerian Cycle (2A) Young Won Lim 5/25/18

Module 2: NETWORKS AND DECISION MATHEMATICS

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

0.0.1 Network Analysis

Discrete Mathematics and Probability Theory Fall 2013 Vazirani Note 7

Fundamental Properties of Graphs

Math 776 Graph Theory Lecture Note 1 Basic concepts

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

INTRODUCTION TO GRAPH THEORY. 1. Definitions

Graphs Definitions. Gunnar Gotshalks. GraphDefinitions 1

CS6702 GRAPH THEORY AND APPLICATIONS 2 MARKS QUESTIONS AND ANSWERS

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

Discrete Mathematics for CS Spring 2008 David Wagner Note 13. An Introduction to Graphs

Chapter 3: Paths and Cycles

An Interactive Introduction to Graph Theory

MATH 363 Final Wednesday, April 28. Final exam. You may use lemmas and theorems that were proven in class and on assignments unless stated otherwise.

Discrete Mathematics (2009 Spring) Graphs (Chapter 9, 5 hours)

Functions (4A) Young Won Lim 5/8/17

Undirected Network Summary

Math 170- Graph Theory Notes

How can we lay cable at minimum cost to make every telephone reachable from every other? What is the fastest route between two given cities?

Section 8.2 Graph Terminology. Undirected Graphs. Definition: Two vertices u, v in V are adjacent or neighbors if there is an edge e between u and v.

Chapter 14 Section 3 - Slide 1

Instant Insanity Instructor s Guide Make-it and Take-it Kit for AMTNYS 2006

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

Basics of Graph Theory

Inf 496/596 Topics in Informatics: Analysis of Social Network Data

Network Topology and Graph

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

Discrete Mathematics and Probability Theory Fall 2009 Satish Rao,David Tse Note 8

An Introduction to Graph Theory

Definition For vertices u, v V (G), the distance from u to v, denoted d(u, v), in G is the length of a shortest u, v-path. 1

Chapter 2 Graphs. 2.1 Definition of Graphs

Assignment 4 Solutions of graph problems

Functions (4A) Young Won Lim 3/16/18

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

Combinatorics Summary Sheet for Exam 1 Material 2019

Math Summer 2012

Discrete mathematics II. - Graphs

Worksheet for the Final Exam - Part I. Graphs

CHAPTER 10 GRAPHS AND TREES. Copyright Cengage Learning. All rights reserved.

Number Theory and Graph Theory

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

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

Characterizing Graphs (3) Characterizing Graphs (1) Characterizing Graphs (2) Characterizing Graphs (4)

Maximum Flows of Minimum Cost

Instructor: Paul Zeitz, University of San Francisco

The Konigsberg Bridge Problem

Introduction to Graphs

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

5 Graphs

Math.3336: Discrete Mathematics. Chapter 10 Graph Theory

Chapter 11: Graphs and Trees. March 23, 2008

Foundations of Discrete Mathematics

Section 3.4 Basic Results of Graph Theory

CS6702 GRAPH THEORY AND APPLICATIONS QUESTION BANK

Introduction to Graph Theory

Graph Theory: Introduction

CS 441 Discrete Mathematics for CS Lecture 26. Graphs. CS 441 Discrete mathematics for CS. Final exam

Key Graph Theory Theorems

Paths. Path is a sequence of edges that begins at a vertex of a graph and travels from vertex to vertex along edges of the graph.

v V Question: How many edges are there in a graph with 10 vertices each of degree 6?

Graph theory. Po-Shen Loh. June We begin by collecting some basic facts which can be proved via bare-hands techniques.

All 13,509 cities in US with a population of at least 500 Reference:

DEFINITION OF GRAPH GRAPH THEORY GRAPHS ACCORDING TO THEIR VERTICES AND EDGES EXAMPLE GRAPHS ACCORDING TO THEIR VERTICES AND EDGES

Math 778S Spectral Graph Theory Handout #2: Basic graph theory

Transcription:

Copyright (c) 2015 2018 Young W. Lim. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the section entitled "GNU Free Documentation License". Please send corrections (or suggestions) to youngwlim@hotmail.com. This document was produced by using LibreOffice and Octave.

Some class of graphs (1) Complete graph A complete graph is a graph in which each pair of vertices is joined by an edge. A complete graph contains all possible edges. Connected graph In an undirected graph, an unordered pair of vertices {x, y} is called connected if a path leads from x to y. Otherwise, the unordered pair is called disconnected. Bipartite graph A bipartite graph is a graph in which the vertex set can be partitioned into two sets, W and X, so that no two vertices in W share a common edge and no two vertices in X share a common edge. Alternatively, it is a graph with a chromatic number of 2. https://en.wikipedia.org/wiki/graph_(discrete_mathematics) 3

Complete Graphs https://en.wikipedia.org/wiki/complete_graph 4

Connected Graphs This graph becomes disconnected when the right-most node in the gray area on the left is removed This graph becomes disconnected when the dashed edge is removed. With vertex 0 this graph is disconnected, the rest of the graph is connected. https://en.wikipedia.org/wiki/connectivity_(graph_theory) 5

Bipartite Graphs Example of a bipartite graph without cycles A complete bipartite graph with m = 5 and n = 3 A graph with an odd cycle transversal of size 2: removing the two blue bottom vertices leaves a bipartite graph. https://en.wikipedia.org/wiki/bipartite_graph 6

Complete Graphs https://en.wikipedia.org/wiki/gallery_of_named_graphs 7

Complete Bipartite Graphs https://en.wikipedia.org/wiki/gallery_of_named_graphs 8

Star Graphs https://en.wikipedia.org/wiki/gallery_of_named_graphs 9

Wheel Graphs https://en.wikipedia.org/wiki/gallery_of_named_graphs 10

Some class of graphs (2) Planar graph A planar graph is a graph whose vertices and edges can be drawn in a plane such that no two of the edges intersect. Cycle graph A cycle graph or circular graph of order n 3 is a graph in which the vertices can be listed in an order v1, v2,, vn such that the edges are the {vi, vi+1} where i = 1, 2,, n 1, plus the edge {vn, v1}. Cycle graphs can be characterized as connected graphs in which the degree of all vertices is 2. If a cycle graph occurs as a subgraph of another graph, it is a cycle or circuit in that graph. Tree A tree is a connected graph with no cycles. https://en.wikipedia.org/wiki/graph_(discrete_mathematics) 11

Planar Graphs A planar graph and its dual https://en.wikipedia.org/wiki/planar_graph 12

Cycle Graphs https://en.wikipedia.org/wiki/cycle_graph https://en.wikipedia.org/wiki/gallery_of_named_graphs 13

Tree Graphs https://en.wikipedia.org/wiki/cycle_graph 14

Hypercube A hypercube can be defined by increasing the numbers of dimensions of a shape: 0 A point is a hypercube of dimension zero. 1 If one moves this point one unit length, it will sweep out a line segment, which is a unit hypercube of dimension one. 2 If one moves this line segment its length in a perpendicular direction from itself; it sweeps out a 2-dimensional square. 3 If one moves the square one unit length in the direction perpendicular to the plane it lies on, it will generate a 3-dimensional cube. 4 If one moves the cube one unit length into the fourth dimension, it generates a 4dimensional unit hypercube (a unit tesseract). Tesseract https://en.wikipedia.org/wiki/hypercube 15

Gray Code Tesseract https://en.wikipedia.org/wiki/gray_code 16

Adjacency Lists https://en.wikipedia.org/wiki/adjacency_list 17

Incidence Matrix https://en.wikipedia.org/wiki/incidence_matrix 18

Adjacency Matrix https://en.wikipedia.org/wiki/adjacency_matrix 19

Hamiltonian Path https://en.wikipedia.org/wiki/path_(graph_theory) 20

Minimum Spanning Tree https://en.wikipedia.org/wiki/minimum_spanning_tree 21

Seven Bridges of Königsberg The problem was to devise a walk through the city that would cross each of those bridges once and only once. https://en.wikipedia.org/wiki/seven_bridges_of_k%c3%b6nigsberg 22

Shortest path problem https://en.wikipedia.org/wiki/shortest_path_problem 23

Traveling salesman problem https://en.wikipedia.org/wiki/travelling_salesman_problem 24

Simple Graph A simple graph is an undirected graph without multiple edges or loops. the edges form a set (rather than a multiset) each edge is an unordered pair of distinct vertices. can define a simple graph to be a set V of vertices together with a set E of edges, F H B E are 2-element subsets of V with n vertices, the degree of every vertex is at most n 1 E C D A G I J K https://en.wikipedia.org/wiki/travelling_salesman_problem 25

Multi-Graph A multigraph, as opposed to a simple graph, is an undirected graph in which multiple edges (and sometimes loops) are allowed. A B B A C C D A D C D E E B E F F G H https://en.wikipedia.org/wiki/travelling_salesman_problem 26

Multiple Edges multiple edges parallel edges Multi-edges are two or more edges that are incident to the same two vertices A simple graph has no multiple edges. https://en.wikipedia.org/wiki/travelling_salesman_problem 27

Loop a loop a self-loop a buckle is an edge that connects a vertex to itself. A simple graph contains no loops. https://en.wikipedia.org/wiki/travelling_salesman_problem 28

Walks For a graph G= (V, E), a walk is defined as a sequence of alternating vertices and edges such as v 0, e1, v 1, e 2,, e k, v k where each edge e i = {v i 1, v i } The length of this walk is k e1 v0 e2 v1 e3 v2 v3 ek vk e i =e j for some i, j Edges are allowed to be repeated A B C ABCDE ABCDCBE E D http://mathonline.wikidot.com/walks-trails-paths-cycles-and-circuits 29

Open / Closed Walks A walk is considered to be closed if the starting vertex is the same as the ending vertex. Otherwise open e1 v0 e2 v1 A e3 v2 v3 ek vk = v0 B ABCDA C ABCDE ABCDCBE E D http://mathonline.wikidot.com/walks-trails-paths-cycles-and-circuits 30

Open / Closed Walks A walk is considered to be closed if the starting vertex is the same as the ending vertex. Otherwise open e1 v0 e2 v1 A closed walk e3 v2 v3 ek vk = v0 B ABCDA C open walk ABCDE open walk ABCDCBE E D http://mathonline.wikidot.com/walks-trails-paths-cycles-and-circuits 31

Trails A trail is defined as a walk with no repeated edges. e i e j for all i, j e1 v0 e2 v1 A closed trail closed walk e3 v2 v3 ek vk B ABCDA C open trail open walk ABCDE open trail open walk ABCDCBE E D http://mathonline.wikidot.com/walks-trails-paths-cycles-and-circuits 32

Paths A path is defined as a open trail with no repeated vertices. e i e j for all i, j v i v j for all i, j e1 v0 e2 v1 A path closed trail closed walk e3 v2 v3 ek vk v0 B ABCDA C path open trail open walk ABCDE path open trail open walk ABCDCBE path open trail open walk BEDAB C E D http://mathonline.wikidot.com/walks-trails-paths-cycles-and-circuits 33

Cycles A cycle is defined as a closed trail with no repeated vertices except the start/end vertex e1 v0 closed trail closed walk ABCDA cycle closed trail closed walk ABCDEBDA v i v j for all i, j e2 v1 A cycle e i e j for all i, j e3 v2 v3 ek vk = v0 B C E D http://mathonline.wikidot.com/walks-trails-paths-cycles-and-circuits 34

Circuits A circuit is defined as a closed trail with possibly repeated vertices but with no repeated edges e1 v0 e2 v1 A circuit closed trail closed walk ABCDA circuit closed trail closed walk ABCDEBDA e i e j for all i, j v i = v j for some i, j e3 v2 v3 ek vk = v0 B C E D http://mathonline.wikidot.com/walks-trails-paths-cycles-and-circuits 35

Walk, Trail, Path, Circuit, Cycle v0 vk v0 = vk open walks closed walks trails circuits path cycle vi v j vi v j ei e j ei e j 36

Walk, Trail, Path, Circuit, Cycle Vertices Edges Walk may repeat may repeat (Closed/Open) Trail may repeat cannot repeat (Open) Path cannot repeat cannot repeat (Open) Circuit may repeat cannot repeat (Closed) Cycle cannot repeat (Closed) cannot repeat https://math.stackexchange.com/questions/655589/what-is-difference-between-cycle-path-and-circuit-in-graph-theory 37

References [1] http://en.wikipedia.org/ [2]