parameters: (self, data)
docstring: Initializes the total time matrix.
docstring_summary: Initializes the total time matrix.
docstring_tokens: Initializes the total time matrix .
function: def __init__(self, data):
          """Initializes the total time matrix."""
          self._total_time = {}
          # precompute total time to have time callback in O(1)
          for from_node in range(data.num_locations):
              self._total_time[from_node] = {}
              for to_node in range(data.num_locations):
                  if from_node == to_node:
                      self._total_time[from_node][to_node] = 0
                  else:
                      self._total_time[from_node][to_node] = int(
                          self.service_time(data, from_node) + self.travel_time(
                              data, from_node, to_node))
function_tokens: def __init__ ( self , data ) : self . _total_time = { } # precompute total time to have time callback in O(1) for from_node in range ( data . num_locations ) : self . _total_time [ from_node ] = { } for to_node in range ( data . num_locations ) : if from_node == to_node : self . _total_time [ from_node ] [ to_node ] = 0 else : self . _total_time [ from_node ] [ to_node ] = int ( self . service_time ( data , from_node ) + self . travel_time ( data , from_node , to_node ) )