I'm trying to draw small process flow graph, but I'm having two problems with the layout:
- The edges from the bottom nodes B, C should curve out and around back to A, not go directly on the inside. I thought that
bend leftandbend rightwould do this, but they don't seem to have any effect. The text on some edges needs more isolation from other elements. Can I specify an offset from the drawn edge to place the text?
\documentclass{article} \usepackage{tikz} \usetikzlibrary{arrows} \begin{document} \begin{tikzpicture}[->,>=stealth',shorten >=1pt,node distance=2.5cm,auto,main node/.style={rectangle,rounded corners,draw,align=center}] \node[main node] (1) {$A$}; \node[main node] (2) [below left of=1] {$D$}; \node[main node] (4) [below of=2] {$B$}; \node[main node] (3) [below right of=1] {$E$}; \node[main node] (5) [below of=3] {$C$}; \path (1) edge node [left] {$d$} (2) edge node [right] {$e$} (3) (2) edge node [below] {$b$} (4) (3) edge node [below] {$c$} (5) (4) edge node [bend left] {$a$} (1) (5) edge node [bend right] {$a$} (1); \end{tikzpicture} \end{document}


below ofkeys are deprecated: Difference between "right of=" and "right=of" in PGF/TikZ – Qrrbrbirlbel Jun 27 '13 at 16:14