[Tex/LaTex] How to draw a surjective (double-headed) arrow between two nodes in TikZ tikz-arrows I can't find how to draw a surjective arrow between two nodes in TikZ. I'd like it to look somewhat like this. Best Answer A pure TikZ solution involves using ->> and that's about it: \documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture} \node at (0,0) (a) {A}; \node at (1,0) (b) {B}; \path [draw,->>] (a) -- (b); \end{tikzpicture} \end{document} And we are done. :) Related Solutions[Tex/LaTex] single thick arrow bent 90 degrees instead of two double thick arrows You could use the arrow box shape like this: \documentclass[tikz, border=0.125cm]{standalone} \usetikzlibrary{shapes.arrows} \begin{document} \begin{tikzpicture} \node [arrow box, arrow box shaft width=0.125cm, inner sep=0.125cm/2, % should be half shaft width fill=gray, arrow box arrows={north:.5cm, west:0.5cm}] {}; \node [arrow box, arrow box shaft width=0.125cm, inner sep=0.125cm/2, % should be half shaft width fill=gray, arrow box arrows={north:.5cm, east:0.5cm}] at (1,0) {}; \end{tikzpicture} \end{document} [Tex/LaTex] Draw ellipsis (three dots) between nodes in tikz Another way would be to say \path (1) -- node[auto=false]{\ldots} (2);. You've turned on the auto setting in the tikzpicture options, auto=false turns it off. Also, it is recommended to load the positioning library and use right=of instead of saying just right of=. See Difference between "right of=" and "right=of" in PGF/TikZ. Finally, I don't really think the [every node... option to your last path does anything. \documentclass[12pt,border=2mm]{standalone} \usepackage{tikz} \usetikzlibrary{arrows,positioning} \begin{document} \begin{tikzpicture}[->,>=stealth',shorten >=1pt,auto,node distance=1.5cm, main node/.style={thick,circle,draw,font=\sffamily\Large}] \node[main node] (1) {$X_1$}; \node[main node] (2) [right=of 1]{$X_N$}; \node[main node] (5) [below=of 1]{C}; \path (1) edge (5); \path (1) -- node[auto=false]{\ldots} (2); \end{tikzpicture} \end{document} Related Question[Tex/LaTex] draw half line between two nodes tikz[Tex/LaTex] How to create 2 arrows rather than double headed arrow with Tikz[Tex/LaTex] Arrow between two itemizes in two columns in beamer[Tex/LaTex] Add arrow between two tcolorboxes[Tex/LaTex] How to draw arrow between two figures
Best Answer
A pure TikZ solution involves using
->>
and that's about it:And we are done.
:)