You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
frompythomata.impl.symbolicimportSymbolicDFAdfa=SymbolicDFA()
s0=dfa.initial_states1=dfa.create_state()
dfa.add_transition((s0, 'a', s1))
dfa_1=dfa.minimize()
dfa_2=dfa.minimize()
assertdfa_1==dfa_2# it fails, since it uses the default __eq__ method of Python objects
However, a workaround could be to access all the relevant attributes and compare them:
Having this function (as SymbolicAutomaton.__eq__) included in the library is surely a nice-to-have feature! But hopefully, the workaround above should already help you.
Is there a way to compare two minimized DFAs for equality?
What I really want to do is compare two LTLf terms. I'm hoping to parse them with
logaut
, minimize them, and check for DFA equality.The text was updated successfully, but these errors were encountered: