% 12-6-11.tex, 用pdfLaTeX处理
\documentclass{article}
\usepackage{pdftricks_new}
\begin{psinputs}
\usepackage{pst-plot,pst-node,pst-grad}
\usepackage{CJK}
\end{psinputs}
\usepackage{CJK}
\begin{document}
\begin{CJK*}{GBK}{song}
\CJKtilde
\begin{center}
\begin{pdfpic}
\begin{pspicture}(3,1)
\rput[bl](0,0){\rnode{A}{$x$}}
\rput[tr](3,1){\rnode{B}{$y$}}
\ncline[nodesep=3pt]{}{A}{B}
\end{pspicture}
\end{pdfpic}
\vspace{3mm}
图~111
\end{center}
\begin{center}
\begin{pdfpic}
\begin{CJK*}{GBK}{song}
\begin{pspicture}(-1.7,-1.7)(4,3)
\rput[t](0,0){\rnode{A}{\psframebox{节点~A}}}
\rput[b](2,1){\ovalnode{B}{节点~B}}
\nccurve[angleB=180]{A}{B}
\end{pspicture}
\end{CJK*}
\end{pdfpic}
\vspace{3mm}
图~112
\end{center}
\begin{center}
\begin{pdfpic}
\begin{pspicture}(0,-0.5)(4,2.5)
\cnodeput(0.5,0){A}{X}
\cnodeput(3.5,2){B}{Y}
\psset{nodesep=3pt}
\ncarc{->}{A}{B}
\ncarc{->}{B}{A}
\end{pspicture}
\end{pdfpic}
\vspace{3mm}
图~113
\end{center}
\begin{center}
\begin{pdfpic}
\begin{CJK*}{GBK}{song}
\rnode{A}{这}里有一本\rnode{B}{书}。
\ncbar[nodesep=3pt,angle=-90]{ \end{CJK*}
\end{pdfpic}
\vspace{7mm}
图~114
\end{center}
\begin{center}
\begin{pdfpic}
\begin{CJK*}{GBK}{song}
\begin{pspicture}(0,0)(3,3)
\rput[tl](0,3){\rnode{A}
{\psframebox{节点~A}}}
\rput[br](3,0){\ovalnode{B}{节点~B}}
\ncdiag[angleA=-90,angleB=90,arm=.5,linearc=.2]{A}{B}
\end{pspicture}
\end{CJK*}
\end{pdfpic}
\vspace{3mm}
图~115
\end{center}
\begin{center}
\begin{pdfpic}
\begin{pspicture}(-0.2,-1.2)(3.3,1.2)
\cnode(0,0){4pt}{a}
\rput[l](3,1){\rnode{b}{H}}
\rput[l](3,-1){\rnode{c}{T}}
\ncdiagg[angleA=180,armA=3cm,nodesepA=3pt]{b}{a}
\ncdiagg[angleA=180,armA=2cm,nodesepA=3pt]{c}{a}
\end{pspicture}
\end{pdfpic}
\vspace{3mm}
图~116
\end{center}
\newpage
\begin{center}
\begin{pdfpic}
\begin{CJK*}{GBK}{song}
\begin{pspicture}(-.7,0)(4,3)
\rput[t](0,3){\rnode{A}{\psframebox{节点~A}}}
\rput[br](4,0){\ovalnode{B}{节点~B}}
\ncangle[angleA=-90,angleB=90,arm=.4cm,linestyle=dashed]{A}{B}
\end{pspicture}
\end{CJK*}
\end{pdfpic}
\vspace{3mm}
图~117
\end{center}
\begin{center}
\begin{pdfpic}
\begin{CJK*}{GBK}{song}
\begin{pspicture}(-.7,0)(4.4,3)
\rput[t](0,3){\rnode{A}{\psframebox{节点~A}}}
\rput[br](4,0){\ovalnode{B}{节点~B}}
\ncangles[angleA=-90,arm=.4cm,linearc=.15]{A}{B}
\end{pspicture}
\end{CJK*}
\end{pdfpic}
\vspace{3mm}
图~118
\end{center}
\vspace{5mm}
\begin{center}
\begin{pdfpic}
\begin{CJK*}{GBK}{song}
\rnode{a}{\psframebox{闭合圈}}
\ncloop[angleB=180,loopsize=1,arm=1,linearc=.2]{->}{a}{a}
\end{CJK*}
\end{pdfpic}
\vspace{3mm}
图~119
\end{center}
\vspace{25mm}
\begin{center}
\begin{pdfpic}
\begin{CJK*}{GBK}{song}
\rnode{a}{\psframebox{闭合圈}}
\nccircle{->}{a}{1.5}
\end{CJK*}
\end{pdfpic}
\vspace{3mm}
图~120
\end{center}
\newpage
\begin{center}
\begin{pdfpic}
\begin{pspicture}(-.5,-1.7)(3.2,1.7)
\cnode(0,0){.5cm}{root}
\cnode*(3,1.5){4pt}{A}
\cnode*(3,0){4pt}{B}
\cnode*(3,-1.5){4pt}{C}
\psset{nodesep=3pt}
\ncline{root}{A}
\naput{above}
\ncline{root}{B}
\ncput*{on}
\ncline{root}{C}
\nbput{below}
\end{pspicture}
\end{pdfpic}
\vspace{3mm}
图~121
\end{center}
\begin{center}
\begin{pdfpic}
\begin{CJK*}{GBK}{song}
\begin{pspicture}(4,2.4)
\pspolygon(0,0)(4,2)(4,0)
\pcline[offset=12pt]{|-|}(0,0)(4,2)
\ncput*[nrot=:U]{长度}
\end{pspicture}
\end{CJK*}
\end{pdfpic}
\vspace{3mm}
图~122
\end{center}
\begin{center}
\begin{pdfpic}
\begin{pspicture}(-.5,-1.7)(3.2,1.7)
\cnode(0,0){.5cm}{root}
\cnode*(3,1.5){4pt}{A}
\cnode*(3,0){4pt}{B}
\cnode*(3,-1.5){4pt}{C}
\psset{nodesep=3pt,nrot=:U}
\ncline{root}{A}
\naput{above}
\ncline{root}{B}
\ncput*{on}
\ncline{root}{C}
\nbput{below}
\end{pspicture}
\end{pdfpic}
\vspace{3mm}
图~123
\end{center}
\begin{center}
\begin{pdfpic}
\begin{CJK*}{GBK}{song}
\begin{pspicture}(-.7,0)(4.4,3)
\rput[t](0,3){\rnode{A}{\psframebox{节点~A}}}
\rput[br](4,0){\ovalnode{B}{节点~B}}
\ncangles[angleA=-90,arm=.4cm,linearc=.15]{A}{B}
\ncput*{d}
\nbput[nrot=90,npos=2.5]{连线}
\end{pspicture}
\end{CJK*}
\end{pdfpic}
\vspace{3mm}
图~124
\end{center}
\end{CJK*}
\end{document}