Source (rotten)
Fresh (target)
Spreading
Rotted (step label)
Blocked

Controls

Time: O(V+E) | All sources enqueued at t=0

Steps

0 steps

Press Run to trace the algorithm one step at a time.