Wrong implementation of the Breadth-First search algorithm.
Cheking it with the barabasi albert network.
Readme fixed.