I want to write a small program to draw an automata using tikz, but when I finish, it seems like this: enter image description here

Actually, I use the way of converting Graghviz to tikz. So I would like to draw a path from (_0) to (_1) like b

enter image description here

I know I can use \path[->](_0) edge[in=150,out=30] node[above]{b} (_1); to draw the curve. But instead of angle, I can only get points along the path. How can I do this without calculating the angle or the starting point like (_0) + (1pt,1pt) to use the method of

\draw[->] plot [smooth] coordinates {(_0) (1,-0.5) (2,-0.5) (_1)};


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.