3

I would like to recreate the following image in Latex for my assignment. However, I am not able to bend the arrows as shown in the following image. Please help me achieve this. Thanks in advance! enter image description here

EDIT

\documentclass[12pt]{article}
\usepackage{tikz}
\begin{document}

\begin{center}
\begin{tikzpicture}[scale=0.2]
\tikzstyle{every node}+=[inner sep=0pt]
\draw [black] (3.3,-3.2) circle (3);
\draw (3.3,-3.2) node {$Q_0$};
\draw [black] (29.2,-3.2) circle (3);
\draw (29.2,-3.2) node {$Q_1$};
\draw [black] (6.3,-3.2) -- (26.2,-3.2);
\fill [black] (26.2,-3.2) -- (25.4,-2.7) -- (25.4,-3.7);
\draw (16.25,-3.7) node [below] {$u$};
\end{tikzpicture}
\end{center}

\end{document}

This is a simple transition and I would like to bend the transition.

2
  • 2
    Could you include your code so far (minimal working example that can be compiled, beginning with \documentclass) and how your current image looks please?
    – user245306
    Commented Aug 30, 2021 at 19:21
  • 2
    @LaccaseTVersicolor I have added the code . Commented Aug 31, 2021 at 5:42

1 Answer 1

3

Here you are!

PS: [pos=.1] makes me confusing a bit ^^

enter image description here

\documentclass[tikz,border=5mm]{standalone}
\begin{document}
\begin{tikzpicture}[>=stealth,teal,font=\sffamily]
\path[nodes={circle,minimum size=8mm,fill=cyan!30,draw=teal}]
(0,0)   node (P) {P}        
(3,.5)  node (Q) {Q}
(6,-1)  node (R) {R}
;
\draw (R.center) circle(.35);
\draw[<-] (P.180)--+(180:1);
\draw[->] (P) .. controls +(-10:4) and +(170:1.5) .. (Q) node[pos=.1,above]{u}; 
\draw[->] (Q.30) .. controls +(20:1) and +(60:.5) .. (Q.90) node[pos=.5,right]{v};
\draw[->] (Q.-45) .. controls +(-45:4) and +(190:1) .. (R.180) node[pos=.1,below left]{w};
\end{tikzpicture}
\end{document}
1
  • Thank you so much! Commented Aug 31, 2021 at 9:31

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .