Create a new automaton from the accessible part of the input, i.e., the subautomaton whose states can be reached from an initial state.
Preconditions:
Postconditions:
See also:
import vcsn
The following automaton has states that cannot be reached from the initial(s) states:
%%automaton a dot
digraph
{
vcsn_context = "lal_char(abc), b"
I -> 0
0 -> 1 [label = "a"]
1 -> F
i -> 0 [label = "a"]
1 -> f [label = "a"]
}
a.is_accessible()
Calling accessible
returns a copy of the automaton without non-accessible states:
a.accessible()
a.accessible().is_accessible()