I have a graph file like this:
digraph {
\"Step1\" -> \"Step2\" -> \"Step3\";
subgraph step2detail {
\"Step2\" -> \"note1\";
\"
rankdir doesn't work directly in the subgraph, but if you add another set of curly braces - whatever that's called - rankdir works:
digraph {
"Step1" -> "Step2" -> "Step3";
subgraph step2detail {
{
"Step2" -> "note1";
"Step2" -> "note2";
"Step2" -> "note3";
"Step2" -> "note4";
rankdir=TB
rank=same
}
}
}