Kernel: Python 3
automaton.complement
Produce an automaton that accepts the complement of the language of the input automaton.
Precondition:
the labelset is free
the weightset is
the automaton is complete
the automaton is deterministic
Postcondition:
Result.is_complete()
Result.is_deterministic()
See also:
Examples
In [1]:
In [2]:
The prefix operator ~
invokes complement()
.
In [3]:
In [4]:
In [5]:
In [6]: