Graphs: An Introduction

Slides:



Advertisements
Similar presentations
Chapter 8 Topics in Graph Theory
Advertisements

Lecture 5 Graph Theory. Graphs Graphs are the most useful model with computer science such as logical design, formal languages, communication network,
Discrete Mathematics and Its Applications
1 Section 8.2 Graph Terminology. 2 Terms related to undirected graphs Adjacent: 2 vertices u & v in an undirected graph G are adjacent (neighbors) in.
Discrete Structures Chapter 7A Graphs Nurul Amelina Nasharuddin Multimedia Department.
1 CMSC 250 Discrete Structures CMSC 250 Lecture 1 January 28, 2008.
CTIS 154 Discrete Mathematics II1 8.2 Paths and Cycles Kadir A. Peker.
Selected Topics in Data Networking Graph Representation.
Applied Discrete Mathematics Week 12: Trees
9.2 Graph Terminology and Special Types Graphs
GRAPH Learning Outcomes Students should be able to:
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 Graphs Chapters 9.1 and 9.2 University of Maryland Chapters 9.1 and 9.2 Based on slides by Y. Peng University of Maryland.
GRAPHS CSE, POSTECH. Chapter 16 covers the following topics Graph terminology: vertex, edge, adjacent, incident, degree, cycle, path, connected component,
Module #19: Graph Theory: part I Rosen 5 th ed., chs. 8-9 내년 3 월 ? 교환 학생 프로그램 영어 점수 미리미리 준비하세요.
Fall 2015 COMP 2300 Discrete Structures for Computation Donghyun (David) Kim Department of Mathematics and Physics North Carolina Central University 1.
7.1 and 7.2: Spanning Trees. A network is a graph that is connected –The network must be a sub-graph of the original graph (its edges must come from the.
1 Topics Intro. to Graphs (11.1) A B C D EF G. 2 Definition (p.650) A graph G = V(G) + E(G) A set of vertices (or nodes), V(G) = {v 1, v 2, …, v n } A.
Lecture 10: Graphs Graph Terminology Special Types of Graphs
 What is a graph? What is a graph?  Directed vs. undirected graphs Directed vs. undirected graphs  Trees vs graphs Trees vs graphs  Terminology: Degree.
1 CS104 : Discrete Structures Chapter V Graph Theory.
9.1 Introduction to Graphs
(CSC 102) Lecture 28 Discrete Structures. Graphs.
Week 11 - Monday.  What did we talk about last time?  Binomial theorem and Pascal's triangle  Conditional probability  Bayes’ theorem.
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.
1/24 Introduction to Graphs. 2/24 Graph Definition Graph : consists of vertices and edges. Each edge must start and end at a vertex. Graph G = (V, E)
9 Graphs. A graph G = (V, E) consists of V, a nonempty set of vertices (or nodes) and E, a set of edges. Each edge has either one or two vertices associated.
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.
Introduction to Graph Theory
Introduction to Graph Theory
An Introduction to Graph Theory
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.
Homework #5 Due: October 31, 2000 Christine Kang Graph Concepts and Algorithms.
Graphs G = (V,E) V is the vertex set. Vertices are also called nodes and points. E is the edge set. Each edge connects two different vertices. Edges are.
GRAPHS. Graph Graph terminology: vertex, edge, adjacent, incident, degree, cycle, path, connected component, spanning tree Types of graphs: undirected,
Graphs Basic properties.
1 Graphs Terminology By: Sandeep Tuli Astt. Prof. CSE.
Chapter 9: Graphs.
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 05 Introduction to Graph And Search Algorithms.
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.
رياضيات متقطعة لعلوم الحاسب MATH 226. Chapter 10.
MAT 2720 Discrete Mathematics Section 8.1 Introduction
1 Graphs Chapters 10.1 and 10.2 University of Maryland Chapters 10.1 and 10.2 Based on slides by Y. Peng University of Maryland.
Chapter Chapter Summary Graphs and Graph Models Graph Terminology and Special Types of Graphs Representing Graphs and Graph Isomorphism Connectivity.
Lecture 19: CONNECTIVITY Sections
Special Graphs By: Sandeep Tuli Astt. Prof. CSE.
Copyright © Zeph Grunschlag,
COT 3100, Spring 2001 Applications of Discrete Structures
Chapters 8.1 and 8.2 Based on slides by Y. Peng University of Maryland
Grade 11 AP Mathematics Graph Theory
Chapter 5 Fundamental Concept
Agenda Lecture Content: Introduction to Graph Path and Cycle
Graphs Chapters 10.1 and 10.2 Based on slides by Y. Peng University of Maryland.
Chapters 8.1 and 8.2 Based on slides by Y. Peng University of Maryland
CS100: Discrete structures
10.1 Graphs and Graph Models
Let us switch to a new topic:
Graphs G = (V, E) V are the vertices; E are the edges.
Introduction to Graph Theory
Graphs G = (V,E) V is the vertex set.
GRAPHS.
Concepts of Computation
Presentation transcript:

Graphs: An Introduction Lecture 51 Section 11.1 Mon, Apr 24, 2006

Graphs Graphs are used to represent relations between objects. Friendship between individuals. Computers connected on a network. Divisibility relation between integers. The relation may be quantifiable. Cities connected by highways (distance).

Vertices and Edges A graph is consists of a finite set of vertices and a finite set of edges. The vertices and are represented as dots, representing the objects. The edges and the lines connecting the vertices, representing the relations. If G is a graph, then V(G) is the set of vertices and E(G) is the set of edges.

Example The vertices are students. The edges represent pairs of students who have a class together. John Joe Bill Jim Mike Tom

E(G) = {{v1, v2}, {v1, v3}, {v2, v4}, {v2, v5}}. Example Let G be a graph with 5 vertices, labeled v1, v2, v3, v4, and v5. V(G) = {v1, v2, v3, v4, v5}. Each edge is represented as a set of two vertices. For example, E(G) = {{v1, v2}, {v1, v3}, {v2, v4}, {v2, v5}}.

Example The earlier example would be represented as G = (V(G), E(G)), where V(G) = {Joe, John, Bill, Jim, Tom, Mike}, E(G) = {{Joe, John}, {Joe, Jim}, {Joe, Tom}, {John, Bill}, {John, Jim}}.

Loops and Parallel Edges A loop is an edge with the same vertex for both endpoints. e = {v, v}. Two edges are parallel if they have the same pair of endpoints. e1 = {v1, v2}, e2 = {v1, v2}.

Special Graphs A simple graph is a graph with no loops or parallel edges. A complete graph is a simple graph that contains every possible edge.

Special Graphs If a complete graph has n vertices, then how many edges does it have? Can a complete graph have a noncomplete subgraph? Can a noncomplete graph has a complete subgraph?

Special Graphs A graph is bipartite if its vertices may be partitioned into two subsets V1 and V2 such that every edge in the graph has one endpoint in V1 and the other in V2. A graph is a complete bipartite graph is it contains all possible edges between vertices in V1 and V2.

Special Graphs If a complete bipartite graph has 5 vertices in one set and 8 vertices in the other set, then what how many edges does it have? If it has m vertices in one set and n vertices in the other set, then how many edges does it have?

Degree The degree of a vertex is the number of edges that are incident to the vertex. Loops are counted double. The total degree of a graph is the sum of the degrees of all its vertices. If a graph G has |E(G)| edges, then what is its total degree?

Directed Graphs A directed graph is like a graph, except that each edge has a direction from one endpoint to the other. A directed graph is also called a digraph. In a directed graph, each edge is represented by an ordered pair of vertices. e = (v1, v2).

The Divisibility Relation In this example, a directed edge from v1 to v2 means that v1 divides v2. 12 6 4 2 3 1

Indegree and Outdegree In a directed graph, The outdegree of a vertex is the number of edges that “originate” at that vertex. The indegree of a vertex is the number of edges that “terminate” at that vertex.

Indegree and Outdegree Clearly, degree(v) = indegree(v) + outdegree(v) and total degree(G) = total indegree(G) + total outdegree(G).