fixed bug: bfs returned probas instead of the predictions (tuples)