public static void exportPartAsSVG(final AbstractZyGraph<?, ?> zygraph, final String filename)
      throws IOException {
    Graph2DView view = zygraph.getView();
    final SVGIOHandler svg = new SVGIOHandler();

    exportGraphPartToImageFileFormat(view.getGraph2D(), svg, 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