Worst question with least explanation about details! Nothing mentioned!


#1

adjacency matrix representation is completely wrong, according to the question it should be of the undirected graph! return node of the cloned graph not mentioned! How the driver function of printing nodes are working should be given at least for debugging!