\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)(7,7)%\showgrid
  \SpecialCoor

  \rput(2,2){\circlenode{n7}{\phantom{a}}}  \rput(2,2){$7$}
  \rput(4,2){\circlenode{n8}{\phantom{a}}}  \rput(4,2){$8$}
  \rput(6,2){\circlenode{n9}{\phantom{a}}}  \rput(6,2){$9$}
  \rput(2,4){\circlenode{n4}{\phantom{a}}}  \rput(2,4){$4$}
  \rput(4,4){\circlenode{n5}{\phantom{a}}}  \rput(4,4){$5$}
  \rput(6,4){\circlenode{n6}{\phantom{a}}}  \rput(6,4){$6$}
  \rput(2,6){\circlenode{n1}{\phantom{a}}}  \rput(2,6){$1$}
  \rput(4,6){\circlenode{n2}{\phantom{a}}}  \rput(4,6){$2$}
  \rput(6,6){\circlenode{n3}{\phantom{a}}}  \rput(6,6){$3$} 
 
 
\end{pspicture}

\endTeXtoEPS
\end{document}
