New mathematical models can help guide changes to the layout of poor urban neighborhoods to improve access to resources with minimum disruption and cost.