Package org.ddolib.ddo.core.mdd
Class Node
java.lang.Object
org.ddolib.ddo.core.mdd.Node
Represents an atomic node in a decision diagram.
By itself, a Node does not hold much interpretable information, but it serves as a building block
for constructing decision diagrams. It stores edges, values, and auxiliary information used in
dynamic programming, search, or pruning operations.
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe edge terminating the longest path to this node.The list of edges leading to this node.doubleOverapproximation of the shortest path from this node to a terminal node.booleanFlag indicating if the node is above the exact cutset.booleanFlag indicating if the node is in the exact cutset.booleanFlag indicating if the node is marked.The length of the longest suffix of this node (used in local bound calculations).The type of this node (e.g., exact, relaxed).doubleThe length of the longest path to this node. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
value
public double valueThe length of the longest path to this node. -
suffix
The length of the longest suffix of this node (used in local bound calculations). -
best
The edge terminating the longest path to this node. -
edges
The list of edges leading to this node. -
type
The type of this node (e.g., exact, relaxed). -
isMarked
public boolean isMarkedFlag indicating if the node is marked. -
flb
public double flbOverapproximation of the shortest path from this node to a terminal node. -
isInExactCutSet
public boolean isInExactCutSetFlag indicating if the node is in the exact cutset. -
isAboveExactCutSet
public boolean isAboveExactCutSetFlag indicating if the node is above the exact cutset.
-
-
Constructor Details
-
Node
public Node(double value) Creates a newNodewith the given value.Initializes suffix and best edge to
null, creates an empty list of edges, sets the type toNodeType.EXACT, and marks the node as unmarked.- Parameters:
value- the initial value of the node (length of the longest path to this node)
-
-
Method Details