package emufog.export;

import emufog.graph.Graph;

import java.nio.file.Path;

public interface IGraphExporter {

    /**
     * Exports the given graph object in an unspecified format.
     *
     * @param graph the graph to export
     * @param path  path to export the graph to
     * @throws IllegalArgumentException throws exception if the input parameters are invalid
     */
    void exportGraph(Graph graph, Path path) throws IllegalArgumentException;
}

@@ -45,16 +45,44 @@
 Graph;%0A%0A
+import java.io.IOException;%0A
 import j
@@ -396,16 +396,113 @@
 invalid%0A
+     * @throws IOException              throws exception if an error occurs when writing to disk%0A
      */%0A
@@ -577,12 +577,25 @@
 xception
+, IOException
 ;%0A%7D%0A

add io exception for disk writing