6 lines
206 B
Python
6 lines
206 B
Python
from automata.deterministic_automaton import DeterministicAutomaton
|
|
|
|
|
|
def is_initial_state_a_final_one(automaton: DeterministicAutomaton):
|
|
return automaton.is_final_state(automaton.get_initial_state())
|