protected void end(){
  stream.println("</graphDocument>");
  flush();
}

protected void end ( ) { stream . println ( "</graphDocument>" ) ; flush ( ) ; }
finishes the graph document and flushes the output stream .
