Beruflich Dokumente
Kultur Dokumente
GRAPH THEORY
Lecture by:
Learning Objectives
1.Define basic graph theory
terms.
2.Represent relationships
with graphs.
3.Decide if two graphs are
equivalent.
4.Recognize features of
What is a graph?
What is a graph?
it consists of finite
set of points called
vertices
Fig 14-1
Drawing a graph
Draw vertices as
block dots
Label vertices
i.e. A, B, C, D
Edges are labeled
from connected
vertices
i.e. AB, BC, CD, DA,
CA, and BD
Applications of graphs
Graphs can be used to model various
systems:
Cities on a map
Floor plans for houses
Border relationships
Relationships of countries and states
Relationships between family and friends
Representing Systems with Graphs
Representing Islands with a Graph
Fig 14-2
Representing Islands with a
Graph
Fig 14-3
Representing Islands with a Graph
Fig 14-4
Representing a Floor Plan
Fig 14-5
Representing a Floor Plan
Fig 14-5
Representing a Floor Plan
Fig 14-7
Representing Border
Relationship
Draw a graph that shows the countries
that share a common border.
Fig 14-8
Representing Border
Relationship
Representing Border
Relationship
Fig 14-
Graph Representing City
Streets
Draw a graph for the neighborhood with
street intersections as vertices and
streets as edges.
Fig 14-
Graph Representing City
Streets
Graph Representing City
Streets
Fig 14-
Graph Theory: Making Transportation
Easier
Fig 14-
14
Graph Terminology
Why are the two graphs below
equivalent?
Fig 14-
14
Graph Terminology
Fig 14-
15
Graph Terminology
degree of a vertex:
number of edges that
intersect that vertex
Fig 14-
16
Graph Terminology
adjacent vertices:
vertices that have at
least one edge
connecting them
In Fig 14-17, vertex A is
adjacent to vertices B
and E
Vertex E is not adjacent
to either B or D
since there is no edge
Fig 14-
connecting them
17
Graph Terminology
path: sequence of
adjacent vertices and
edges connecting them
paths doesnt have to
include all vertices and
edges
a vertex can be crossed
more than once but an
edge can only be crossed
once
Path B,C,E,F Fig 14-
17
Graph Terminology
circuit: a path that
begins and ends at the
same vertex
Fig 14-
18 every loop is a circuit; every circuit is a path but
MATH NOTE:
not every path is a circuit
Graph Terminology
connected graph:
for any two vertices,
there is at least one
path that connects
them
disconnected
graph: if otherwise
Fig 14-
18
Graph Terminology
bridge: an edge in a
connected graph in
which when removed,
the graph becomes
disconnected
Fig 14-
19
Recognizing Features of Graphs
SOLUTION
a) Vertices V, W, X and
Z. Vertices V, W and X
have degrees of 3
while Vertex Z has 1.
b) Vertices T,U, and Y.
Vertices T and U have
degrees of 4 while
Vertex Y has 2.
c) Vertex W has a loop.
Fig 14-
Recognizing Features of Graphs
SOLUTION
SITUATION
At a company, there are regular meetings for each of
the seven different groups. Some employees are
members of multiple groups: finance (F), strategic
planning (S), human resources (H), healthcare
and wellness (W), employee relations (E), union
negotiations (U), and board of managers (B). The
graph in Fig 14-23 shows the relationship amongst the
groups: an edge connecting two vertices means that
those groups have at least one common member. Find
the smallest number of meeting times that guarantee
no time conflicts for the members with different groups.
Graph Coloring in
Scheduling
Fig 14-
23
Graph Coloring in Scheduling
SOLUTION
SOLUTION
Graph Coloring in
Scheduling
TRY: Color the graph below and find the
chromatic number.
Fig 14-
25
Applying Graph Coloring to
Maps
Find the number of different colors that would
be necessary so that no states with a common
border are the same color.
Fig 14-
Applying Graph Coloring to
Maps
Fig 14-
27
Applying Graph Coloring to
Maps
Fig 14-
27
That leaves us to a chromatic number of 4.
Exercises 13-23
27. 4 29. 3
33. 37.
Selected Answers
41.
39.
Selected Answers