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

automaton.is_coaccessible

Whether all its states are coaccessible, i.e., its transposed automaton is accessible, in other words, all its states cab reach a final state.

Preconditions:

  • None

See also:

Examples

import vcsn

State 3 of the following automaton cannot reach a final state.

%%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 accessible returns a copy of the automaton without non-accessible states:

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