add forward sweep using Breadth-First-Search method