Graph Theory Summary Notes
Short Description
Self-made revision notes for Module CS1231 Discrete Structure...
Description
CS1231 Graph Theory Summary Notes
CS1231 Discrete Structure
Chapter 11 Graph Theory Summary Notes
Contents Section 1 Terminology Undirected Graph
Vertex Degree The Handshake Theorem
Directed Graph
Section 2 Connectivity
Complete Graphs
Section 3 Euler Tour
Complete Bipartite Graph
Section 4 Hamilton Cycles
Subgraphs
Section 5 Graph Representation
Last Edit: 18th October 2014
Section 1 Terminology Undirected Graph 1. A pseudograph πΊ = (π(πΊ), πΈ(πΊ), ππΊ ) consists of ο·
a non-empty vertex set π(πΊ) of vertices
ο·
an edge set πΈ(πΊ) 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 ππΊ (β
) = {π’, π’} = {π’} for some π’ β π(πΊ). 4. Two distinct edges β
1 and β
2 are multiple (or parallel) edges 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 ππΊ (β
) = {π’, π£}. The edge e is said to connect its endpoints u and v. 8. Two vertices are adjacent (or neighbours) if they are incident with a common edge. 9. Two edges are called adjacent if they are incident with a common vertex.
YANG LU
1
CS1231 Graph Theory Summary Notes
Directed Graph 10. A directed multigraph πΊ = (π(π·), πΈ(π·), ππ· ) consists of ο·
a non-empty vertex set π(π·) of vertices
ο·
an edge set πΈ(π·) 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 ππ· (β
) = (π’, π’) for some π’ β π(π·). 13. The directed edges e1 and e2 are multiple directed edges 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 complete bipartite 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 ππΊ (π£) of a vertex v in an undirected graph G is the number if edges incident with v, each loop counting as 2 edges. A vertex of degree 0 is isolated. YANG LU
2
CS1231 Graph Theory Summary Notes
The Handshake Theorem THEOREM 1 Let G be an undirected graph. Then
β ππΊ (π£) = 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 and |π1 | = βπ£βπ1 1, |π1 | is even. 1
Q.E.D.
YANG LU
3
CS1231 Graph Theory Summary Notes
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 β
π π£π ο·
β
π connects its endpoints π£πβ1 and π£π 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 β¦ π£π be the vertex sequence of a walk between distinct vertices v0 and vn. 2) By definition, this walk exists because the graph is connected. If the walk is not a path, then π£π = π£π for some i and j with 0 β€ β
β€ π. 3) Therefore, there is a walk from π£0 to ππ of shorter length with vertex sequence π0 β¦ ππβ1 π£π β¦ ππ obtained by deleting the edges corresponding to the vertex sequence ππ β¦ π£πβ1 .
YANG LU
4
CS1231 Graph Theory Summary Notes
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 for all π£ β π’. 4) Since C starts and ends at u, ππΊ (π’) 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. YANG LU
5
CS1231 Graph Theory Summary Notes 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.
YANG LU
6
CS1231 Graph Theory Summary Notes
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 β¦ π£π }. The adjacency matrix of D is the π Γ π matrix π΄(π·) = |πππ | 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 π Γ π zeroone 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 β¦ π£π } and with adjacency matrix π΄(πΊ). Then for each non-negative integer k, number of walks of length k from vi to vj equals to the (i, j)th entry of π΄(πΊ)π .
Remark: π΄(πΊ)0 = πΌ.
--- THE END ---
YANG LU
7
View more...
Comments