public static void exportPartAsGIF(final AbstractZyGraph<?, ?> zygraph, final String filename)
      throws IOException {
    final Graph2DView view = zygraph.getView();
    final y.io.GIFIOHandler jpg = new y.io.GIFIOHandler();
    jpg.setAntialiasingEnabled(true);

    exportGraphPartToImageFileFormat(view.getGraph2D(), jpg, filename);
  }
Exports a graph to a JPEG file.

@param zygraph The graph to export.
@param filename The name of the JPEG file.
@throws IOException Thrown if saving the file fails.
java/zylib/src/main/java/com/google/security/zynamics/zylib/yfileswrap/gui/zygraph/GraphExporters.java