Module logicng

Class 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 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 edge
        destination - the destination node of the edge
        style - 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 edge
        destination - the destination node of the edge
        label - 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
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object