\documentclass{article}
\usepackage{com.braju.graphicalmodels}
\usepackage{amsmath}
% \special{papersize=40mm,80mm}
% \setlength{\pdfpagewidth}{40mm}
% \setlength{\pdfpageheight}{80mm}
% \usepackage[vcentering,dvips]{geometry}
% \geometry{papersize={80mm,120mm},total={80mm,120mm},margin=0mm}



\catcode`\@=11%

\pagestyle{empty}

\begin{document}
\TeXtoEPS

\LARGE
\psset{unit=10mm,arrowscale=1.5,linewidth=1.5pt}

\begin{pspicture}(0,0)(8,3)
  \SpecialCoor

  \rput(1,1){\circlenode{n1}{1}}
  \rput(3,1){\circlenode{n2}{2}}
  \rput(5,1){\circlenode{n3}{3}}
  \rput(7,1){\circlenode{n4}{4}}

  \Large
  \psset{arrows=->,nodesep=3pt}
  \nccurve[angleA=20,angleB=160]{n1}{n2}  \naput{\red $0.9$}
  \nccurve[angle=-160,angleB=-20]{n2}{n1} \naput{\red $0.9$}
  \ncline{n3}{n2} \naput{\red $0.5$}
  \ncline{n3}{n4} \nbput{\red $0.5$}
  \nccircle{n4}{0.5cm}  \nbput{\red $1.0$}
  \nccircle{n2}{0.5cm}  \nbput{\red $0.1$}
  \nccircle{n1}{0.5cm}  \nbput{\red $0.1$}
         
\end{pspicture}

\endTeXtoEPS
\end{document}
