notebook.community
Edit and run
automaton
.context
The context (algebraic type) of an automaton.
See also:
In [1]: import vcsn a = vcsn.Q.expression('(<1/2>a*+<1/3>b*)*').automaton() a.context()
import vcsn a = vcsn.Q.expression('(<1/2>a*+<1/3>b*)*').automaton() a.context()
Out[1]: $\{a, b\}\rightarrow\mathbb{Q}$
In [2]: a.transpose().context()
a.transpose().context()
Out[2]: $\{a, b\}\rightarrow\mathbb{Q}$