Please see my code i am not able to print bfs traversal of graph

Your Mistakes

  1. you misspell v in constructor (line no 14)
  2. You forgot to pop the element from queue
    Modified Code
    https://ide.codingblocks.com/s/471488

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.