Paths, flows, and routing (Chapter 4)