

\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}(-3,-3)(15,10)%\showgrid
  \SpecialCoor


  



   \rput(2,7){\GM@node[observed=false]{x1}} \GM@label[angle=90]{x1}{$X_1$}
   \rput(1,1){\GM@node[observed=false]{x2}}   \GM@label[angle=-90]{x2}{$X_2$}
   \rput(3,1){\GM@node[observed=false]{x3}}    \GM@label[angle=-90]{x3}{$X_3$}
   \rput(2,5){\GM@node[observed=false]{g1}}   \GM@label[angle=-180]{g1}{$G_1$}
   \rput(1,3){\GM@node[observed=false]{g2}}   \GM@label[angle=-180]{g2}{$G_2$}
   \rput(3,3){\GM@node[observed=false]{g3}}     \GM@label[angle=0]{g3}{$G_3$}
  


   \ncline[arrows=->]{g1}{x1}
   \ncline[arrows=->]{g1}{g2}
   \ncline[arrows=->]{g1}{g3}
   \ncline[arrows=->]{g2}{x2}
   \ncline[arrows=->]{g3}{x3}
   


\end{pspicture}

\endTeXtoEPS
\end{document}
