Contact
CoCalc Logo Icon
StoreFeaturesDocsShareSupport News AboutSign UpSign In
| Download
Views: 45900
Kernel: Python 3

automaton.complete

Make an automaton complete, i.e., there is an outgoing transition from every state for every labels.

Precondition:

  • the labelset is free

Postcondition:

  • Result.is_complete()

See also:

Examples

import vcsn z = vcsn.context('lal_char(abc), z')
a = z.expression('(<2>a<3>b)*').standard() a
Image in a Jupyter notebook
a.is_complete()
False
a.complete()
Image in a Jupyter notebook
a.complete().is_complete()
True