Graphs Edge(arc) Vertices can be even or odd or undirected (two-way) Edges can be directed (one-way) This graph is connected. Degree(order) = 3 Odd vertex.

Slides:



Advertisements
Similar presentations
CSE 211 Discrete Mathematics
Advertisements

Lecture 5 Graph Theory. Graphs Graphs are the most useful model with computer science such as logical design, formal languages, communication network,
22C:19 Discrete Math Graphs Fall 2010 Sukumar Ghosh.
Introduction to Graph Theory Instructor: Dr. Chaudhary Department of Computer Science Millersville University Reading Assignment Chapter 1.
22C:19 Discrete Math Graphs Fall 2014 Sukumar Ghosh.
Midwestern State University Department of Computer Science Dr. Ranette Halverson CMPS 2433 – CHAPTER 4 GRAPHS 1.
Graph-02.
Lecture 21 Paths and Circuits CSCI – 1900 Mathematics for Computer Science Fall 2014 Bill Pine.
Section 14.1 Intro to Graph Theory. Beginnings of Graph Theory Euler’s Konigsberg Bridge Problem (18 th c.)  Can one walk through town and cross all.
© 2006 Pearson Addison-Wesley. All rights reserved14 A-1 Chapter 14 excerpts Graphs (breadth-first-search)
Koenigsberg bridge problem It is the Pregel River divided Koenigsberg into four distinct sections. Seven bridges connected the four portions of Koenigsberg.
Decision Maths Graphs Wiltshire Graphs A graph is just a diagram made up of “dots” and “lines”. These are all graphs. The dots are called “nodes” or.
Section 2.1 Euler Cycles Vocabulary CYCLE – a sequence of consecutively linked edges (x 1,x2),(x2,x3),…,(x n-1,x n ) whose starting vertex is the ending.
Discrete Structures Chapter 7B Graphs Nurul Amelina Nasharuddin Multimedia Department.
Introduction to Graphs
Introduction to Graphs What is a Graph? Some Example applications of Graphs. Graph Terminologies. Representation of Graphs. –Adjacency Matrix. –Adjacency.
IEOR266 © Classification of MCNF problems.
W. D. Grover TRLabs & University of Alberta © Wayne D. Grover 2002, 2003 Graph theory and routing (initial background) E E Lecture 4.
Chapter 11 Graphs and Trees This handout: Terminology of Graphs Eulerian Cycles.
Graphs and Trees This handout: Terminology of Graphs Applications of Graphs.
22C:19 Discrete Math Graphs Spring 2014 Sukumar Ghosh.
Copyright © Cengage Learning. All rights reserved.
GRAPH Learning Outcomes Students should be able to:
Graph Theory Chapter 6 from Johnsonbaugh Article(6.1, 6.2)
Programming for Geographical Information Analysis: Advanced Skills Online mini-lecture: Introduction to Networks Dr Andy Evans.
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,
5.1  Routing Problems: planning and design of delivery routes.  Euler Circuit Problems: Type of routing problem also known as transversability problem.
© 2006 Pearson Addison-Wesley. All rights reserved14 A-1 Chapter 14 Graphs.
© Nuffield Foundation 2011 Nuffield Free-Standing Mathematics Activity Chinese postman problems What route can I take to avoid going along the same street.
Can you connect the dots as shown without taking your pen off the page or drawing the same line twice.
CSNB143 – Discrete Structure Topic 9 – Graph. Learning Outcomes Student should be able to identify graphs and its components. Students should know how.
1 CS104 : Discrete Structures Chapter V Graph Theory.
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.
Fall 2015 COMP 2300 Discrete Structures for Computation Donghyun (David) Kim Department of Mathematics and Physics North Carolina Central University 1.
Unit 5 Graphs & Trees 1 IT Discipline ITD1111 Discrete Mathematics & Statistics STDTLP Unit 5 Discrete Mathematics and Statistics Graphs and Trees.
Introduction to Graph Theory
Discrete Mathematical Structures: Theory and Applications
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.
© Nuffield Foundation 2012 Nuffield Free-Standing Mathematics Activity Networks © Rudolf Stricker.
GRAPHS. Graph Graph terminology: vertex, edge, adjacent, incident, degree, cycle, path, connected component, spanning tree Types of graphs: undirected,
Review Euler Graph Theory: DEFINITION: A NETWORK IS A FIGURE MADE UP OF POINTS (VERTICES) CONNECTED BY NON-INTERSECTING CURVES (ARCS). DEFINITION: A VERTEX.
Graphs Upon completion you will be able to:
Chapter 9: Graphs.
Chapter 20: Graphs. Objectives In this chapter, you will: – Learn about graphs – Become familiar with the basic terminology of graph theory – Discover.
Graphs Definition: a graph is an abstract representation of a set of objects where some pairs of the objects are connected by links. The interconnected.
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,
1 GRAPH Learning Outcomes Students should be able to: Explain basic terminology of a graph Identify Euler and Hamiltonian cycle Represent graphs using.
Graphs: Definitions and Basic Properties
Data Structures Graphs - Terminology
Network Optimization J.B. Orlin
Introduction to Graphs
Routing Through Networks - 1
Graph theory Definitions Trees, cycles, directed graphs.
Agenda Lecture Content: Introduction to Graph Path and Cycle
Introduction to Graphs
Can you draw this picture without lifting up your pen/pencil?
Introduction to Graph Theory Euler and Hamilton Paths and Circuits
Graph Theory By Amy C. and John M..
Graphs.
Decision Maths Graphs.
Chapter 14 Graphs © 2006 Pearson Addison-Wesley. All rights reserved.
Graphs G = (V, E) V are the vertices; E are the edges.
Applied Combinatorics, 4th Ed. Alan Tucker
Graph Theory Relations, graphs
Chapter 10 Graphs and Trees
Chapter 14 Graphs © 2011 Pearson Addison-Wesley. All rights reserved.
Introduction to Graphs
Introduction to Graphs
Presentation transcript:

