PrintGraph takes a graph description and generates a 2D representation of it -- in Postscript, since when I wrote PrintGraph back in 1995 that was by far the easiest way to get a quick and dirty graphical display both printable and viewable onscreen (via ghostview, for instance). Still is, probably.

Here is an example graph and its represenation (converted to GIF).

And here is PrintGraph's source and source to a random graph generator that I used for testing. (.txt extension because doesn't recognise .c.)