Whether the automaton is useless, i.e., whether it has successful computations. Morally, should be equivalent to whether it accepts no words, but see below.
This is equivalent to testing whether the trim part is empty.
Caveat:
See also:
import vcsn
%%automaton -s a
0 -> 0 a, b
0 -> 1 a
1 -> 1 a, b
This automaton is not empty, but totally useless:
a.is_empty()
a.is_useless()
If we trim it, then it is empty (which is why it seems that there is no result):
a.trim()
a.trim().is_empty()
On some specific structures, automaton.is_useless
returns false although the automaton accepts no words.
%%automaton -s a
context = "lal_char, z"
$ -> 0
0 -> 1 a
0 -> 2 <-1>a
1 -> $
2 -> $
a.is_useless()
a.shortest(10)