Kernel: Python 3
automaton.is_empty
Whether the automaton is empty, i.e., it has no states.
See also:
Examples
In [1]:
In [2]:
This automaton is useless (it accepts the empty language), yet it is not empty.
In [3]:
False
If we trim it, then it is empty (which is why it seems that there is no result):
In [4]:
In [5]:
True