Multi-commodity network flow