I'm trying to draw a graph (PDF output of code below attached) that's a linear process, with a potentially circular element in it.
As you may see in the upper picture, the the B,C,D elements aren't in a circle. In the lower picture, they are but the method I used seems a bit kludgy (evidenced by the arc connecting the circle nodes.
Two questions:
- What's a best way to draw the circle with the B, C, D nodes?
- How do I get that circle "subgraph"(?) to be placed with the A, E, and spectrum nodes?
Thanks in advance for your help.
\tikzstyle{stage}=[draw, circle, align=center, text width=2.5cm, minimum height=2em%]
\tikzstyle{connectR}=[->,thick]
\tikzstyle{connectA}=[->,thick]
\begin{tikzpicture}[node distance=5cm, auto]
\node (id) [stage] {A};
\node (acquire) [stage, below right of=id] {B};
\node (assess) [stage, right of=acquire] {C};
\node (assdet) [right of=assess, text width=3.5cm, node distance=4.25cm ] {Some explanation};
\node (persuade) [stage, below left of=assess] {D};
\node (optexp) [stage, below of=persuade]{E};
\node (spect) [below of=optexp, rectangle, draw, fill, left color=white, right color=gray,minimum height=1cm, minimum width=5cm] {Outcome spectrum};
\draw [connectR] (id) -- (acquire);
\draw [connectR] (acquire) -- (assess);
\draw [decorate, decoration={brace,mirror,raise=55pt}, very thick, ] (assdet.north) -- (assdet.south);
\draw[connectR,bend left] (assess.south) -- (persuade.east);
\draw[dashed, bend left] (persuade.west) -> (acquire.south);
\draw[connectR] (persuade) -- (optexp);
\draw [dashed] (optexp.south west) -- ($(spect.north west) +(.5,0)$) -- ($(spect.north east) +(-.5,0)$) -- (optexp.south east) ;
\end{tikzpicture}
\begin{tikzpicture}
\node (one)[stage] at ({145}:4cm) {B};
\node (two) [stage] at ({35}:4cm) {C};
\node (three)[stage] at ({270}:4cm) {D};
\draw [->] (one.north) to [bend left=45] (two.north);
\draw [->] (two.east) to [bend left=45] (three.east);
\draw [->, dashed] (three.west) to [bend left=45] (one.west);
\end{tikzpicture}


\documentclass{...}and the required\usepackage's, and ends with\end{document}. It is much easier for us to help you if we can copy your example code and compile it without changing it ourselves. – eiterorm Sep 10 '14 at 21:45