code: def add_event(self, event):
          
          assert event.dep_time_ut <= event.arr_time_ut
          heappush(self.heap, event)
docs: Add an event to the heap/priority queue
  
          Parameters
          ----------
          event : Event