various arrow tricks between nodes in tikz


/ Published in: LaTeX
Save to your folder(s)



Copy this code and paste it in your HTML
  1. \usetikzlibrary{arrows}
  2.  
  3. \begin{tikzpicture}[font=\scriptsize]
  4. \node (a) at (0,0) [circle, draw] {a};
  5. \node (b) at (1,1) [circle, draw] {b};
  6. \draw (a) to[bend left] (b)
  7. (a) to[bend right] (b);
  8. \draw [dashed] (a) |- (b);
  9. \draw [red,->>] (a) -| (b);
  10. \draw [xshift=2pt] (a) -- (b);
  11. \draw [xshift=-2pt] (a) -- (b);
  12.  
  13. \node[rectangle,draw] (A) at (.5,.5) {A};
  14. \node[rectangle,draw] (B) at (3,1.5) {B};
  15. \node[rectangle,draw] (C) at (.5,-2) {C};
  16. \draw[-left to] (A.north east) -- (B.west);
  17. \draw[-left to] (B) -- (A);
  18. \draw[->] (A.280) -- (C.80);
  19. \draw[<-] (A.260) -- (C.100);
  20. \end{tikzpicture}

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.