Help me with this Please

Help me in understanding the bug please, I have been trying for the last two days. The problem is to check 2-edge connectivity in an undirected graph. I have created graph in the main function itself, which is two edge connected(2-edge connected graph is a graph which remains connected on removing any of the edge, simply graph without any bridge). Just try removing any edge in the main function which makes it disconnected. The output should be No, but I think there is some problem and it is returning Yes. My logic is explained in the comments in the program itself. Thanks beforehand.
My Solution