Skip to content
This repository has been archived by the owner on Aug 28, 2023. It is now read-only.

Cannot reproduce DFA example: Infinite language #10

Open
RobBa opened this issue Aug 4, 2023 · 0 comments
Open

Cannot reproduce DFA example: Infinite language #10

RobBa opened this issue Aug 4, 2023 · 0 comments

Comments

@RobBa
Copy link

RobBa commented Aug 4, 2023

Hey,

I cannot reproduce the example given from https://pypi.org/project/visual-automata/#visualdfa
Upon the call of VisualDFA(dfa) on the dfa

dfa = DFA(
states={"q0", "q1", "q2", "q3", "q4"},
input_symbols={"0", "1"},
transitions={
"q0": {"0": "q3", "1": "q1"},
"q1": {"0": "q3", "1": "q2"},
"q2": {"0": "q3", "1": "q2"},
"q3": {"0": "q4", "1": "q1"},
"q4": {"0": "q4", "1": "q1"},
},
initial_state="q0",
final_states={"q2", "q4"},
)

I get the following error:

InfiniteLanguageException: The language represented by the DFA is infinite.

I use the following versions:

automata-lib 8.0.0
visual-automata 1.1.1

Thanks for taking care already

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant