\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,5)
  \SpecialCoor

  \rput(1,3){\circlenode{n1}{$1$}}
  \rput(3,4){\circlenode{n2}{$2$}}
  \rput(3,2){\circlenode{n3}{$3$}}
  \rput(5,3){\circlenode{n5}{$5$}}
  \rput(7,4){\circlenode{n4}{$4$}}
  
  \psset{arrows=->}
  \ncline{n1}{n2}
  \ncline{n1}{n3}
  \ncline{n2}{n5}
  \ncline{n3}{n5}
  \ncline{n2}{n4}
       
\end{pspicture}

\endTeXtoEPS
\end{document}
