docs: public void toFile(File file) throws Exception {
          PrintWriter out = new PrintWriter(file, "UTF-8");
          try {
              out.write(graph());
          }
          finally {
              Closeables.close(out, true);
          }
      }