\documentclass{article}
\usepackage{com.braju.graphicalmodels}

\catcode`\@=11%

\pagestyle{empty}

\begin{document}
\TeXtoEPS

\LARGE
\psset{unit=10mm,arrowscale=1.5,linewidth=1.5pt}
\begin{pspicture}(0,0)(10,8)%\showgrid
  \SpecialCoor

  \rput(5,7){\GM@node[observed=false]{thetaZ}} \GM@label[angle=-180]{thetaZ}{$\theta_z$}

  \rput(3,5){\GM@node[observed=false]{z1}} \GM@label[angle=-180]{z1}{$z_1$}
  \rput(7,5){\GM@node[observed=false]{zN}} \GM@label[angle=-180]{zN}{$z_N$}

  \rput(5,4){\psframebox[linecolor=white]{$\cdots$}}

  \rput(3,3){\GM@node[observed=true]{x1}} \GM@label[angle=-180]{x1}{$x_1$}
  \rput(7,3){\GM@node[observed=true]{xN}} \GM@label[angle=-180]{xN}{$x_N$}

  \rput(5,1){\GM@node[observed=false]{thetaX}} \GM@label[angle=-180]{thetaX}{$\theta_x$}


  \ncline[arrows=->]{thetaZ}{z1}
  \ncline[arrows=->]{thetaZ}{zN}

  \ncline[arrows=->]{z1}{x1}
  \ncline[arrows=->]{zN}{xN}

  \ncline[arrows=->]{thetaX}{x1}
  \ncline[arrows=->]{thetaX}{xN}
\end{pspicture}

\endTeXtoEPS
\end{document}
