in reply to How to print/draw a network graph
If you'd rather do something by hand, then as a first step here is how you "rank" the vertices to get a nice attractive flow graph for a DAG:
Now if you lay out the vertices in columns so that the i-th column contains the rank-i vertices, then when you draw in the edges, they will all go from left to right (it's easy to see this from the definition of rank). It should look very pretty.
This is essentially what GraphViz (dot engine) does anyway, at least as a first step according to its description on the main GraphViz page. It also has smart ways to arrange the vertices within each column, to minimize the number of edge crossings and other Ugly Things. And it will do something sensible when there are cycles. And it allows you to override and tweak everything of course.
blokhead
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How to print/draw a network graph
by GrandFather (Saint) on Jun 30, 2006 at 02:21 UTC | |
|
Re^2: How to print/draw a network graph
by GrandFather (Saint) on Jun 29, 2006 at 09:31 UTC |