Introduction to Graph Theory

Slides:



Advertisements
Similar presentations
22C:19 Discrete Math Graphs Fall 2010 Sukumar Ghosh.
Advertisements

22C:19 Discrete Math Graphs Fall 2014 Sukumar Ghosh.
Introduction to Graphs
Introduction This chapter explores graphs and their applications in computer science This chapter explores graphs and their applications in computer science.
C++ Programming: Program Design Including Data Structures, Third Edition Chapter 21: Graphs.
Introduction to Graphs
Discrete Structures Chapter 7A Graphs Nurul Amelina Nasharuddin Multimedia Department.
Problem: Induced Planar Graphs Tim Hayes Mentor: Dr. Fiorini.
Problem: Induced Planar Graphs Tim Hayes Mentor: Dr. Fiorini.
KNURE, Software department, Ph , N.V. Bilous Faculty of computer sciences Software department, KNURE Discrete.
22C:19 Discrete Math Graphs Spring 2014 Sukumar Ghosh.
CS105 Introduction to Social Network Lecture: Yang Mu UMass Boston.
9.2 Graph Terminology and Special Types Graphs
GRAPH Learning Outcomes Students should be able to:
Graphs CS /02/05 Graphs Slide 2 Copyright 2005, by the authors of these slides, and Ateneo de Manila University. All rights reserved Definition.
Introduction to Network Theory: Basic Concepts
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,
1 ELEC692 Fall 2004 Lecture 1b ELEC692 Lecture 1a Introduction to graph theory and algorithm.
CSE, IIT KGP Graph Theory: Introduction Pallab Dasgupta Dept. of CSE, IIT
It's a world-wide webby wonderland.. Graphs are often used to represent real-world information and real-world structures. Graph Theory was even invented.
Chapter 6 Graph Theory R. Johnsonbaugh Discrete Mathematics 5 th edition, 2001.
1 CS104 : Discrete Structures Chapter V Graph Theory.
Indian Institute of Technology Kharagpur PALLAB DASGUPTA Graph Theory: Introduction Pallab Dasgupta, Professor, Dept. of Computer Sc. and Engineering,
Data Structures & Algorithms Graphs
Basic Notions on Graphs. The House-and-Utilities Problem.
Chapter 1 Fundamental Concepts Introduction to Graph Theory Douglas B. West July 11, 2002.
1 12/2/2015 MATH 224 – Discrete Mathematics Formally a graph is just a collection of unordered or ordered pairs, where for example, if {a,b} G if a, b.
CSS106 Introduction to Elementary Algorithms
September1999 CMSC 203 / 0201 Fall 2002 Week #13 – 18/20/22 November 2002 Prof. Marie desJardins.
Chapter 5 Graphs  the puzzle of the seven bridge in the Königsberg,  on the Pregel.
An Introduction to Graph Theory
Graph Theory and Applications
Lecture 10: Graph-Path-Circuit
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.
Introduction to Graph Theory
Graph theory and networks. Basic definitions  A graph consists of points called vertices (or nodes) and lines called edges (or arcs). Each edge joins.
Homework #5 Due: October 31, 2000 Christine Kang Graph Concepts and Algorithms.
GRAPHS. Graph Graph terminology: vertex, edge, adjacent, incident, degree, cycle, path, connected component, spanning tree Types of graphs: undirected,
Graph Theory Unit: 4.
CSE, IIT KGP Graph Theory: Introduction Pallab Dasgupta Dept. of CSE, IIT
Introduction to Graph Theory By: Arun Kumar (Asst. Professor) (Asst. Professor)
Graph Concepts and Algorithms Using LEDA By Caroline Moore and Carmen Frerichs (252a-at and 252a-ao) each graph in the presentation was created using gw_basic_graph_algorithms.
Chapter 20: Graphs. Objectives In this chapter, you will: – Learn about graphs – Become familiar with the basic terminology of graph theory – Discover.
Graph Theory Graph Theory - History Leonhard Euler's paper on “Seven Bridges of Königsberg”, published in 1736.
Grade 11 AP Mathematics Graph Theory Definition: A graph, G, is a set of vertices v(G) = {v 1, v 2, v 3, …, v n } and edges e(G) = {v i v j where 1 ≤ i,
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.
Leda Demos By: Kelley Louie Credits: definitions from Algorithms Lectures and Discrete Mathematics with Algorithms by Albertson and Hutchinson graphics.
Fundamental Graph Theory (Lecture 1) Lectured by Hung-Lin Fu 傅 恆 霖 Department of Applied Mathematics National Chiao Tung University.
Chapter Chapter Summary Graphs and Graph Models Graph Terminology and Special Types of Graphs Representing Graphs and Graph Isomorphism Connectivity.
Graph Theory An Introduction.
Special Graphs By: Sandeep Tuli Astt. Prof. CSE.
Graphs Hubert Chan (Chapter 9) [O1 Abstract Concepts]
CSE 373, Copyright S. Tanimoto, 2001 Graphs 1 -
Grade 11 AP Mathematics Graph Theory
Chapter 5 Fundamental Concept
Graph theory Definitions Trees, cycles, directed graphs.
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
Graph.
CSE 373, Copyright S. Tanimoto, 2002 Graphs 1 -
Graphs All tree structures are hierarchical. This means that each node can only have one parent node. Trees can be used to store data which has a definite.
Graphs Discrete Structure CS203.
Decision Maths Graphs.
Graph Theory What is a graph?.
Graphs By Rajanikanth B.
Graphs.
GRAPHS Lecture 17 CS2110 Spring 2018.
HW 3 (Due Wednesday Feb 6) Create slide(s) for your 1 minute presentation on a graph theory application. Make sure your slide(s) include (1) Define the.
Presentation transcript:

Introduction to Graph Theory

Graph Theory - History Leonhard Euler's paper on “Seven Bridges of Königsberg” , published in 1736.

Famous problems In 1852 Francis Guthrie posed the “four color problem” which asks if it is possible to color, using only four colors, any map of countries in such a way as to prevent two bordering countries from having the same color. This problem, which was only solved a century later in 1976 by Kenneth Appel and Wolfgang Haken, can be considered the birth of graph theory.

Basics Graph theory

What is a Graph? Informally a graph is a set of vertices joined by a set of lines or arrows. 1 2 3 1 2 3 4 5 6 4 5 6

Definition: Graph G is an ordered triple G:=(V, E, f) V is a set of nodes, points, or vertices. E is a set, whose elements are known as edges or lines. f is a function maps each element of E to an unordered pair of vertices in V.

Definitions Vertex Edge Basic Element Drawn as a node or a dot. Vertex set of G is usually denoted by V(G), or V Edge A set of two elements Drawn as a line connecting two vertices, called end vertices, or endpoints. The edge set of G is usually denoted by E(G), or E.

Example V:={1,2,3,4,5,6} E:={{1,2},{1,5},{2,3},{2,5},{3,4},{4,5},{4,6}}

Degree Number of edges incident on a vertex. The degree of B is 2. A D

Simple Graphs Simple graphs are graphs without multiple edges or self-loops.

Complete Graph Denoted Kn Every pair of vertices are adjacent Has n(n-1) edges

Bipartite graph V can be partitioned into 2 sets V1 and V2 such that (u,v)E implies either u V1 and v V2 OR v V1 and uV2.

Complete Bipartite Graph Bipartite Variation of Complete Graph Every vertex of one set is connected to every other vertex on the other set.

Connectivity A graph is connected if you can get from any vertex to any other by following a sequence of edges (OR) any two vertices are connected by a path. A directed graph is strongly connected if there is a directed path from any vertex to any other vertex.

Cycle A path from a vertex to itself is called a cycle. A graph is called cyclic if it contains a cycle; otherwise it is called acyclic A D E F B C Unreachable Cycle 1 2 3 4 5 6 Cycle

Path A path is a sequence of vertices such that there is an edge from each vertex to its successor. A path is simple if each vertex is distinct. A D E F B C Unreachable Cycle 1 2 3 4 5 6 Cycle Simple path from 1 to 5 = [ 1, 2, 4, 5 ] Our text’s alternates the vertices and edges. If there is path p from u to v then we say v is reachable from u via p.

Planar Graph Can be drawn on a plane such that no two edges intersect K4 is the largest complete graph that is planar

Tree Connected Acyclic Graph For any two vertices there exists exactly one path between them.

A weighted graph It is a graph for which each edge has an associated weight, usually given by a weight function w: E  R. 1 2 3 4 5 6 .5 1.2 .2 1.5 .3

Dual Graph Faces are considered as vertices Edges denote face adjacency Dual of dual is the original graph

Directed Graph (digraph) Edges have directions An edge is an ordered pair of vertices.

Degree (Directed Graphs) 1 2 4 5 The in degree of 2 is 2 and the out degree of 2 is 3. In degree: Number of edges entering Out degree: Number of edges leaving Degree = indegree + outdegree

Degree: Simple Facts If G is a digraph with m edges, then  indeg(v) =  outdeg(v) = m = |E | If G is a graph with m edges, then  deg(v) = 2m = 2 |E | Number of Odd degree vertices is even

Subgraph Vertex and edge sets are subsets of those of G a supergraph of a graph G is a graph that contains G as a subgraph. A graph G contains another graph H if some subgraph of G is H or is isomorphic to H. H is a proper subgraph if H!=G

Isomorphism

Isomorphism Bijection, i.e., a one-to-one mapping: f : V(G) -> V(H) u and v from G are adjacent if and only if f(u) and f(v) are adjacent in H. If an isomorphism can be constructed between two graphs, then we say those graphs are isomorphic.

Isomorphism Problem Determining whether two graphs are isomorphic Although these graphs look very different, they are isomorphic; one isomorphism between them is f(a) = 1 f(b) = 6 f(c) = 8 f(d) = 3 f(g) = 5 f(h) = 2 f(i) = 4 f(j) = 7