pub fn network_simplex<G, F, Bs, Ls, Us, Cs>(
g: &G,
balances: Bs,
lower: Ls,
upper: Us,
costs: Cs,
) -> Option<(F, Vec<(G::Edge<'_>, F)>)>Expand description
Solve a min-cost-flow problem with a network simplex algorithm.
The function returns the objective value and the optimal flow.