Why the instructor is not using vectors but list?
I have read that vectors are faster than the list, so why he has given list more priority than vectors?
Graph Breadth FIrst search
@Rhinorox because in bfs we need to pop front which is not supported in vector.
i hope its cleared if yes dont forget to mark the doubt resolved