Return an ambiguous word, or raise if the automaton is unambiguous.
Preconditions:
Postconditions:
See also:
In [1]:
import vcsn
In [2]:
a = vcsn.context('lal_char(abcd), b').expression('abc').standard()
a
Out[2]:
In [3]:
a.is_ambiguous()
Out[3]:
In [4]:
try:
a.ambiguous_word()
except RuntimeError as err:
print("error:", err)
In [5]:
a = a + a
a
Out[5]:
In [6]:
a.ambiguous_word()
Out[6]: