????Grap
????Jon  L. Bentley??Brian  W.Kernighan?????????Grap?????Grap????????????????????????????????????????????????????????????????????for??if??估??????????????Grap??????????UNIX?????????????????????????????????????????????????????????????
????[1] ????Grap
??????Debian GNU/Linux Desktop??????μ?/etc/apt/sources.list?????????“debhttp://ftp.de.debian.org/debian squeeze main”????????????????????????Applications>> Accessories >> Terminal
?????????????????????su?????????????????root????

 

lly7@debian:~$ su
Password:
debian:/home/lly7#

????root??????????????????????grap??

 

debian:/home/lly7# apt-get update
debian:/home/lly7#apt-get  install  grap

?????????????????
????[2] man grap
??????????????????”man grap”????????????????????????“Grap-A Language forTypesetting Graphs?? Tutorial and User Manual”???????????????????????grap???????
????[3] man grap?????д
????????????дgrap????????k_small.g?????????????????vi  k_small.g??????/usr/share/doc/grap/examples/400mtimes.d???????????k_small.g?????£???????????????????400mtimes.d?????????????????????????22?С???k_small.g??????????????????

 

.G1
draw solid
copy "400mtimes.d"
.G2

????[4] ????grap????
???????????????????????????????grap???????????
????lly7@debian:~/Grap$ grap  k_small.g   |  pic  |  groff   >   k_small
?????????????????k_small????У?k_small?????ps???????????linux?????ps??????????????????????????????k_small????pdf??????????windows?в???
????lly7@debian:~/Grap$  ps2pdf   k_small    k_small.pdf
????Figure1:Grap ??????
????Note Over.