1

I tried drawing an arrow between two nodes, and wanted to use the east anchor and found a strange behaviour: If you add that anchor it seems you get an additional arrow head pointing in some strange direction, but I couldn't find any explanation on why you should get this. Can anyone elaborate why we do get this additional arrow head and how one would go about removing it?

I tried demonstrating this effect with a minimal example: The arrow between a and b has a head at a (which I was referring to above). I expected that this arrow should have no arrow head there and should look exactly like the arrow between c and d.

\documentclass{standalone}
\usepackage{tikz}
\usetikzlibrary{shapes.geometric}
\begin{document}
\begin{tikzpicture}
\node[circle, draw] (a) at (0,0) {a};
\node[circle, draw] (b) at (1,0) {b};
\draw[->] (a.east) edge (b);
\node[circle, draw] (c) at (0,-1) {c};
\node[circle, draw] (d) at (1,-1) {d};
\draw[->] (c) edge (d);
\end{tikzpicture}
\end{document}

Here the corresponding screenshot:

screenshot

erik
  • 12,673
flawr
  • 1,123
  • 1
  • 9
  • 19

1 Answers1

0

enter image description here

\documentclass{standalone}
\usepackage{tikz}
\usetikzlibrary{shapes.geometric}
\begin{document}
\begin{tikzpicture}
\node[circle, draw] (a) at (0,0) {a};
\node[circle, draw] (b) at (1,0) {b};
\draw[->] (a.east) to (b);
\node[circle, draw] (c) at (0,-1) {c};
\node[circle, draw] (d) at (1,-1) {d};
\draw[->] (c) to (d);
\end{tikzpicture}
\end{document}
js bibra
  • 21,280
  • 1
    The question was not how to remove the arrow, but why does it appear in the first place. – erik Apr 22 '21 at 14:10
  • Thanks you for answering. While replacing edge with to is a workaround in this case, they do not behave the same everywhere. – flawr Apr 22 '21 at 14:10