\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}}
  \dotnode[dotscale=1.5](2.5,1){o21}
  \dotnode[dotscale=1.5](1,2.5){o12}  
  
  \rput(5,1){\GM@node{n12}}
  \dotnode[dotscale=1.5](3.5,1){o41}
  \dotnode[dotscale=1.5](5,2.5){o52}
  \dotnode[dotscale=1.5](6.5,1){o61}
  
  \rput(9,1){\GM@node{n13}}
  \dotnode[dotscale=1.5](7.5,1){o81}
  \dotnode[dotscale=1.5](9,2.5){o92}


  \rput(1,5){\GM@node{n21}}
  \dotnode[dotscale=1.5](2.5,5){o25}
  \dotnode[dotscale=1.5](1,3.5){o14}      
  
  \rput(5,5){\GM@node{n22}}
  \dotnode[dotscale=1.5](3.5,5){o45}
  \dotnode[dotscale=1.5](5,3.5){o54}
  \dotnode[dotscale=1.5](6.5,5){o65}  
  
  \rput(9,5){\GM@node{n23}}
  \dotnode[dotscale=1.5](7.5,5){o85}
  \dotnode[dotscale=1.5](9,3.5){o94}


  \ncline{-}{n11}{o21}
  \ncline{-}{n11}{o12}
  \ncline{-}{n12}{o41}
  \ncline{-}{n12}{o52}
  \ncline{-}{n12}{o61}
  \ncline{-}{n13}{o81}
  \ncline{-}{n13}{o92}
  \ncline{-}{n21}{o25}
  \ncline{-}{n21}{o14}
  \ncline{-}{n22}{o45}
  \ncline{-}{n22}{o54}
  \ncline{-}{n22}{o65}
  \ncline{-}{n23}{o85}
  \ncline{-}{n23}{o94}

\end{pspicture}

\endTeXtoEPS
\end{document}
