graphviz: force nodes to top in rankdir=LR
问题 I want to have the 'start middle end' label appear at the top of my graph But it seems to default to the bottom no matter where I put the code. Is it possible? digraph G { rankdir=LR; {node [shape=plaintext, fontsize=16]; "Start"->"Middle"->"End"[style=invis]; } node [shape=box]; { rank=same "Start";a; } { rank=same "Middle";b;d; } { rank=same "End";c;e; } "a"->"b"->"c"; "d"->"e"; } 回答1: This works for me. digraph G { rankdir=LR; { node [shape=box]; blank [style=invisible] blank -> d [style