# how to draw 'inhibitory' arrow in latex tikz?

i'm using this tikz-based library to draw nodes and arrows between them (https://github.com/jluttine/tikz-bayesnet). I want to draw an arrow that has a vertical line tip (|) (which usually means inhibition). How can this be done in tikz?

this is the code that draws a regular arrow from node "A" to node "B" that I want to replace with |:

\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{bayesnet}

\begin{document}

\begin{figure*}[!h]
\centering
\begin{tikzpicture}
% Define nodes
\node[const] (A) {$A$};
\node[const, below=1cm of A] (B) {$B$};
% connect them
%%% how to make this an arrow with | tip?
\edge{A}{B};
\end{tikzpicture}
\caption{}
\end{figure*}
\end{document}


to compile you need the bayesnet package from the above link.

• While code snippets are useful in explanations, it is always best to compose a fully compilable MWE that illustrates the problem including the \documentclass and the appropriate packages so that those trying to help don't have to recreate it. This is especially important for tikz as there are numerous libraries. Also missing is the definition of the const style, so a composing a a fully compilable MWE will help to flush out those details as well. – Peter Grill Jul 10 '16 at 22:07
• Welcome! Please complete your code so it can be compiled. – cfr Jul 10 '16 at 22:07
• @cfr I updated the code to have MWE. – mvd Jul 10 '16 at 22:29
• You don't need to download the library if you have e.g. TeX Live installed. – cfr Jul 10 '16 at 22:59

Do you want something like this? \documentclass[tikz,border=10pt,multi]{standalone}
\usetikzlibrary{bayesnet,arrows.meta}
\begin{document}
\begin{tikzpicture}
\node[const] (A) {$A$};
\node[const, below=1cm of A] (B) {$B$};
\edge [-Bar] {A}{B};
\end{tikzpicture}
\end{document}

• yes! is there a way to make the arrow end a bit before (higher) than "B"? – mvd Jul 10 '16 at 23:15
• Have you tried shorten >=2pt or whatever? – cfr Jul 10 '16 at 23:22
• Oops, sorry for the quick response, without deep thinking. I will delete it soon. – Jesse Jul 11 '16 at 0:35
• @Jesse No problem! Very easily done ;). – cfr Jul 11 '16 at 8:23
{"ft_lang_label":"__label__en","ft_lang_prob":0.8647886,"math_prob":0.6368564,"size":1085,"snap":"2021-04-2021-17","text_gpt3_token_len":311,"char_repetition_ratio":0.09435707,"word_repetition_ratio":0.0,"special_character_ratio":0.25990784,"punctuation_ratio":0.09045226,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.96192694,"pos_list":[0,1,2],"im_url_duplicate_count":[null,4,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2021-01-26T15:07:44Z\",\"WARC-Record-ID\":\"<urn:uuid:4e68db69-78fb-42df-859e-d0eb5a3cba4c>\",\"Content-Length\":\"156239\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:0cb796ae-bea2-4ae7-8a20-5881b0d66e98>\",\"WARC-Concurrent-To\":\"<urn:uuid:3c3f79c2-caf4-4305-874b-1450586a698b>\",\"WARC-IP-Address\":\"151.101.193.69\",\"WARC-Target-URI\":\"https://tex.stackexchange.com/questions/318832/how-to-draw-inhibitory-arrow-in-latex-tikz/318835\",\"WARC-Payload-Digest\":\"sha1:HM3L5ZMO7XVWXSG5UGNEI2A3TRDDPXRY\",\"WARC-Block-Digest\":\"sha1:JCXKC2NTDQKOTSAB5TAP4XRGSS7S3A4K\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2021/CC-MAIN-2021-04/CC-MAIN-2021-04_segments_1610704800238.80_warc_CC-MAIN-20210126135838-20210126165838-00366.warc.gz\"}"}