Module logicng

Class 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 use GraphGraphicalGenerator within 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 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 .dot if not already present
        graph - 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 write
        graph - the graph
        Throws:
        IOException - if there was a problem writing the file