FlowGrid models a city as a weighted graph and puts proven algorithms to work — A* and Dijkstra routing, Webster and adaptive signal control, Holt-Winters demand forecasting — to keep every corridor moving.
Six integrated modules take you from city-wide monitoring down to the timing of a single signal phase.
The same four-stage loop runs behind every screen in FlowGrid.
Time-of-day demand, road volume/capacity ratios and incident feeds describe the current state of every link.
Intersections become vertices, roads weighted edges. BPR volume-delay curves turn load into travel time.
Graph search finds routes, Webster and greedy allocators split green time, Holt-Winters forecasts demand.
Signal plans, reroutes and emergency corridors are issued — and verified in simulation before deployment.
Every algorithm is implemented from scratch in Python, unit-tested and benchmarked. Each one maps to a real traffic-management decision.
See benchmarks| Algorithm | Design technique | Complexity | Used for |
|---|---|---|---|
| Dijkstra | Greedy + binary heap | O((V+E) log V) | Fastest route |
| A* search | Heuristic best-first | ≤ Dijkstra | Goal-directed routing |
| Bellman–Ford | Dynamic programming | O(V·E) | Negative-cost tolls/incentives |
| BFS | Level-order traversal | O(V+E) | Fewest road segments |
| Yen's k-shortest | Spur-path deviation | O(kV·Dijkstra) | Alternative routes |
| Floyd–Warshall | Dynamic programming | O(V³) | Travel-time matrix, hub siting |
| Kruskal + DSU | Greedy | O(E log E) | Minimum maintenance network |
| Webster timing | Analytical optimisation | O(k) | Cycle length & splits |
| Bounded proportional split | Greedy, exact breakpoint solve | O(k log k) | Adaptive green time |
| Holt-Winters | Exponential smoothing | O(n) | Demand forecasting |
Open the Control Center and fast-forward through a full day of traffic in under a minute.