\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}(-1,0)(8,11)
  \SpecialCoor

  \rput(4,1){\GM@node[observed=true]{gamma}}
  \GM@label[angle=-90]{gamma}{$\gamma$}

%  \fnode[framesize=20pt](4,3){B_kv}
 % \GM@label[angle=-180]{B_kv}{$\boldsymbol{B}_{K,V}$}   

  \rput(4,3) {\GM@node[observed=false]{B_kv}}
 \GM@label[angle=-180]{B_kv}{$\boldsymbol{B}$}  

  \rput(2,6){\GM@node[observed=true]{n_i1}}
  \GM@label[angle=140]{n_i1}{$n_{i,1}$}

  \rput(4,6){\GM@ldots{n_i2}}
  
  \rput(6,6){\GM@node[observed=true]{n_iv}}
  \GM@label[angle=40]{n_iv}{$n_{i,V}$}     
     
    
  \rput(2.5,8){\GM@node{z_i1}}
  \GM@label[angle=140]{z_i1}{$z_{i,1}^{+}$}

  \rput(4,8){\GM@ldots{z_i2}}
  
  \rput(5.5,8){\GM@node{z_ik}}
  \GM@label[angle=40]{z_ik}{$z_{i,K}^{+}$}         
    
  \rput(0,5){\GM@plate{8.2}{4}{N}}  
  
  \rput(2,10.5){\GM@node[observed=true]{alpha_1}}
  \GM@label[angle=90]{alpha_1}{$\alpha_1$}  
  
  \rput(3,10.5){\GM@node[observed=true]{beta_1}}
  \GM@label[angle=90]{beta_1}{$\beta_1$}  
  
  \rput(4,10.5){\GM@ldots{alpha_2}}  
  
  \rput(5,10.5){\GM@node[observed=true]{alpha_k}}
  \GM@label[angle=90]{alpha_k}{$\alpha_K$}  
  
  \rput(6,10.5){\GM@node[observed=true]{beta_k}}
  \GM@label[angle=90]{beta_k}{$\beta_K$}  
  
  \ncline{->}{gamma}{B_kv}
  \ncline{->}{B_kv}{n_i1}
  \ncline{->}{B_kv}{n_iv}
  \ncline{->}{z_i1}{n_i1}
  \ncline{->}{z_i1}{n_iv}
  \ncline{->}{z_ik}{n_i1}
  \ncline{->}{z_ik}{n_iv}
  \ncline{->}{alpha_1}{z_i1}
  \ncline{->}{beta_1}{z_i1}
  \ncline{->}{alpha_k}{z_ik}
  \ncline{->}{beta_k}{z_ik}
     
\end{pspicture}

\endTeXtoEPS
\end{document}
