def get_best_action(self, location, targets): """ @param location: current location @param targets: an iterable container of equally desirable target locations @return: the first action in the shortest path """ best_actions = AscDP.get_best_actions(location, targets, self.transition_table.backwards, self.transition_table.forwards) if best_actions: return list(best_actions)[0]