Maximum Flow and Minimum-Cost Flow in Multi-Interfacei Networks.