0% found this document useful (0 votes)
20 views3 pages

Graph Theory Tutorial Exercises

Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
20 views3 pages

Graph Theory Tutorial Exercises

Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Tutorial Exercises

1. (a) If G and H are isomorphic graphs, then show that (i) |V (G)| = |V (H)|, (ii) |E(G)| = |E(H)| , (iii) if (f, g)
is an isomorphism between G and H, then show that degG (v) = degH (f (v)), for every v ∈ V (G) and (iv) if
f (u) = v, then f |N (u) is an isomorphism between [NG (u)] and [NH (v)].
(b) Give examples of two non-isomorphic graphs with the same degree sequence.

2. An automorphism of a graph G is an isomorphism f : G → G. If f is an automorphism of a simple graph G, then


show that G − u ≃ G − f (u).
3. Draw all the non-isomorphic simple graphs on n vertices for n = 1, 2, 3, 4.
4. Show that the set of all automorphisms of a simple graph G form a permutation group under the usual binary
operation of functions. Describe the automorphism groups of the following graphs:

G1 G2 G3 G4

5. If H is a subgraph of a simple graph G, does it follow that H c is a subgraph of Gc .


6. A simple graph G on 6 vertices v1 , v2 , v3 , v4 , v5 , v6 has (i) 7 edges in G − v1 and G − v2 , (ii) 6 edges in G − v3 and
G − v4 , (iii) 5 edges in G − v5 and G − v6 . Find the number of edges in G.

7. Draw all the simple graphs G on 6 vertices such that G − u ≃ G − v, for every pair u, v of vertices.
8. A simple graph G on 5 vertices v1 , v2 , v3 , v4 , v5 is such that (i) G − v1 ≃ G − v2 ≃ G − v3 ≃ K2 ∪ K2 , and (ii)
G − v4 ≃ G − v5 ≃ K3 ∪ K1 . Draw G.
9. (a) Verify which of the following sequences are graphic, using (I) Havel-Hakimi Theorem, and using (II) Erdös-
Gallai Theorem.
(i) (5, 5, 5, 2, 2, 2, 1)
(ii) (4, 4, 4, 4, 2, 2, 0)
(b) Whenever a sequence S is graphic (in part (a)), construct a simple graph with S as degree sequence using
Havel-Hakimi Theorem.
10. Give an example of a simple graph that cannot be realized by using the algorithm following Havel-Hakimi criterion.

11. (a) Let G be the graph shown below.

Construct a 3- regular simple graph H such that G ⊑ H.


(b) Show that any simple graph G has a ∆(G)-regular simple supergraph H such that G is an induced subgraph
of H. (If G ⊆ H, then H is called a supergraph of G).
12. Show that any two longest paths in a connected graph have a vertex in common. Does this assertion hold for a
disconnected graph?
13. Let G be a triangle-free graph and let C be a cycle of minimum length in G. Show that every vertex in V (G)−V (C)
is adjacent with at most two vertices of C.
14. Prove or disprove: If G is a connected graph with cut-vertices and if u and v are vertices of G such that d(u, v) =
diam(G), then no block of G contains both u and v.

15. Show that every graph with a cut-vertex has at least two end-blocks. (A block H of G is called an end-block if it
contains exactly one cut-vertex of G.)
16. Draw the following simple graphs:
(a) A graph on 10 vertices with 3 components that has maximum number of edges.
(b) A connected graph (on at most 10 vertices) which has exactly 3 cut-vertices and exactly 2 cut-edges.

17. For any two graphs G1 and G2 , show the following.


(a) k0 (G1 ∪ G2 ) = 0.
(b) k0 (G1 + G2 ) = min{k0 (G1 ) + n(G2 ), k0 (G2 ) + n(G1 )}.
(c) k1 (G1 ∪ G2 ) = 0.
(d) k1 (G1 + G2 ) = δ(G1 + G2 ).
18. Give an example of a graph G with the following properties or state why such examples do not exist.
(a) k0 (G) = 3, k1 (G) = 4 and δ(G) = 5
(b) k0 (G) = 2, k1 (G) = 2 and δ(G) = 4

19. Use Dijkstra’s algorithm to compute a shortest path from the vertex a to every other vertex in the edge weighted
graph shown in Figure 1(a). Show the weighted paths generated at each step of the algorithm.

b 7 d
2
1
d 4 c
a 2 f
1 10
5 6 2
5
c 3 e a 1 b
(a) Qn. No. 19 (b) [Link]. 20

Figure 1

