I begin to program the breadth-first search. I copy the code of the previous version.

Antoine.
I am trying but it is hardcore.