Class EdgeListWriter

java.lang.Object
org.tweetyproject.arg.bipolar.io.EdgeListWriter

public class EdgeListWriter extends Object
The EdgeList writer is a utility class for testing purposes to write networkx compatible EdgeList file format.

More details are at @see EdgeListReader.

Author:
Taha Dogan Gunes
  • Constructor Details

    • EdgeListWriter

      public EdgeListWriter()
  • Method Details

    • write

      public static void write(String path, PEAFTheory peafTheory)
      Writes a PEAFTheory in EdgeList format
      Parameters:
      path - the path in string
      peafTheory - the PEAFTheory object
    • write

      public static void write(String path, PEAFTheory peafTheory, Set<BArgument> query)
      Writes a PEAFTheory and the query to a EdgeList format given the path
      Parameters:
      path - the path in string
      peafTheory - the PEAFTheory object
      query - a set of arguments for query
    • write

      public static void write(String path, EAFTheory eafTheory)
      Write EAFTheory to EdgeList file format
      Parameters:
      path - the path in string
      eafTheory - the EAFTheory object
    • getStringBuilder

      public static StringBuilder getStringBuilder(ArgumentSet froms, ArgumentSet tos, String fromToDelimiter)
      Combines arguments and builds the first line
      Parameters:
      froms - a set of arguments that originate the link
      tos - a set of arguments that gets targeted
      fromToDelimiter - the delimiter for froms argument to tos argument
      Returns:
      StringBuilder object
    • getStringBuilder

      public static StringBuilder getStringBuilder(ArgumentSet froms, ArgumentSet tos)
      Utility method for getStringBuilder
      Parameters:
      froms - a set of arguments that originate the link
      tos - a set of arguments that gets targets
      Returns:
      StringBuilder object