Decision tree node (hierarchical)

interface DecisionNode {
    children?: DecisionNode[];
    collapsed?: boolean;
    id: string;
    label: string;
    note?: string;
    value?: number;
}

Properties

children?: DecisionNode[]

Child nodes in tree

collapsed?: boolean

Collapsed state (if interactivity enabled)

id: string

Unique node identifier

label: string

Node label

note?: string

Optional note

value?: number

Optional value/probability