Kernel: Python 3
automaton.is_cycle_ambiguous
Whether the automaton is cycle ambiguous, i.e., there exist a state and a label such that there is more than one cycle in labeled with .
Preconditions:
the labelset is free.
Examples
In [1]:
In [2]:
At state , the automaton has two cycles "ab" so it is cycle ambiguous.
In [3]:
True
In [4]:
At state , the automaton has two cycles with different label "ab", "ac" so it is not cycle ambiguous (it is cycle-unambiguous).
In [5]:
False
In [6]:
Two cycles in with label "acac".
In [7]:
True
In [8]:
Two cycles in with label "babc".
In [9]:
True
In [10]:
In [11]:
True