code: public void render(@NonNull Resource output, @NonNull GraphViz.Format format) throws IOException {
        GraphViz<Annotation> graphViz = new GraphViz<>();
        graphViz.setVertexEncoder(v -> new Vertex(v.toString() + "_" + v.getPOS().toString(), Collections.emptyMap()));
        graphViz.setEdgeEncoder(e -> map("label", Cast.<RelationEdge>as(e).getRelation()));
        graphViz.setFormat(format);
        graphViz.render(this, output);
     }
docs: Renders the graph in the specified format to the specified output location.
  
  @param output the location to save the rendered graph.
  @param format the graphic format to save the rendered graph in
  @throws IOException Something went wrong rendering the graph