automaton.context

The context (algebraic type) of an automaton.

See also:

Examples

In [1]:
import vcsn
a = vcsn.Q.expression('(<1/2>a*+<1/3>b*)*').automaton()
a.context()
Out[1]:
$\{a, b, \ldots\}\to\mathbb{Q}$
In [2]:
a.transpose().context()
Out[2]:
$\{a, b, \ldots\}\to\mathbb{Q}$