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.
\documentclass
and the appropriate packages so that those trying to help don't have to recreate it. This is especially important fortikz
as there are numerous libraries. Also missing is the definition of theconst
style, so a composing a a fully compilable MWE will help to flush out those details as well.