Kernel: Python 3
automaton.is_trim
Whether all its states are useful, i.e., accessible and coaccessible.
Preconditions:
None
Postconditions:
Result = aut.is_accessible and aut.is_coaccessible
See also:
Examples
In [1]:
The following automaton has useless states: 2 is not accessible, and 3 is not coaccessible.
In [2]:
In [3]:
False
Calling trim
returns the same automaton, but without any useless states:
In [4]:
In [5]:
True
In [6]:
In [7]:
False
In [8]:
In [9]:
False