- Implement CS2 min-cost-flow adaptor and generalize common min-cost-flow stuff