





Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!






2.1. Undirected Graphs.
Definitions 2.1.1. Suppose G = (V, E) is an undirected graph.
(1) Two vertices u, v ∈ V are adjacent or neighbors if there is an edge e between u and v.
Example 2.1.1. V = {v 1 , v 2 , v 3 , v 4 } and E = {e 1 , e 2 , e 3 , e 4 }.
v 1
v 2
v 3 v 4
e 1
e 2 e 3
e 4
(1) v 2 and v 3 are adjacent. (2) deg(v 1 ) = 2 (3) deg(v 2 ) = 2 (4) deg(v 3 ) = 3 (5) deg(v 4 ) = 1
Discussion
Notice that in computing the degree of a vertex in an undirected graph a loop contributes two to the degree. In this example, none of the vertices is isolated, but v 4 is pendant. In particular, the vertex v 1 is not isolated since its degree is 2.
2.2. The Handshaking Theorem. Theorem 2.2.1. (The Handshaking Theorem) Let G = (V, E) be an undi- rected graph. Then
2 |E| =
v∈V
deg(v)
Proof. Each edge contributes twice to the sum of the degrees of all vertices.
Discussion
Theorem 2.2.1 is one of the most basic and useful combinatorial formulas associ- ated to a graph. It lets us conclude some facts about the numbers of vertices and the possible degrees of the vertices. Notice the immediate corollary.
Corollary 2.2.1.1. The sum of the degrees of the vertices in any graph must be an even number.
In other words, it is impossible to create a graph so that the sum of the degrees of its vertices is odd (try it!).
2.3. Example 2.3.1. Example 2.3.1. Suppose a graph has 5 vertices. Can each vertex have degree 3? degree 4?
(1) The sum of the degrees of the vertices would be 3 · 5 if the graph has 5 vertices of degree 3. This is an odd number, though, so this is not possible by the handshaking Theorem. (2) The sum of the degrees of the vertices if there are 5 vertices with degree 4 is
Discussion
If the sum of the degrees of the vertices is an even number then the handshaking theorem is not contradicted. In fact, you can create a graph with any even degree you want if multiple edges are permitted. However, if you add more restrictions it may not be possible. Here are two typical questions the handshaking theorem may help you answer.
Exercise 2.3.1. Is it possible to have a graph S with 5 vertices, each with degree 4, and 8 edges?
(3) Similarly, the out-degree of v, denoted deg+(v), is the number of edges which initiate at v.
2.5. The Handshaking Theorem for Directed Graphs.
Theorem 2.5.1. For any directed graph G = (V, E),
|E| =
v∈V
deg−(v) =
v∈V
deg+(v).
Discussion
When considering directed graphs we differentiate between the number of edges going into a vertex verses the number of edges coming out from the vertex. These numbers are given by the in-degree and the out-degree.
Notice that each edge contributes one to the in-degree of some vertex and one to the out-degree of some vertex. This is essentially the proof of Theorem 2.5.1.
Exercise 2.5.1. Prove Theorem 2.5.1.
2.6. Underlying Undirected Graph.
Definition 2.6.1. If we take a directed graph and remove the arrows indicating the direction we get the underlying undirected graph.
Discussion
There are applications in which you may start with a directed graph, but then later find it useful to consider the corresponding undirected graph obtained by removing the direction of the edges.
Notice that if you take a vertex, v, in a directed graph and add its in-degree and out-degree, you get the degree of this vertex in the underlying undirected graph.
2.7. New Graphs from Old.
Definitions 2.7.1. 1. (W, F ) is a subgraph of G = (V, E) if W ⊆ V and F ⊆ E.
G 1 ∪ G 2 = (V 1 ∪ V 2 , E 1 ∪ E 2 ).
Exercise 2.7.1. Find the union and join of the graphs G 1 and G 2 below.
a b
c d
e
G
a f (^) b
e
c g^ d 1 G 2
Exercise 2.7.2. Prove that the union of two simple graphs is a simple graph. Exercise 2.7.3. Prove that the join of two simple graphs is a simple graph.
2.8. Complete Graphs. Definition 2.8.1. The complete graph with n vertices, denoted Kn, is the simple graph with exactly one edge between each pair of distinct vertices.
Discussion
There are a certain types of simple graphs that are important enough that they are given special names. The first of these are the complete graphs. These are the simple graphs that have the maximal number of edges for the given set of vertices. For example, if we were using graphs to represent a local area network, a complete graph would represent the maximum redundancy possible. In other words, each pair of computers would be directly connected. It is easy to see that any two complete graphs with n vertices are isomorphic, so that the symbol Kn is ambiguously used to denote any such graph.
Complete graphs also arise when considering the question as to whether a graph G is planar, that is, whether G can be drawn in a plane without having any two edges intersect. The complete graphs K 1 , K 2 , K 3 , and K 4 are planar graphs, but Kn is not planar if n ≥ 5. Draw K 4 without making the edges intersect, then try to draw K 5 without creating an unwanted intersection between edges. (Notice that Kn+1 can be created from Kn by adding one new vertex and an edge from the new vertex to each vertex of Kn.)
Discussion
Notice that a wheel is obtained by starting with a cycle and then adding one new vertex and an edge from that vertex to each vertex of the cycle. Be careful! The index on the notation Wn is actually one less that the number of vertices. The n stands for the number of vertices in the cycle that we used to get the wheel.
2.11. n-Cubes. Definition 2.11.1. The n-cube, denoted Qn, is the graph with 2 n^ vertices rep- resented by the vertices and edges of an n-dimensional cube.
These graphs can be constructed recursively as follows:
Qn can also be represented as the graph whose vertices are the bit strings of length n, having an edge between each pair of vertices that differ by one bit.
Discussion
The n-Cube is a common way to connect processors in parallel machines. Here are the cubes Q 3 and Q 4.
000 100
010
001
110
011 111
101
Exercise 2.11.1. Find all the subgraphs of Q 1 , and Q 2.
Exercise 2.11.2. Label the vertices of Q 4 appropriately, using bit strings of length four.
Exercise 2.11.3. Use your labeling of the vertices of Q 4 from Exercise 2.11.2 to identify two disjoint Q 3 ’s, and an isomorphism between them, from which Q 4 would be obtained in the recursive description above.
Exercise 2.11.4. Prove that Qn+1 ⊆ Q^1 n ∗ Q^2 n, where Q^1 n and Q^2 n are disjoint n-cubes, n ≥ 0.
Exercise 2.11.5. Prove that the 2-cube is not (isomorphic to) the join of two 1-cubes.
Exercise 2.11.6. Draw the graph Q 5. [Hint: Abandon trying to use a ”cube” shape. Put 00000 on the top of the page and 11111 on the bottom and look for an organized manner to put the rest in between.]
2.12. Bipartite Graphs.
Definition 2.12.1. A simple graph G is bipartite if V can be partitioned into two nonempty disjoint subsets V 1 and V 2 such that every edge connects a vertex in V 1 and a vertex in V 2.
Definition 2.12.2. A bipartite graph is complete if V can be partitioned into two disjoint subsets V 1 and V 2 such that there is an edge from every vertex V 1 to every vertex in V 2.
Km,n denotes the complete bipartite graph when m = |V 1 | and n = |V 2 |.
Discussion
The definition of a bipartite graph is not always consistent about the necessary size of |V 1 | and |V 2 |. We will assume V 1 and V 2 must have at least one element each, so we will not consider the graph consisting of a single vertex bipartite.
Note: There are no edges connecting vertices in V 1 in a bipartite graph. Neither are there edges connecting vertices in V 2.
Exercise 2.12.1. How many edges are there in the graph Km,n?
Exercise 2.12.2. Prove that a complete bipartite graph Km,n is the join Gm ∗ Gn of graphs Gm and Gn, where Gm has m vertices and no edges, and Gn has n vertices and no edges.
2.13. Examples.
Example 2.13.1. A star network is a K 1 ,n bipartite graph.