\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)(10,6)
  \SpecialCoor

  \rput(1,1){\GM@node{n11}}
  \rput(5,1){\GM@node{n12}}
  \rput(9,1){\GM@node{n13}}

  \rput(1,5){\GM@node{n21}}
  \rput(5,5){\GM@node{n22}}
  \rput(9,5){\GM@node{n23}}

  \ncline{-}{n11}{n12}
  \ncline{-}{n12}{n13}
  \ncline{-}{n21}{n22}
  \ncline{-}{n22}{n23}
  \ncline{-}{n11}{n21}
  \ncline{-}{n12}{n22}
  \ncline{-}{n13}{n23}

\end{pspicture}

\endTeXtoEPS
\end{document}
