Class NoLayerDecisionDiagram.Edge<T>

java.lang.Object
org.ddolib.nolayer.solving.ddo.core.mdd.NoLayerDecisionDiagram.Edge<T>
Type Parameters:
T - the type of the states of the connected nodes
Enclosing class:
NoLayerDecisionDiagram<T>

public static class NoLayerDecisionDiagram.Edge<T> extends Object
An edge of a NoLayerDecisionDiagram, representing the application of a label from an origin node to a destination node.
  • Field Details

    • label

      public final int label
      The label applied along this edge.
    • cost

      public final double cost
      The cost of this edge.
    • origin

      The node this edge originates from.
    • destination

      public NoLayerDecisionDiagram.Node<T> destination
      The node this edge leads to.
  • Constructor Details

    • Edge

      public Edge(NoLayerDecisionDiagram.Node<T> origin, NoLayerDecisionDiagram.Node<T> destination, int label, double cost)
      Creates a new edge between the given nodes.
      Parameters:
      origin - the node this edge originates from
      destination - the node this edge leads to
      label - the label applied along this edge
      cost - the cost of this edge