Graph Theory Practical M.Sc.-I
Graph Theory Practical M.Sc.-I
(a)
(b)
(c)
4) i) Find which of the graphs given in the following figure are self-
complementary.
ii) Prove that if 𝐺 is a self-complementary graph with 𝑛 vertices then 𝑛 is
either 4𝑡 𝑜𝑟 4𝑡 + 1 for some integer 𝑡.
iii) List all the self-complementary graphs with 4 or 5 vertices.
************************************************************
Practical No. -2
1) Draw the graphs having the following matrices as their adjacency matrix.
1 1 1 0 0
0 1 0 0
1 1 1 0 0
a) [1 0 2 2] b) 1 1 1 0 0
0 2 1 2
0 0 0 0 1
0 2 2 1 [0 0 0 1 0]
2) Write the adjacency matrix & the incidence matrix for the following Graphs.
4) From the adjacency matrix given below, find whether the associated graph is
connected or not.
0 0 1 0 0
0 1 0 0
0 0 0 1 0
𝐴= 1 0 0 0 1 B= [1 0 1 0]
0 1 0 1
0 1 0 0 1
[0 0 0 1 0
0 1 1 0]
5) By using Fusion algorithm find the adjacency matrix of the following graph.
1) Prove that any tree with at least two vertices is a bipartite graph.
2) Draw the complete bipartite graphs 𝐾18 𝑎𝑛𝑑 𝐾33 .
3) Let 𝑇 be a tree and let 𝑣 be the vertex of maximum degree in 𝑇 , say 𝑑(𝑣) =
𝑘. Prove that 𝑇 has at least 𝑘 vertices of degree 1.
4) Find all bridges in the following graphs.
2) Find the minimal spanning tree for each of the following connected
weighted graphs using Krushkal’s algorithm and prime’s algorithm.
3) Find the shortest path from source to all vertices using Dijkstra’s algorithm.
*******************************************************************
Practical No.5
(𝑛−1)!
1) (i) Prove that the complete graph 𝐾𝑛 has different Hamiltonian
2
cycles.
(ii) How many different Hamiltonian cycles does 𝐾𝑛𝑛 have?
2) Use Fleury’s algorithm to find a Eulerian trail in the graph given below.
*************************************************************
Practical No. 6
1) Solve the Chinese postman problem for the given graphs.
***********************************************************
Practical No 7
5) Amy, Beth, Cathy & Debby one is trying to decide on who to take to the
Silly Cone Valley High School Hop. The table below shows which boys they
would not mind taking. Is it possible for all 4 girls to choose suitable
partners? Answer this by first setting up a bipartite graph and checking in
details to see if Hall’s condition is satisfied by the set 𝑋 consisting of the 4
girls.
*******************************************************************
Practical No. 8
1) Starting with a matching consisting of a single edge, perform the
Hungarian method on bipartite graphs to determine whether or not the
graph have matching which saturate every vertex of the bipartition subset
𝑋.
2) For the graphs 𝐺 with matching 𝑀 shown by the shaded lines, find an M-
alternating path which is not M-augmenting.
1) Determine the chromatic number for the following graphs and provide
a brief explanation.
(I) 𝐾𝑛 (𝐼𝐼) 𝐾𝑚𝑛 .
2) Prove that 𝑋(𝐺) = ∆(𝐺) + 1 if and only if 𝐺 is either a complete graph
or a cycle of odd length.
3) Show that if 𝐺 contains exactly one odd cycle then 𝑋(𝐺) = 3 where
𝑋(𝐺) is a chromatic number.
4) Find a coloring of the regular bipartite graph 𝐺 by using simple
sequential coloring algorithm on the list 𝑥1 , 𝑥2 … , 𝑥8 as indicated.
***********************************************************
Practical No. 10
********************************************************
***********
Practical No 11
∑ 𝑖𝑑(𝑣𝑖 ) = ∑ 𝑜𝑑(𝑣𝑖 ) = 𝑞
𝑖=1 𝑖=1
4. Show that the diagraph is unilaterally connected but not strongly connected.
*******************************************************************
Practical No -12
1) Find the 𝑖𝑛(𝑣) and 𝑜𝑑(𝑣) for each vertex of the diagraph
𝑓𝑖𝑔. 𝐴
*************************************************************************************