Why my cycledetectbfs() is not working

plz debug my code as it is not priniting any output.

there is no function named cycledetectbfs in your code