public int writeGraphToFile(byte[] img,String file){
  File to=new File(file);
  return writeGraphToFile(img,to);
}

public int writeGraphToFile ( byte [ ] img , String file ) { File to = new File ( file ) ; return writeGraphToFile ( img , to ) ; }
writes the graph ' s image in a file .
