Yes, the name of this attribute is rankdir.
See in the docs: https://graphviz.org/docs/attrs/rankdir/
In the sketch example:
digraph G {
rankdir="LR";
graph [fontname = "Handlee"];
...