In [1]:
import vcsn
def aut(e, ctx_exp):
ctx = vcsn.context(ctx_exp)
return ctx.expression(e).standard()
In [2]:
aut('\e', 'lal_char, zmin').has_negative_cycle()
Out[2]:
In [3]:
aut('(<-1>a)*', 'lal_char, zmin').has_negative_cycle()
Out[3]:
In [4]:
aut('a*', 'lal_char, zmin').has_negative_cycle()
Out[4]:
In [5]:
aut('(<0.5>a)*', 'lal_char, r').has_negative_cycle()
Out[5]:
In [6]:
aut('(<1.5>a)*', 'lal_char, r').has_negative_cycle()
Out[6]: