Idea · Sep 29, 2026
Chokepoint Simulator
Students build a web app that loads a real trade or transport network, lets users close a node or link, and recomputes flows, reroutes, and bottlenecks with max-flow/min-cut and shortest-path algorithms.
What it would do
Graph algorithms become memorable when the graph is the world. In this multi-week assignment, teams ingest an open network dataset (country-to-country trade flows, a national rail or airline route map, or a city's transit graph), build a capacity-weighted directed graph, and implement the core algorithms themselves: Dijkstra for rerouting cost, Edmonds-Karp or Dinic for max flow between chosen regions, and min-cut extraction to name the true chokepoints. The front end is a map where a user clicks to 'close' a port, strait, station, or edge, and the app animates how flow redistributes, which destinations lose supply, and how much extra distance the reroutes cost. Milestones progress from data cleaning and graph construction, to correctness tests against networkx on small graphs, to performance work on the full dataset, to a written 'what-if' brief where each team defends one scenario with numbers. An optional stretch adds betweenness centrality to compare 'busy' nodes against 'critical' ones.
Key features
- Ingestion pipeline turning an open dataset into a capacity-weighted directed graph
- Student-implemented Dijkstra, max-flow (Edmonds-Karp or Dinic), and min-cut extraction with tests against networkx
- Interactive map where closing a node or edge animates flow redistribution and reroute cost
- Scenario comparison table (lost supply, added distance, new bottlenecks) exportable as CSV
- Final 'what-if' brief that defends one disruption scenario with algorithmic evidence