Seol mar théacs é seo: Minimal cost flow in processing networks :