Basic maximum network flow realized and BFS