7 lines
276 B
Python
7 lines
276 B
Python
def get_number_of_transitions(automaton, symbol):
|
|
number_of_transitions = 0
|
|
for state in range(automaton.get_number_of_states()):
|
|
if automaton.get_target_state(state, symbol) is not None:
|
|
number_of_transitions += 1
|
|
return number_of_transitions
|