Section 10.1 Graphs
This section focuses on some of the terminology associated with graphs. We will also define some special types of graphs, such as complete graphs.
A
graph is a collection of
vertices and
edges .
Figure 10.1.1. Example of a graph,
Figure 10.1.1 is an example of a graph. We have labeled the vertices with
and the edges with
Definition 10.1.2 .
A graph,
consists of a finite set,
of
vertices and a finite set,
of
edges . Each edge is assocated with two vertices (it may be the same vertex) called
endpoints .
If two edges have the same endpoints, we say they are
parallel .
A
loop is an edge where both endpoints are the same vertex.
Two vertices connected by an edge are called
adjacent . For example, in
Figure 10.1.1 is adjacent to
but
is not adjacent to
A vertex of a loop is adjacent to itself.
An edge is
incident on each of its endpoints.
Two edges that are incident on the same vertex are
adjacent . For example, in
Figure 10.1.1 and
are adjacent, but
and
are not adjacent.
An
isolated vertex is one with no incident edges.
A graph with no vertices is the
empty graph .
In
Figure 10.1.3 , edges
and
are parallel edges, while edge
is a loop. We also have an isolated vertex,
Figure 10.1.3. Example of a graph with parallel edges and a loop
Example 10.1.4 . Graph Terminology.
Consider the graph,
given in the figure.
Figure 10.1.5. Graph
Answer 1 .
Answer 2 .
Answer 3 .
Answer 4 .
Answer 5 . Find the edges incident on
Answer 6 . Find all vertices adjacent to
Answer 7 . Does
have any parallel edges?
Answer 8 .
Answer 9 . It is important to note that it is possible to draw the same graph in different ways.
Figure 10.1.6. The same graph drawn in two different ways The two graphs in
Figure 10.1.6 are the same graph since they have the same vertex and edge sets, and a given edge still has the same endpoints.
Definition 10.1.7 .
A
directed graph or
digraph consists of a set of vertices,
and directed edges (arrows),
where each edge is associated with an
ordered pair of of vertices called endpoints,
Really, the vertices of a graph represent a set, while the edges represent relationships between elements of that set. There are lots of examples of graphs as representations of relationships or networks. For example, graphs are used to represent communications systems, flight patterns, and friendship networks. Graphs can even be used to find strategies in games such as sudoku.
Now we want to define a couple special graphs.
Definition 10.1.8 .
A
complete graph on vertices ,
is a simple graph with
vertices whose set of edges contains exactly one edge for every pair of vertices.
are given in the following figure.
Figure 10.1.9. Examples of complete graphs
Activity 10.1.1 .
Draw the complete graphs on 5 vertices and 6 vertices,
and
Definition 10.1.10 .
Let A complete bipartite graph on vertices , is a simple graph with vertices and such that
there is an edge from to for all and
there are no edges from to for all
there are no edges from to for all
Figure 10.1.11. Complete bipartite graph,
Activity 10.1.2 .
Draw the complete bipartite graphs
and
Definition 10.1.12 .
A graph
is a
subgraph of
if every vertex in
is also a vertex in
and every edge in
is also an edge in
such that the edges in
have the same endpoints as in
In the following figure,
and
are subgraphs of
Figure 10.1.13. Examples of subgraphs, of the graph
Definition 10.1.14 .
The
degree of a vertex
is the number of edges incident on
Loops are counted twice. The
total degree of a graph
is the sum of the degrees of all vertices in
Example 10.1.15 . Degree.
Answer 1 .
Answer 2 .
Answer 3 .
Answer 4 .
Answer 5 .
Answer 6 . Is there a relationship between the number of edges in
and the total degree?
As you might have seen in
Example 10.1.15 , there is a relationship between the total degree of a graph and the number of edges.
Theorem 10.1.16 .
The total degree of a graph
is
where
is the number of edges in
We will not provide a formal proof, but the theorem is not hard to show as each edge must be incident on two vertices. Thus, each edge is counted twice in the total degree.
Activity 10.1.3 .
Draw any graph with 6 edges. Find the total degree of your graph. Verify that the total degree is twice the number of edges.
Corollary 10.1.17 .
The total degree of any graph is even.
Activity 10.1.4 .
Explain why in any graph there is an even number of vertices of odd degree.
Activity 10.1.5 .
For each of the following either draw an example of the graph or explain why it is impossible.
(a)
A graph with 4 vertices of degrees 1, 1, 2, 3.
(b)
A graph with 4 vertices of degrees 1, 1, 2, 2.
(c)
A simple graph with 4 vertices of degrees 1, 1, 2, 2.
(d)
A graph with 4 vertices of degrees 1, 2, 3, 3.
(e)
A simple graph with 4 vertices of degrees 1, 2, 3, 4.
(f)
A simple graph with 6 edges and all vertices of degrees 3.
Reading Questions Check Your Understanding
Use the following graph for questions about
Figure 10.1.18. The graph for Check Your Understanding 1.
2.
True.
Edges are parallel.
False.
Edges are parallel.
3.
4.
5.
6.
7.
8.
9.
10.
True or false: there exists a graph with 4 vertices of degrees 1, 2, 1, 2.
True.
One example is a line (path) with 4 vertices.
False.
One example is a line (path) with 4 vertices.
11.
True or false: there exists a graph with 4 vertices of degrees 1, 2, 1, 3.
True.
The total degree would be odd.
False.
The total degree would be odd.
12.
True or false: there exists a graph with 4 vertices of degrees 4, 4, 4, 4.
True.
One example has parallel edges between each vertex. Can also have an example with loops.
False.
One example has parallel edges between each vertex. Can also have an example with loops.
13.
True or false: there exists a simple graph with 4 vertices of degrees 4, 4, 4, 4.
True.
In a simple graph, you can’t have more edges than the complete graph on 4 vertices.
False.
In a simple graph, you can’t have more edges than the complete graph on 4 vertices.
Exercises Exercises
1.
Draw the graph given by the following information: Graph
has vertex set
and edge set
with edge-endpoint function given by the table.
2.
Show that the two drawings represent the same graph by labeling the vertices and edges of the right-hand drawing to correspond to those of the left-hand drawing.
3.
Show that the two drawings represent the same graph by labeling the vertices and edges of the right-hand drawing to correspond to those of the left-hand drawing.
4.
Find all edges that are incident on
Find all vertices that are adjacent to
Find all edges that are adjacent to
Find all isolated vertices.
Find the total degree of the graph.
5.
A graph has vertices of degrees 0, 2, 2, 3, and 9. How many edges does the graph have?
6.
For each of the following, draw the graph if it exists or explain why no such graph exists.
A graph with four vertices of degrees 1, 1, 1, and 4.
A graph with four vertices of degrees 1, 2, 3, and 4.
A simple graph with 9 edges and all vertices of degree 3.
7.
In a group of 25 people, is it possible for each person to shake hands with exactly 3 other people? Explain your answer.
8.
Recall that
denotes the complete bipartite graph on
vertices.
How many vertices of
have of degree
degree
What is the total degree of
Find a formula in terms of
and
for the number of edges of
9.
Recall
is the complete graph on
vertices.
Show that for all integers
the number of edges of
is
Hint .
There are two possible approaches for the proof. One is to try a counting argument, the other is to do induction on
You have attempted
1 of
14 activities on this page.