- java.lang.Object
-
- org.logicng.graphs.io.GraphDotFileWriter
-
@Deprecated public final class GraphDotFileWriter extends Object
Deprecated.This legacy writer will be removed in LogicNG 3.0.0. For a more configurable and flexible to use graph writer useGraphGraphicalGeneratorwithin the new graphical writer framework.A dot file writer for a graph. Writes the internal data structure of the graph to a dot file.- Since:
- 1.2
- Version:
- 2.4.0
-
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static <T> voidwrite(File file, Graph<T> graph)Deprecated.Writes a given graph's internal data structure as a dot file.static <T> voidwrite(String fileName, Graph<T> graph)Deprecated.Writes a given graph's internal data structure as a dot file.
-
-
-
Method Detail
-
write
public static <T> void write(String fileName, Graph<T> graph) throws IOException
Deprecated.Writes a given graph's internal data structure as a dot file.- Type Parameters:
T- the type of the graph content- Parameters:
fileName- the file name of the dot file to write, will be extended by suffix.dotif not already presentgraph- the graph- Throws:
IOException- if there was a problem writing the file
-
write
public static <T> void write(File file, Graph<T> graph) throws IOException
Deprecated.Writes a given graph's internal data structure as a dot file.- Type Parameters:
T- the type of the graph content- Parameters:
file- the file of the dot file to writegraph- the graph- Throws:
IOException- if there was a problem writing the file
-
-