Graph Theory Summary Notes
Graph Theory Summary Notes
YANG LU 1
CS1231 Discrete Structure
Chapter 11 Graph Theory
Summary Notes
Contents
Section 1 Terminology
Undirected Graph
Directed Graph
Complete Graphs
Complete Bipartite Graph
Subgraphs
Vertex Degree
The Handshake Theorem
Section 2 Connectivity
Section 3 Euler Tour
Section 4 Hamilton Cycles
Section 5 Graph Representation
Last Edit: 18
th
October 2014
Section 1 Terminology
Undirected Graph
1. A pseudograph = ((), (),
) consists of
a non-empty vertex set () of vertices
an edgeset () of edges
an incidence function
: () {{, } | , ()}.
[NOTE: vertex set () must be non-empty]
2. Edges are undirected in an undirected graph.
3. An edge e is a loop if
(
1
) =
(
2
).
5. A simple graph is a pseudograph with no loops and parallel edges
6. A multigraph is a pseudograph with no loops.
7. An edge e is incident with vertices u and v (vice versa) if
) consists of
a non-empty vertex set () of vertices
an edgeset () of edges
an incidence function
: () {(, )| , ()}
[NOTE: difference with undirected graph here is the use of notation of round brackets instead
of curly brackets ordered pair is used indicate the importance of sequence]
11. The directed edge e start at initial vertex u and end at terminal (or end) vertex v if
() = (, ).
12. A directed edge e is a loop if
(
1
) =
(
2
).
14. A simple directed graph is a directed multigraph with no loops and multiple directed edges.
Complete Graphs
15. A complete graph on n vertices, denoted by Kn, is a simple graph in which every two distinct
vertices area adjacent.
Number of edges in complete graph Kn = |(
)| = (
2
) =
(1)
2
Complete Bipartite Graph
16. A completebipartite graph on (m,n) vertices, denoted b Km,n, is a simple graph with
(
,
) = {
1
,
2
, . . . ,
} {
1
,
2
}
(
,
) = { {
} | = 1; = 1 }
Number of edges between u vertices on the top or bottom = |(
,
)| =
Subgraphs
17. A graph H is a subgraph of a graph G if
() ()
() ()
() (
() =
())
Vertex Degree
18. The degree
() = 2|()|
()
COROLLARY 1
Sum of degrees of all vertices of G is even.
PROOF: Combinational Proof
1) List each edge and label its endpoints with the vertex names.
2) The number of times each vertex name is used is the vertex degree.
3) All vertex names appear 2|()| times, by STEP 1.
4) This is also the sum of all the vertex degrees, by STEP 2.
Q.E.D.
COROLLARY 2
In an undirected graph, the number of vertices of odd degree is even.
PROOF: Direct Proof
1) Let V1 and V2 be the sets of vertices of odd and even degree in G, respectively.
2) Therefore,
()
1
+
()
2
=
()
()
3) Therefore RHS is even, by Theorem 1.
4) Therefore LHS is even by STEP 3.
5)
()
1
is even.
6) Therefore
() =
1
(
()
1
1) + 1
1
and |
1
| = 1
1
, |
1
| is even.
Q.E.D.
CS1231 Graph Theory Summary Notes
YANG LU 4
Section 2 Connectivity
1. A walk of length n in an undirected graph G is a finite alternating sequence of vertices and edges
of G such that,
0
1
1
2
1
for I = 1, n
vertices vo and vn are the origin and terminus respectively
v1 vn-1 are internal vertices
if in a simple graph a walk can be specified uniquely by its vertex sequence
2. A trail is a walk with distinct edges. [no repeated edges]
3. A path is a trail with distinct vertice. [no repeated vertices except for origin or terminus]
4. An undirected graph G is connected if there is a walk between every pair of distinct vertices of G.
5. An undirected graph H is a connected component of the undirected graph G if
H is a subgraph of G,
H is connected,
No connected subgraph of G has H as a proper subgraph.
[Contains maximum number of edges]
THEOREM 2
There is a path between every pair of distinct vertices of a connected undirected
graph
PROOF: Direct Proof
1) Let u and v be 2 distinct vertices of G. There is at least one walk between u and v, by definition.
2) Choose the walk of least length.
3) This walk of least length is a path.
PROOF: Contrapositive Proof
1) Let
,
1
1
.
CS1231 Graph Theory Summary Notes
YANG LU 5
Section 3 Euler Tour
1. An Euler trail in G is a trail traversing every edge of G.
2. A closed walk is a walk with positive length that starts and ends at the same vertex (i.e. same origin
and terminus).
3. A tour in G is a closed walk that traverses each edge if G at least once.
4. An Euler tour in G is a tour traversing each edge exactly once (i.e. closed Euler trail).
THEOREM 3
If a non-empty connected multigraph has an Euler tour, it has no vertices of odd
degree.
PROOF: Contrapositive Proof
If some vertex of a non-empty connected multigraph has odd degree, it does not have an Euler tour.
1) Let G be the graph with an Euler tour C starting and ending at vertex u.
2) Each time a vertex v occurs as an internal vertex of C, 2 of its edges are accounted for.
3) Since C contains every edge of G,
() is even.
THEOREM 4
If a non-empty connected multigraph has no vertices of odd degree, it has an
Euler tour.
PROOF: Direct Proof
1) Pick any vertex u of graph G to start.
2) Since very vertex has even degree, an edge must be going out.
3) Therefore a closed trail C can be chosen from G.
4) If C contains every edge of G, it is an Euler tour of G.
5) Otherwise, construct subgraph G by removing all edges of C from G and any resulting isolated
vertices. G may be discounted but every vertex of G has even degree.
6) Since G is connected, a vertex u common to C and G can be picked.
7) Starting at u, choose a closed trail C from G.
8) Patch C and C together into one closed trail C.
9) Let C = C and go back to STEP 3.
CS1231 Graph Theory Summary Notes
YANG LU 6
PROOF: Contradiction [ALTERNATIVE]
1) Suppose no vertex connected to C and G can be produced.
2) No vertex G is incident with edge of C.
3) There does not exist a walk between C and G.
4) A contradiction is derived.
5) Therefore, graph G is no longer connected.
THEOREM 5
A non-empty connected multigraph has an Euler tour if and only if it has no
vertices of odd degree.
COROLLARY 3
A non-empty connected multigraph has an Euler trail but not an Euler tour if and
only if it has exactly 2 vertices of odd degree.
Section 4 Hamilton Cycles
1. A Hamilton path in G is a path containing every vertex of G.
2. A cycle in G is a closed trail whose origin and internal vertices are distinct.
3. A Hamilton cycle in G is a cycle containing every vertex of G.
PROPOSITION: If a multigraph G has a Hamilton cycle, G has a subgraph H with the following
properties:
a. () = ()
b. H is connected
c. |()| = |()|
d. ()
() = 2
CONTRAPOSITIVE: If a multigraph G does not have a subgraph H with properties a to b, G does not
have a Hamilton cycle.
CS1231 Graph Theory Summary Notes
YANG LU 7
Section 5 Graph Representation
1. Let G be an undirected graph and the vertices are ordered as () = {
1
}. The adjacency
matrix of G is the matrix () = |
| such that
= |{ ()|
() = {
}}|
Remark: () is symmetric (i.e.
for 1 , ).
2. Let D be a directed graph and the vertices are ordered as () = {
1
| such that
= |{ ()|
() = {
}}|
Remark: () may not be symmetric
3. Suppose that = (, ) is a simple graph where || = ;
Suppose that vertices of G are listed arbitrarily as
1
,
2
;
The adjacency matrix A (or AG) of G, with respect to this listing of the vertices, is the zero-
one matrix with 1 as its (, )th entry when vi and vj are adjacent, and 0 as its (, )th entry when
they are not adjacent.
THEOREM 6
Let G be a graph with vertices ordered as () = {
1
.
Remark: ()
0
= .
--- THE END ---