- java.lang.Object
-
- org.logicng.io.graphical.GraphicalEdge
-
public class GraphicalEdge extends Object
A single edge in a graphical representation of a formula, BDD, or graph. An edge connects two nodes and holds an optional label and an edge style.- Since:
- 2.4.0
- Version:
- 2.4.0
-
-
Constructor Summary
Constructors Constructor Description GraphicalEdge(GraphicalNode source, GraphicalNode destination, String label, GraphicalEdgeStyle style)Constructs a new graphical edge with the given values.GraphicalEdge(GraphicalNode source, GraphicalNode destination, GraphicalEdgeStyle style)Constructs a new graphical edge with the given values and without label.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)GraphicalNodegetDestination()Returns the destination node of this edge.StringgetLabel()Returns the label of this edge.GraphicalNodegetSource()Returns the source node of this edge.GraphicalEdgeStylegetStyle()Returns the style of this edgeinthashCode()StringtoString()
-
-
-
Constructor Detail
-
GraphicalEdge
public GraphicalEdge(GraphicalNode source, GraphicalNode destination, GraphicalEdgeStyle style)
Constructs a new graphical edge with the given values and without label.- Parameters:
source- the source node of the edgedestination- the destination node of the edgestyle- the style of the edge
-
GraphicalEdge
public GraphicalEdge(GraphicalNode source, GraphicalNode destination, String label, GraphicalEdgeStyle style)
Constructs a new graphical edge with the given values.- Parameters:
source- the source node of the edgedestination- the destination node of the edgelabel- the optional label (can be null)style- the style of the edge
-
-
Method Detail
-
getSource
public GraphicalNode getSource()
Returns the source node of this edge.- Returns:
- the source node of this edge
-
getDestination
public GraphicalNode getDestination()
Returns the destination node of this edge.- Returns:
- the destination node of this edge
-
getLabel
public String getLabel()
Returns the label of this edge.- Returns:
- the label of this edge
-
getStyle
public GraphicalEdgeStyle getStyle()
Returns the style of this edge- Returns:
- the style of this edge
-
-