Package com.jgalgo.io

Interface GraphWriter<V,​E>

    • Method Detail

      • writeGraph

        void writeGraph​(Graph<V,​E> graph,
                        Writer writer)
        Write a graph to an I/O writer.
        Parameters:
        graph - a graph
        writer - an I/O writer to which the graph description will be written to
        Throws:
        UncheckedIOException - if an I/O error occurs
      • writeGraph

        default void writeGraph​(Graph<V,​E> graph,
                                File file)
        Write a graph to a file.
        Parameters:
        graph - a graph
        file - a file descriptor to which the graph will be written to
        Throws:
        UncheckedIOException - if an I/O error occurs
      • writeGraph

        default void writeGraph​(Graph<V,​E> graph,
                                String path)
        Write a graph to a file, given its path.
        Parameters:
        graph - a graph
        path - a path to a file to which the graph will be written to
        Throws:
        UncheckedIOException - if an I/O error occurs