From comments on first PR : generateBFS does not take anything
in parameters anymore (juste have to do a map instead).
generateBFS -> asBFS