Traffic congestion has become a major problem in many urban areas. Constructing new roads is very costly and often not possible. The most efficient way to manage traffic is through proper traffic light timing and phasing. The document describes a methodology to model traffic flow at a junction as a graph and use linear programming to determine optimal light phasing durations to minimize total wait time.