Traffic Lights

Initializing live version
Download to Desktop

Requires a Wolfram Notebook System

Interact on desktop, mobile and cloud with the free Wolfram Player or other Wolfram Language products.

At a normal traffic intersection, you will follow the instructions of the light directly in front of you. Did you know there are seven distinct light cycles that will prevent collisions? Graph theory can find these cycles, by labeling each lane, and connecting traffic-compatible lanes. The resulting graph (the order-4 Möbius ladder graph) can be 4-colored in seven distinct ways. Each coloring gives a different 60-second traffic cycle. Traffic engineers also use graph theory for more complex intersections.

Contributed by: Ed Pegg Jr (March 2011)
Open content licensed under CC BY-NC-SA




Feedback (field required)
Email (field required) Name
Occupation Organization
Note: Your message & contact information may be shared with the author of any specific Demonstration for which you give feedback.