Package org.tweetyproject.arg.bipolar.io
Class EdgeListWriter
java.lang.Object
org.tweetyproject.arg.bipolar.io.EdgeListWriter
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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringBuilder
getStringBuilder
(ArgumentSet froms, ArgumentSet tos) Utility method for getStringBuilderstatic StringBuilder
getStringBuilder
(ArgumentSet froms, ArgumentSet tos, String fromToDelimiter) Combines arguments and builds the first linestatic void
Write EAFTheory to EdgeList file formatstatic void
write
(String path, PEAFTheory peafTheory) Writes a PEAFTheory in EdgeList formatstatic void
write
(String path, PEAFTheory peafTheory, Set<BArgument> query) Writes a PEAFTheory and the query to a EdgeList format given the path
-
Constructor Details
-
EdgeListWriter
public EdgeListWriter()Default Constructor
-
-
Method Details
-
write
Writes a PEAFTheory in EdgeList format- Parameters:
path
- the path in stringpeafTheory
- the PEAFTheory object
-
write
Writes a PEAFTheory and the query to a EdgeList format given the path- Parameters:
path
- the path in stringpeafTheory
- the PEAFTheory objectquery
- a set of arguments for query
-
write
-
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 linktos
- a set of arguments that gets targetedfromToDelimiter
- the delimiter for froms argument to tos argument- Returns:
- StringBuilder object
-
getStringBuilder
Utility method for getStringBuilder- Parameters:
froms
- a set of arguments that originate the linktos
- a set of arguments that gets targets- Returns:
- StringBuilder object
-