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

automaton.coaccessible

Create a new automaton from the coaccessible part of the input, i.e., the subautomaton whose states can be reach a final state.

Preconditions:

  • None

Postconditions:

  • Result.is_coaccessible

See also:

Examples

import vcsn

The following automaton has states that cannot be reach any final(s) states:

%%automaton a context = "lal_char(abc), b" $ -> 0 0 -> 1 a 1 -> $ 2 -> 0 a 1 -> 3 a
Image in a Jupyter notebook
a.is_coaccessible()
False

Calling coaccessible returns the same automaton, but without its non-coaccessible states:

a.coaccessible()
Image in a Jupyter notebook
a.coaccessible().is_coaccessible()
True