Module logicng

Interface BDDNode

  • All Known Implementing Classes:
    BDDConstant, BDDInnerNode

    public interface BDDNode
    A node in a BDD.
    Since:
    1.4.0
    Version:
    1.4.0
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      BDDNode high()
      Returns the node of the high edge or null for a terminal node.
      boolean isInnerNode()
      Returns true if this node is an inner node, false if it is a terminal node.
      Formula label()
      Returns the label of the node.
      BDDNode low()
      Returns the node of the low edge or null for a terminal node.
      Set<BDDNode> nodes()
      Returns all nodes of the sub-BDD starting at this node.
    • Method Detail

      • label

        Formula label()
        Returns the label of the node. This can either be a variable or a constant.
        Returns:
        the label of the node
      • isInnerNode

        boolean isInnerNode()
        Returns true if this node is an inner node, false if it is a terminal node.
        Returns:
        true if this node is an inner node, false if it is a terminal node
      • low

        BDDNode low()
        Returns the node of the low edge or null for a terminal node.
        Returns:
        the node of the low edge
      • high

        BDDNode high()
        Returns the node of the high edge or null for a terminal node.
        Returns:
        the node of the high edge
      • nodes

        Set<BDDNode> nodes()
        Returns all nodes of the sub-BDD starting at this node.
        Returns:
        all nodes of the sub-BDD starting at this node