from automata.deterministic_automaton import DeterministicAutomaton def is_initial_state_a_final_one(automaton: DeterministicAutomaton): return automaton.is_final_state(automaton.get_initial_state())