Decision Tree Graphviz Example
A Graphviz example of a decision tree with Yes/No labelled branches and rank=same to align the leaf nodes.
Decision nodes are boxes and outcomes are ellipses; each branch edge is labelled Yes or No. Setting node [...] before a group of nodes applies shared styling to everything that follows, while { rank=same; ... } forces the leaf outcomes onto the same row. nodesep and ranksep tune the horizontal and vertical spacing.