An automaton that accepts all the factors of the words accepted by an automaton.
Algorithm:
Preconditions:
Postconditions:
Result == aut.prefix().suffix() == aut.suffix().prefix()
Caveat:
See also:
In [1]:
import vcsn
In [2]:
%%automaton -s a
context = "lan_char, q"
$ -> 0 <2>
0 -> 1 <3>a
1 -> 1 <4>b
1 -> 2 <5>\e
2 -> 3 <6>c
3 -> 4 <7>d
3 -> 5 <8>e
4 -> $ <9>
6 -> 0 <10>A
In [3]:
a.factor()
Out[3]: