-
- Type Parameters:
V- the graph vertex typeE- the graph edge type
- All Known Implementing Classes:
CSVExporter,DIMACSExporter,DOTExporter,GEXFExporter,GmlExporter,Graph6Sparse6Exporter,GraphMLExporter,JSONExporter,LemonExporter,MatrixExporter,VisioExporter
public interface GraphExporter<V,E>Interface for graph exporters
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default voidexportGraph(Graph<V,E> g, File file)Export a graph to the givenFile.default voidexportGraph(Graph<V,E> g, OutputStream out)Export a graph to the givenOutputStream.voidexportGraph(Graph<V,E> g, Writer writer)Export a graph using the givenWriter.
-
-
-
Method Detail
-
exportGraph
default void exportGraph(Graph<V,E> g, OutputStream out)
Export a graph to the givenOutputStream.It is the callers responsibility to ensure the
OutputStreamis closed after this method returned.- Parameters:
g- the graph to exportout- the output stream- Throws:
ExportException- in case any error occurs
-
exportGraph
void exportGraph(Graph<V,E> g, Writer writer)
Export a graph using the givenWriter.It is the callers responsibility to ensure the
Writeris closed after this method returned.- Parameters:
g- the graph to exportwriter- the output writer- Throws:
ExportException- in case any error occurs
-
-