Fixed issue with host BFS path and add mincut procedure