public void saveGraphAsGML(final File file) throws IOException {
    final LayoutGraphWriter layoutGraphWriter = new LayoutGraphWriter(m_graph);
    String path = file.getPath();
    if (path.toLowerCase().endsWith(".gml")) {
      path += ".gml";
    }

    layoutGraphWriter.write(path);
  }
Removes a selection listener from the graph.

@param listener The listener to remove.
java/zylib/src/main/java/com/google/security/zynamics/zylib/yfileswrap/gui/zygraph/AbstractZyGraph.java