In the code below, I would like to add one text inside one "circled" arrow in gray like in the following ugly draw.
Screenshot
Code
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{tikz}
\usetikzlibrary{arrows,shadows,positioning}
\tikzset{
frame/.style={
rectangle, draw,
text width = 6em, text centered,
minimum height = 4em, drop shadow, fill=lime!40,
rounded corners,
},
line/.style={
draw, -latex', rounded corners = 3mm,
}
}
\begin{document}
\begin{tikzpicture}[font=\small\sffamily\bfseries,very thick,node distance = 4cm]
\node [frame] (pop) {Population};
\node [above=2cm, left of=pop] (init) {Initialisation};
\node [below=2cm, left of=pop] (term) {Termination};
\node [frame, above=2cm, right of=pop] (parents) {Parents};
\node [frame, below=2cm, right of=pop] (off) {Offspring};
\path [line] (parents)
-- node[right,align=left,pos=.5] {Recombination\\[3mm]Mutation}
(off);
\path [line] (init) |- (pop.170);
\path [line] (pop.190) -| (term);
\path [line] (off) -| node[below,pos=.25, align=center] {Survivor\\ selection}(pop);
\path [line] (pop) |- node[above,pos=.75, align=center] {Parents\\ selection}(parents);
\end{tikzpicture}
\end{document}
Best Answer
UPDATED: New version supporting styles, and new example:
This command can be useful:
It can be used as part of a Tikz picture like this: