A survey of network flow applications