Repeat the above graph generation steps for the following with appropriate input
and output:
2. Develop an algorithm to construct a connected graph on v vertices with
average degree of d for vertices, where vand dare parameters.
3. Develop an algorithm to construct a connected graph with diameter D, where
D is a parameter.