[Tex/LaTex] Harpoons in TikZ


Can I have any harpoons in TikZ?

I refer to my previous question on harpoons: "How to draw protocol interaction" using amsmath.
The closest thing I have found is this code:

    \node[circle,draw] (A) at (.5,.5) {A};   
    \node[circle,draw] (B) at (3,1.5) {B};   
    \draw[->,decorate] (A) -- (B);   
    \draw[->,decorate] (B) -- (A);  

Best Answer

There are so called partial arrow tips in TikZ. Use for instance left to, right to, left hook or right hook. They are desribed in section 23.7 of the pfg 2.10 manual (22.6 in the pgf 2.0 manual).

Inserting this into your example:

    \node[circle,draw] (A) at (.5,.5) {A};   
    \node[circle,draw] (B) at (3,1.5) {B};   
    \draw[-left to] (A.north east) -- (B.west);   
    \draw[-left to] (B) -- (A);  

alt text