-- | Mark a NodeState as terminal.
terminal :: NodeState -> NodeState
terminal nodeState = setBit nodeState terminalBit
terminal :: NodeState -> NodeState
terminal nodeState = setBit nodeState terminalBit
terminal nodeState = setBit nodeState terminalBit