- java.lang.Object
-
- org.logicng.io.graphical.generators.GraphicalGenerator<T>
-
- org.logicng.io.graphical.generators.GraphGraphicalGenerator<T>
-
- Type Parameters:
T- the type of the graph's node content
public class GraphGraphicalGenerator<T> extends GraphicalGenerator<T>
The graphical generator for representations of graphsGraph.- Since:
- 2.4.0
- Version:
- 2.4.0
-
-
Field Summary
-
Fields inherited from class org.logicng.io.graphical.generators.GraphicalGenerator
alignTerminals, backgroundColor, defaultEdgeStyle, defaultNodeStyle, ID
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <T> GraphicalGeneratorBuilder<GraphGraphicalGenerator<T>,T>builder()Returns the builder for this generator.GraphicalRepresentationtranslate(Graph<T> graph)Translates a given graph into its graphical representation.-
Methods inherited from class org.logicng.io.graphical.generators.GraphicalGenerator
edgeStyle, labelOrDefault, nodeStyle
-
-
-
-
Method Detail
-
builder
public static <T> GraphicalGeneratorBuilder<GraphGraphicalGenerator<T>,T> builder()
Returns the builder for this generator.- Type Parameters:
T- the type of the graph's node content- Returns:
- the builder
-
translate
public GraphicalRepresentation translate(Graph<T> graph)
Translates a given graph into its graphical representation.- Parameters:
graph- the graph to translate- Returns:
- the graphical representation
-
-