MAT3500 - Graph Theory Assignment - Part 1
Graph Theory I - Hoang Anh Duc - MIM - HUS - VNU
Work 1.
Block
- Solution:
Block
Work 3.
- A regular graph is a graph where all of its vertices have the same degree. We call a graph -regular graph if it is a regular graph which all vertices have the same degree of .
Block
- (Complete graph): Each vertex connects to every other vertex. The degree of each vertex is , making regular for all .
- (Cycle graph): Each vertex in a cycle graph connects to two neighbors. The degree of every vertex is , so is regular for all .
- (Wheel graph): Consists of a cycle and a central vertex connected to all vertices of the cycle. Central vertex degree: . Cycle vertices degree: . Only when (triangle + center), all vertices have degree , making regular.
- (Hypercube graph): Each vertex connects to others (binary representation differing by bit). Degree is for all vertices, so is regular for all .
Work 5.
-
A simple undirected graph is a bipartite graph if and only if there is a way to color each vertex of with two colors such that no two adjacent vertices are colored the same.
-
(a) Prove the statement above.
-
Solution:
- To prove the statement that a graph is bipartite if and only if there exists a way to color each vertex with two colors such that no two adjacent vertices are colored the same, we will prove both directions.
- Proof (If Part): Assume is a bipartite graph. By definition, a bipartite graph can be partitioned into two disjoint sets and , such that every edge connects a vertex in to a vertex in . We can color the vertices of with one color (say color 1) and the vertices of with another color (say color 2). Since edges only connect vertices from to , no two adjacent vertices will share the same color. Therefore, such a 2-coloring exists, proving that a bipartite graph can be 2-colored.
-
Proof (Only If Part): Now, assume that there exists a 2-coloring of the vertices of such that no two adjacent vertices share the same color. We will show that is bipartite. Partition the vertices of into two sets: one containing all vertices colored with color 1, and the other containing all vertices colored with color 2. Since adjacent vertices are colored differently, all edges must connect a vertex in the first set to a vertex in the second set. Thus, is bipartite by definition. Conclusion: A graph is bipartite if and only if there exists a way to color the vertices with two colors such that no two adjacent vertices share the same color.
- (b) Are these graphs a bipartite graph.

-
Solution:
- -> Yes
- -> No (Contains cycle)
- -> No (Contains cycle)
Work 6.
How many vertices and edges does these graphs have:
(a) K_n (d) K_{m, n}
(b) C_n (e) Q_n
(c) W_n
Markdown
- Solution:
(a) n_v = n, n_e = (n(n-1))/2
(b) n_v = n, n_e = n
(c) n_v = n, n_e = 2(n-1)
(d) n_v = m+n, n_e = m.n
(e) n_v = 2^n, n_e = n.2^(n-1)
Markdown
Work 7.
-
Given a simple undirected graph with vertices. Let be a subgraph of with at least two vertices. Prove that if is a bipartite graph, then is also a bipartite graph.
-
Solution:
- Bipartition of : Since is bipartite, by definition, there exists a partition of 𝑉 V into two sets and such that for every edge , we have and , or and .
- Subgraph : Let be a subgraph of , where and . The key observation is that the edges of are subsets of the edges of , meaning that each edge in connects two vertices in and is also an edge in .
- Induced Bipartition: Since is bipartite, its partition induces a partition on . Specifically: Let be the set of vertices in that belong to , Let be the set of vertices in that belong to .
- Edges in : Any edge in is an edge in , and since is bipartite, each edge in must connect a vertex in to a vertex in (since no edge in connects two vertices within or within ).
- Conclusion: Since all edges in must connect a vertex in to a vertex in , the set of vertices is also bipartite, with the partition . Therefore, the subgraph is bipartite, because its vertices can be partitioned into two sets and , with edges only between vertices in different sets.
- Thus, we have shown that if is bipartite, then any subgraph of is also bipartite.
Work 11.
Block