Change bfs paths min length