from IPython.display import display, HTML import spot spot.setup(size='5,4')
This shows the effect of running cleanup_acceptance() on 10 randomly generated automata.
cleanup_acceptance()
txt = "<TABLE><TR><TH>before</TH><TH>after</TH>" for a in spot.automata('randaut -A "random 4" -H -Q5 -n10 2|'): txt += "<TR><TD>{0}</TD><TD>{1}</TD></TR>".format(a.show('.a').data, spot.cleanup_acceptance(a).show('.a').data) txt += ("</TABLE>") HTML(txt)