Slightly improve graph building performance when creating a
ScheduledStopPattern.