def get_solution(self, finish_node: State) -> Solution: solution = Solution() solution.state_sequence = self.get_state_sequence(finish_node) solution.action_sequence = self.get_action_sequence( solution.state_sequence) solution return solution