A python utility to convert a regex to automata graphs