Network flows and network design in theory and practice