Fix Breadth First Path Finder and Separate Degree method