title: Tikz: two edge path
body: <p>Can I use \path to draw a line that goes through 2 edges.</p>
  
  <p>Consider:</p>
  
  <pre><code>\documentclass{article}
  \usepackage{tikz}
  \usetikzlibrary{positioning}
  
  \tikzstyle{status} = [rectangle, draw=black, text centered, anchor=north, text=black, minimum width=2em, minimum height=2em, node distance=6ex and 7em, font=\bfseries]
  \tikzstyle{line} = [draw,thick,-latex]
  \tikzstyle{transition} = [font=\small]
  
  \begin{document}
      \begin{tikzpicture}
      \node [status, fill=green] (T) {H};
      \node [status, fill=red, right=4em of T] (A) {A};
      \node [status, fill=gray, right=4em of A] (D) {D};
  
      \path [line] (T) -- (A) node[transition,pos=0.5,above,align=left] {$\#A \geq 1$};
      \path [line] (A) -- (D) node[transition,pos=0.5,above,align=left] {wait $\tau$ tick\\$\tau\sim\mathcal{G}(\lambda)$};
      %\path [line] (D) -| (T) node[transition,pos=0.83,left] {$p_{repl}$};
      \end{tikzpicture}
  \end{document}
  </code></pre>
  
  <p>Screenshot:</p>
  
  <p><img src="https://i.stack.imgur.com/YBh6o.png" alt="screenshot"></p>
  
  <p>Mockup of what I want:</p>
  
  <p><img src="https://i.stack.imgur.com/Mtgos.png" alt="mockup"></p>