Whether an automaton is standard, i.e.:
See also:
import vcsn
b = vcsn.context('lal_char(abc), b')
a = b.ratexp('a').standard() | b.ratexp('b').standard()
a
assert(not a.is_standard())
assert(a.standard().is_standard())
a = vcsn.automaton('''
digraph {
vcsn_context = "lal_char(abc), z"
I -> 0 [label = "<2>"]
0 -> 1 [label = "a"]
1 -> F
}''')
a
assert(not a.is_standard())
assert(a.standard().is_standard())
a = vcsn.automaton('''
digraph {
vcsn_context = "lal_char(abc), z"
I -> 0 -> F [label = "<2>"]
0 -> 1 [label = "a"]
1 -> 0 [label = "b"]
}''')
a
assert(not a.is_standard())
assert(a.standard().is_standard())