Corrected glitch in the graph generator when there are many time windows