See in the docs: https://graphviz.org/docs/attrs/rankdir/
In the sketch example:
digraph G { rankdir="LR"; graph [fontname = "Handlee"]; ...