I use this code:
\begin{tikzpicture}
\node[place,
accepting,
label=above:$p_1^1$] (p11) at (-3,0) {};
\node[transition,
minimum width=1.5mm,
minimum height=12mm,
label=below:$t_1$] (t1) at (-1.5,0) {};
\draw[thick] (p11) edge[post,bend left=30] (t1)
(t1) edge[post,bend left=30] (p11);
\end{tikzpicture}
I want to add a label to each arrow, preferably like this:
I have tried using {label}
after the receiving nodes of each arrow but it does not work.
(p11) edge[...] node [above] {$q^1$} (t1)
I suppose? (As in e.g. tex.stackexchange.com/questions/538590/midway-label-for-edge/…)\documentclass
, includes all relevant\usepackage
commands, ends with\end{document}
and compiles without errors, even if it does not produce your desired output.