Graphs Edge(arc) Vertices can be even or odd or undirected (two-way) Edges can be directed (one-way) This graph is connected. Degree(order) = 3 Odd vertex The degree(order) of a vertex is the number of edges meeting at a vertex vertex (node) Degree(Order) = 2 Even vertex This is a graph.

The stations are the nodes and the tracks are the arcs. The London Tube map is an example. The arcs only indicate which nodes are joined not the distance between them. It should be called the London Tube Graph

Graph

Map

Before Harry Beck redesigned the tube map 1931 (Beck was responsible for the iconic, more user-friendly version we use today), Londoners used this map to navigate the underground network. It has many lost stations on it as well as different names for some existing ones.

49 mins 39 mins 28 mins 22 mins 24 mins 29 mins 34 mins 15 miles 17 miles 15 miles 12 miles 17 miles 21 miles 20 miles Networks Colchester Stowmarket Ipswich Sudbury Bury St Edmunds Harwich In a Network the arcs have values such as distances or journey times or traffic flow

Degree 3 Degree 2 loop Multiple arc arc The Degree ( Order) of a node An arc that starts and finishes at the same vertex is a LOOP. A graph with no loops or multiple edges is called a simple graph. is the number of arcs that meet at that node.

A connected graph has all nodes linked in. A graph that ‘falls apart’ is disconnected. disconnected simple connected graph

Bipartite Graphs have two sets of nodes with edges only joining nodes between sets and not within sets.

If every node in set 1 is joined to every node in set 2 then the graph is called a complete Bipartite Graph denoted by K r,s K 2,3 All the nodes are connected to nodes in the other set but nodes within the set are not connected.

A little history: the Bridges of Koenigsberg “Graph Theory” began in 1736 Leonhard Eüler – Visited Koenigsberg – People wondered whether it is possible to take a walk, end up where you started from, and cross each bridge in Koenigsberg exactly once

The Bridges of Koenigsberg A D C B Is it possible to start in A, cross over each bridge exactly once, and end up back in A?

The Bridges of Koenigsberg A D C Translation into a graph problem: Land masses are “nodes”. B

The Bridges of Koenigsberg Translation into a graph problem : Bridges are “arcs.” A C D B

The Bridges of Koenigsberg Is there a “walk” starting at A and ending at A and passing through each arc exactly once? Such a walk is called an eulerian cycle. A C D B

If every node is linked to every other node by a single edge it is complete. Everything meets when its complete If a graph is complete it is given the name K n where n is the number of nodes. K5K5 K3K3

If every node is linked to every other node by a single edge it is complete. K5K5 K3K3 How many arcs(edges)? Find a rule! Make a table K 3, K 4, K 5, K 6 etc

If a graph contains a closed trail then that section is called a cycle. A,B,D is a cycle in the graph below. B A D C A Cycle:

A connected graph in which there are no cycles (not closed) is called a Tree. The number of arcs of a tree is one less than the number of nodes. No. Arcs =No. Nodes = Tree 7 8 No. arcs = No. nodes -1

Paths Routes that do not visit any vertex more than once and do not go along any edge more than once except the start. A cycle forms a loop by returning to its starting point

Colchester Stowmarket Ipswich Sudbury Bury St Edmunds Harwich adjacency matrix B Su C H I St An Adjacency Matrix shows which vertices are joined

Colchester Stowmarket Ipswich Sudbury Bury St Edmunds Harwich distance matrix B Su C H I St 15 miles 17 miles 15 miles 12 miles 17 miles 21 miles 20 miles An Distance Matrix shows the distance between vertices. As it is undirected the matrix is symmetrical Harwich to Colchester = Colchester to Harwich

Directed Graphs (Digraph) If it is only possible to travel along the arcs in one direction then the graph is called a digraph. If a graph represents a street plan then some of the streets may be one way. Arrows are used to indicate the allowable direction. Arcs without arrows can be travelled in either direction

B A D C If the network is a directed graph then the direction matters and the matrix is not symmetrical as can be seen below. It is not possible to go From A To B as the route is directed. A To C is 4 whereas C To A is 5 From To

B A D C Networks A network is graph where each arc has a weight. This could be a distance if it represents a map or the number of cars that can travel down a road in a specified time without becoming congested. Representing a network using a matrix

Graphs in our daily lives Transportation Telephone Computer Electrical (power) Pipelines Molecular structures in biochemistry

Telephone network

Molecular chain of atoms in protein

Review of Graphs A graph (or network) consists of – a set of points – a set of lines connecting certain pairs of the points. The points are called. The lines are called Example: nodes (or vertices) arcs (or edges or links).

Terminology of Graphs: Paths A path between two nodes is a sequence of distinct nodes and edges connecting these nodes. Example: Walks are paths that can repeat nodes and arcs. a b

Adding two bridges creates such a walk A C D B 8 9 Here is the walk. Note: the number of arcs incident to B is twice the number of times that B appears on the walk.

Existence of Eulerian Cycle A C D B 8 9 The degree of a node is the number of arcs that meet at the node Theorem. An undirected graph has an eulerian cycle if and only if (1) every node degree is even and (2) the graph is connected (that is, there is a path from each node to each other node).