\documentstyle[epic,eepic,eclarith,ecldig]{j-article}

\title{How to Draw DiGraphs in \LaTeX}

\author{Hideki Isozaki}

\begin{document}

\maketitle

\newcommand{\C}[1]{\makebox(0,0){#1}}
\begin{center}
\def\ArrowHeadSize{0.3}
\unitlength=0.8cm
\begin{picture}(10,10)(0,0)
\digradius{0.8}
\dignode(1,1){A}{\C{Ant}}
\dignode(9,1){B}{\C{Bee}}
\dignode(9,9){C}{\C{Cat}}
\dignode(1,9){D}{\C{Dog}}
\dignode(5,5){E}{\C{Egg}}
\dignode(1,5){F}{\C{Fly}}
\digedge{A}{B}
\digedge{B}{C}
\digpen{\arrow{\dottedline{0.1}}}
\digedge{C}{D}
\digpen{\arrow{\dashline{0.1}}}
\digedge{D}{E}
\digedge{E}{A}
\digpen{\arrow{\drawline}}
\digedge{E}{F}
\nodeput[0]{E}{\digloop}
\nodeput[90]{E}{\digloop}
\nodeput[225]{A}{\digloop}
\digedge{F}{A}
\digedge[0.7]{B}{F}
\digedge[0.7]{F}{B}
\end{picture}
\end{center}


\end{document}
