andrew@umn-cs.cs.umn.edu (Andrew Lim) (09/20/90)
I was trying to draw a geometric graphs using latex, unfortunately, latex
is very limited for drawing graphs. So, I used pictex. Unfortunately,
I always get the "out of memory" error. In the end I resort to using
postscript to draw my graphs.
My postscript routine is given below
--------------------------------------------------------------------
%!PS-Adobe-2.0
/aline {
4 copy
newpath
moveto
lineto
stroke
2 0 360 arc
fill
2 0 360 arc
fill
} def
50.045784 369.496047 97.380558 325.045434 aline
50.045784 369.496047 58.263259 330.594227 aline
420.072773 413.100371 433.140388 440.506324 aline
.
.
.
showpage
end
-------------------------------------------------------------------
I have several questions ...
1. How can I include this postscript file in my Latex file as a figure?
2. Is there any written macro for drawing graphs (nodes and edges)?
3. How can I graph a straight length between any 2 points in TeX?
Thanks.
Andrew Lim