|
"""
|
|
Rozwiązanie zadania 203.
|
|
"""
|
|
|
|
from deterministic_automaton import DeterministicAutomaton
|
|
def get_number_of_transitions(automaton, symbol):
|
|
d = 0
|
|
for state in range (0,automaton.get_number_of_states()):
|
|
if(automaton.get_target_state(state,symbol) != None): d += 1
|
|
return d |