init min cost flow