Professional Documents
Culture Documents
Assignment – 2 (Solution)
Graph Theory
Problem:
A vector 𝑣 is called a graphical vector if there exists a simple graph such that 𝑣 is the degree vector of
that graph. Thus [3, 3, 3, 1] is not a graphical vector.
(a) Demonstrate a theorem that gives a necessary and sufficient condition for a vector to be a
graphical vector.
Solution:
(b) Use the theorem to develop an algorithm to test whether an arbitrary vector with integer
components is a graphical vector.
Solution
Page 1 of 1