Using BFS in GALACTIK but WA

SOLUTION :
https://www.codechef.com/viewsolution/38756883

PLZ give me testcase which i am missing … i am trying too hard but all in vain… plzz help in this problem of making whole graph connected

is there any test case which is not able to do , plz help anyone or atleast give it a try … its a good problem