code: public void printAutomaton(final PrintStream out) {
          out.println("digraph ahocorasick {");
          printDebug(out, root);
          out.println("}");
      }
docs: Prints dot description of the automaton to out for visualization in
  GraphViz. Used for debugging and education.
  
  @param out the stream t which the description is written