You just need to take out the arrow commands ->
and set the loop style to empty:

All of the credit is due to @Stefan Kottwitz for creating the original picture.
\documentclass{article}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}[auto, node distance=3cm, every loop/.style={},
thick,main node/.style={circle,draw,font=\sffamily\Large\bfseries}]
\node[main node] (1) {1};
\node[main node] (2) [below left of=1] {2};
\node[main node] (3) [below right of=2] {3};
\node[main node] (4) [below right of=1] {4};
\path[every node/.style={font=\sffamily\small}]
(1) edge node [left] {0.6} (4)
edge [bend right] node[left] {0.3} (2)
edge [loop above] node {0.1} (1)
(2) edge node [right] {0.4} (1)
edge node {0.3} (4)
edge [loop left] node {0.4} (2)
edge [bend right] node[left] {0.1} (3)
(3) edge node [right] {0.8} (2)
edge [bend right] node[right] {0.2} (4)
(4) edge node [left] {0.2} (3)
edge [loop right] node {0.6} (4)
edge [bend right] node[right] {0.2} (1);
\end{tikzpicture}
\end{document}
You should use \includegraphics[width=…]{Tree1.eps}
or \includegraphics[scale=…]{Tree1.eps}
. The epsfig
package is obsolete and should be replaced with graphicx
.
That said, it is rather simple to obtain the above graph with pstricks
, and more specifically with pst-node
. Further, you can compile the code with pdflatex
, loading auto-pst-pdf
and compiling with the --enable-write18
switch under MiKTeX, or -shell-escape
under TeX Live and MacTeX. This way your image is in pdf format.
Here is a code with the .png
image posted in the question, and with the .pdf
image compiled as standalone:
\documentclass[12pt]{article}
\usepackage{graphicx}
\begin{document}
\[ a = b + c \quad\includegraphics[width=15pt]{Tree1.png} \]%
\[ a = b + c \quad\includegraphics[width=15pt]{Tree1.pdf} \]%
\end{document}

The pstricks
code:
\documentclass[ x11names]{standalone}
\usepackage{pstricks-add,auto-pst-pdf}%
\begin{document}
\psset{yunit=0.8, dotsize=8pt}
\begin{postscript}
\dotnodes(0,0){O}(2.5,0){A0}(2.5,1){A1}(2.5,2){A2}(1.7,3){B}(3.3,3){C}
\psline(A0)(A2)(B)\psline(A2)(B)\psline(A2)(C)
\nccircle[angle = 180]{O}{0.4}
\psset{linestyle=dashed, dash=6pt 5pt}
\nccircle{B}{0.4}
\ncarc[arcangleA=-20, arcangleB=-30]{A1}{C}
\ncarc[arcangleA=40, arcangleB=60]{O}{B}
\end{postscript}
\end{document}
Best Answer
Here's an example, showing how you could do it with TikZ in a short and readable way.
circle
style for the main nodes, andfont
options so we don't need to adjust fonts within the nodesstealth'
which is the name for a kind of arrow tip andshorten
to not touch the nodeauto
is useful for automatic placement of nodes next to edges, instead of sitting directly on the edge. As we will mostly useleft
andright
options, it will have effect just for one node. But good to have it as general option in the scope.loop
andbend
for loops and bent edgesleft
andright
for bend direction and node placement