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

  \rput(3.0,5.0){\ovalnode{x1x2}{$X_1\;X_2$}}
  \rput(2.0,3.5){\rnode{x1}{\psframebox{$X_1$}}}
  \rput(4.0,3.5){\rnode{x2}{\psframebox{$X_2$}}}
  \rput(1.5,2.0){\ovalnode{x1y1}{$X_1\;Y_1$}}  
  \rput(4.5,2.0){\ovalnode{x2y2}{$X_2\;Y_2$}}  
  
  \rput(6.0,5.0){\rnode{x22}{\psframebox{$X_2$}}}
  
  \rput(9.0,5.0){\ovalnode{x2x3}{$X_2\;X_3$}}
  \rput(9.0,3.5){\rnode{x33}{\psframebox{$X_3$}}}
  \rput(9.0,2.0){\ovalnode{x3y3}{$X_3\;Y_3$}}
  
  \rput(12,5.0){\rnode{x333}{\psframebox{$X_3$}}}  
  
  \rput(15,5.0){\ovalnode{x3x4}{$X_3\;X_4$}}  
  \rput(15,3.5){\rnode{x4}{\psframebox{$X_4$}}}
  \rput(15,2.0){\ovalnode{x4y4}{$X_4\;Y_4$}}
  
  \ncline{x1x2}{x1}
  \ncline{x1x2}{x2}
  \ncline{x1}{x1y1}
  \ncline{x2}{x2y2}  
  \ncline{x1x2}{x22}
  \ncline{x22}{x2x3}
  \ncline{x2x3}{x33}
  \ncline{x33}{x3y3}
  \ncline{x2x3}{x333}
  \ncline{x333}{x3x4}
  \ncline{x3x4}{x4}
  \ncline{x4}{x4y4}
  
\end{pspicture}

\endTeXtoEPS
\end{document}
