public void printAutomaton ( final PrintStream out ) { out . println ( "digraph ahocorasick {" ) ; printDebug ( out , root ) ; out . println ( "}" ) ; }
Prints dot description of the automaton to out for visualization in GraphViz . Used for debugging and education .