Graphs and Graph Models

Slides:



Advertisements
Similar presentations
CSE 211 Discrete Mathematics
Advertisements

Graphs CSCI 2720 Spring 2005.
1 Slides based on those of Kenneth H. Rosen Slides by Sylvia Sorkin, Community College of Baltimore County - Essex Campus Graphs.
Discrete Mathematics and Its Applications
1 Section 8.1 Introduction to Graphs. 2 Graph A discrete structure consisting of a set of vertices and a set of edges connecting these vertices –used.
1 Representing Relations Part 2: directed graphs.
Discrete Structures Chapter 7A Graphs Nurul Amelina Nasharuddin Multimedia Department.
1 Section 8.4 Connectivity. 2 Paths In an undirected graph, a path of length n from u to v, where n is a positive integer, is a sequence of edges e 1,
Selected Topics in Data Networking Graph Representation.
Chapter 4 Graphs.
Chapter 11 Graphs and Trees This handout: Terminology of Graphs Eulerian Cycles.
KNURE, Software department, Ph , N.V. Bilous Faculty of computer sciences Software department, KNURE Discrete.
Graphs Rosen 8.1, 8.2. There Are Many Uses for Graphs! Networks Data organizations Scene graphs Geometric simplification Program structure and processes.
GRAPH Learning Outcomes Students should be able to:
Graphs Chapter 10.
© by Kenneth H. Rosen, Discrete Mathematics & its Applications, Sixth Edition, Mc Graw-Hill, 2007 Chapter 9 (Part 1): Graphs  Introduction to Graphs (9.1)
Fall 2015 COMP 2300 Discrete Structures for Computation Donghyun (David) Kim Department of Mathematics and Physics North Carolina Central University 1.
1 CS104 : Discrete Structures Chapter V Graph Theory.
GRAPHS THEROY. 2 –Graphs Graph basics and definitions Vertices/nodes, edges, adjacency, incidence Degree, in-degree, out-degree Subgraphs, unions, isomorphism.
Graphs.  Definition A simple graph G= (V, E) consists of vertices, V, a nonempty set of vertices, and E, a set of unordered pairs of distinct elements.
Computer Science: A Structured Programming Approach Using C Graphs A graph is a collection of nodes, called vertices, and a collection of segments,
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.
COSC 2007 Data Structures II Chapter 14 Graphs I.
Introduction to Graph Theory
© by Kenneth H. Rosen, Discrete Mathematics & its Applications, Sixth Edition, Mc Graw-Hill, 2007 Chapter 9 (Part 1): Graphs  Introduction to Graphs (9.1)
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.
Basic properties Continuation
Graphs Basic properties.
Graphs Upon completion you will be able to:
1 Graphs Terminology By: Sandeep Tuli Astt. Prof. CSE.
Lecture 5.1: Graphs Basics
Chapter Graphs and Graph Models
Graphs. Contents Terminology Graphs as ADTs Applications of Graphs.
Chapter 9: Graphs.
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.
Lecture 9: Graphs & Graph Models. Definition of a Graph edge vertex cycle path.
Graph Concepts Illustrated Using The Leda Library Amanuel Lemma CS252 Algorithms.
Graph Terms By Susan Ott. Vertices Here are 7 vertices without any edges Each Vertex is labeled a different color and number.
Leda Demos By: Kelley Louie Credits: definitions from Algorithms Lectures and Discrete Mathematics with Algorithms by Albertson and Hutchinson graphics.
MAT 2720 Discrete Mathematics Section 8.1 Introduction
Subject Four Graphs Data Structures. What is a graph? A data structure that consists of a set of nodes (vertices) and a set of edges that relate the nodes.
CSC 252 Pallavi Moorthy Homework 5. 1.) Vertices, edges From cd../../handout/demo/graph_alg/gw_shortest_path.
Chapter Chapter Summary Graphs and Graph Models Graph Terminology and Special Types of Graphs Representing Graphs and Graph Isomorphism Connectivity.
Chapter 9 (Part 1): Graphs
Applied Discrete Mathematics Week 13: Graphs
Graphs: Definitions and Basic Properties
Lecture 19: CONNECTIVITY Sections
Basic Concepts Graphs For more notes and topics visit:
Copyright © Zeph Grunschlag,
Graph Graphs and graph theory can be used to model:
Taibah University College of Computer Science & Engineering Course Title: Discrete Mathematics Code: CS 103 Chapter 10 Graphs Slides are adopted from “Discrete.
CS100: Discrete structures
Chapter 9: Graphs Basic Concepts
Graph Theory By Amy C. and John M..
Graphs.
10.1 Graphs and Graph Models
Representing Relations
CSE 373 Data Structures Lecture 17
Discrete Mathematics Lecture 12: Graph Theory
Let us switch to a new topic:
Graphs By Rajanikanth B.
Graphs.
Graphs G = (V, E) V are the vertices; E are the edges.
Chapter 10 Graphs and Trees
Chapter 9: Graphs Basic Concepts
CSE 373 Data Structures Lecture 13
Graphs G = (V,E) V is the vertex set.
Presentation transcript:

Graphs and Graph Models Section 10.1

Graphs Definition: A graph G = (V, E) consists of a nonempty set V of vertices (or nodes) and a set E of edges. Each edge has either one or two vertices associated with it, called its endpoints. An edge is said to connect its endpoints. Example: a c b d This is a graph with four vertices and five edges.

Some Terminology In a simple graph each edge connects two different vertices and no two edges connect the same pair of vertices. Multigraphs may have multiple edges connecting the same two vertices. When m different edges connect the vertices u and v, we say that {u,v} is an edge of multiplicity m. An edge that connects a vertex to itself is called a loop. A pseudograph may include loops, as well as multiple edges connecting the same pair of vertices. a b c Example: This pseudograph has both multiple edges and a loop.

Directed Graphs Definition: An directed graph (or digraph) G = (V, E) consists of a nonempty set V of vertices (or nodes) and a set E of directed edges (or arcs). Each edge is associated with an ordered pair of vertices. The directed edge associated with the ordered pair (u,v) is said to start at u and end at v. Remark: Graphs where the end points of an edge are not ordered are said to be undirected graphs.

Some Terminology (continued) A simple directed graph has no loops and no multiple edges. A directed multigraph may have multiple directed edges. When there are m directed edges from the vertex u to the vertex v, we say that (u,v) is an edge of multiplicity m. a b c Example: This is a directed graph with three vertices and four edges. Example: c a b In this directed multigraph the multiplicity of (a,b) is 1 and the multiplicity of (b,c) is 2.

Graph Models: Networks To model a computer network where we care about the number of links between data centers, we use a multigraph. To model a computer network with diagnostic links at data centers, we use a pseudograph, as loops are needed. To model a airline network with multiple one-way links, we use a directed multigraph.

Other Applications of Graphs We will illustrate how graph theory can be used in models of: Social networks Communications networks Information networks Software design Transportation networks Biological networks

Biological Applications Niche overlap graphs model competition between species in an ecosystem Vertices represent species and an edge connects two vertices when they represent species who compete for food resources. Example: This is the niche overlap graph for a forest ecosystem with nine species.