20. Find the entry in the first row and second column of the matrix generated after applying one iteration of the
Floyd-Warshall algorithm to the weighted graph shown in the Figure 1(b).
21. Let G be a forest with k components. How many edges should one add to G, so that the resulting graph is a tree?
22. Show that in a tree T there are at least ∆(T ) vertices of degree 1.
23. If G is a simple, 3-regular, connected graph, then show that in every spanning tree T of G, n1 (T ) = n3 (T ) + 2,
where ni (T ) = the number of vertices of degree i in T .
24. A tree T on 10 vertices has exactly one vertex of degree 4 and exactly one vertex of degree 3. Find the maximum
degree of T and find all the possible degree sequence of T . Draw three such non-isomorphic trees.
25. The maximum degree of a tree T is 5 and let ni (T ) denote the number of vertices of degree i. If n1 (T ) = 50 and
n2 (T ) = n3 (T ) = n4 (T ) = n5 (T ), find the number of vertices in T .

26. Let G be a graph shown in Figure 2.

6 4

7 3

1 2

Figure 2: G

Draw the following spanning trees of G.

(i) A spanning tree which is a complete binary tree.


(ii) A spanning tree of diameter 5.
(iii) A spanning tree T such that distT (1, v) = distG (1, v), for every vertex v.
27. Prove or disprove: The two trees T1 and T2 with Prüfer codes (1, 2, 1, 2, 1, 2) and (1, 1, 1, 2, 2, 2) respectively are
isomorphic.
28. By using Kruskal’ algorithm compute a minimum weight spanning tree of the graph whose weighted adjacency
matrix is given below. Show the tree generated at every step of the algorithm.

2 6
4
1 c 1
3 2 2
b d
6 e 2 4

29. Find a minimum spanning tree of the weighted graph shown below by using Prim’s algorithm with g as the starting
vertex. Draw all the intermediate trees which lead to M ST . What is the total weight of M ST ?

b 9 c

1 8 2 4
7
f d
a 6
11 10 5 3

g 12 e

30. Draw a simple Eulerian graph G for some n (4 ≤ n ≤ 10) with k0 (G) = 1 and k1 (G) = 4.
31. Draw a simple graph with n = 7, δ(G) ≥ 3 and containing no closed Eulerian trail but containing an open Eulerian
trail.

32. Does there exists a simple Eulerian graph on even number of vertices and odd number of edges? Justify your
answer.

Common questions

Powered by AI

Kruskal’s algorithm generates a minimum spanning tree by selecting edges in ascending order of their weights, ensuring no cycle is formed, and continues until the tree spans all vertices. The condition of edge selection in nondecreasing order ensures that each step contributes to the minimal sum of edge weights, optimizing the overall spanning tree cost.

The Floyd-Warshall algorithm uses dynamic programming to iteratively update a distance table for all pairs of vertices, considering each vertex as an intermediate point in path consideration. At each iteration, it checks if the existing path between two vertices can be improved by passing through the current intermediate vertex, updating the path cost if it finds a shorter path, ensuring that its final output represents the shortest paths.

Yes, it is possible for two non-isomorphic graphs to have the same degree sequence. An example of this would be two graphs with the degree sequence (2, 2, 2, 2), as they can be arranged in different structures that are not isomorphic to each other.

A graph with a cut-vertex has at least two end-blocks. An end-block is a block containing exactly one cut-vertex of the graph. This structural feature means that removing the cut-vertex will increase the number of connected components by at least one and delineate the end-blocks in which each contains the cut-vertex along with connected vertices.

No, a simple Eulerian graph on an even number of vertices cannot have an odd number of edges. Eulerian graphs must have all vertices of even degree, which by the Handshaking Lemma, means the sum of the degrees (equal to twice the number of edges) is also even. Therefore, an Eulerian graph must have an even number of edges.

If two vertices u and v are at the diameter distance of a connected graph G, and G has cut-vertices, then no block of G can contain both u and v. This is because the presence of cut-vertices implies that the longest paths (potentially diameter-spanning paths) cross these cut-vertices and demarcate blocks, preventing u and v from sharing the same block.

Dijkstra's algorithm finds the shortest path by iteratively selecting the vertex with the minimum tentative distance that has not been visited, updating the shortest known distances to its neighbors through it, and marking it as visited. This greedy approach ensures each vertex's computed distance is optimal, leading to the shortest path from the initial vertex.

In a connected graph, any two longest paths must share a vertex because their lack of overlap would negate their status as longest paths—additional connecting vertices would yield longer paths. In a disconnected graph, this property fails as paths exist independently in separate components, resulting in multiple non-overlapping longest paths.

For two graphs G and H to be considered isomorphic, they must satisfy several conditions: (i) They must have the same number of vertices, |V(G)| = |V(H)|. (ii) They must have the same number of edges, |E(G)| = |E(H)|. (iii) There must exist an isomorphism (f, g) such that for every vertex v in V(G), the degree of v in G equals the degree of its image f(v) in H, degG(v) = degH(f(v)).

The set of automorphisms of a simple graph forms a permutation group by the usual binary operation of functions because automorphisms are bijective mappings from the graph to itself that preserve adjacency. This results in a set of permutations of the graph's vertices that obey group properties: identity, inversibility, and associativity. This implies the graph has symmetric properties corresponding to these permutations.

You might also like