In DOT try the option "-y"
-y - Invert y coordinate in output
Pierre
2009-09-18 19:51:02
Use rank specification for the subgraph. In this case sink should make it at the bottom and max will make it on the same level as 5:
digraph G {
0;
{ rank = sink; 1; }
5;
4;
7;
8;
0 -> 4;
5 -> 7;
7 -> 8;
7 -> 1;
8 -> 5;
4 -> 7;
}