ParentFull threademillon·tikz is awesome for this. I believe that DFAs are one of the examples described in the manual.View on HN