I am quite new to latex and I would like to know how to draw the following network diagram from a Markov Chain. Thank you. enter image description here

  • Welcome to TeX.SE! We are happy to help! Please provide the source code that you have tried. In the case you have no idea, please refer to this to get you started. Then, update your question in case you are stuck. – M. Al Jumaily Jul 18 '19 at 18:18

Just for a starting point.


\tikzset{ell/.style={ellipse,draw,minimum height=0.65cm,minimum width=1cm,inner sep=0.25cm}}

\node[ell] (e1)at (0,0) {\color{blue}$SOC1$};
\node[ell] (e2)at (5,2) {\color{blue}$SOC2$};
\node[ell] (e4)at (5,5) {\color{blue}$SOC4$};
\node[ell] (e3)at (-5,3) {\color{blue}$SOC3$};
\node[ell] (e5)at (-1,7) {\color{blue}$SOC5$};
\draw [->] (e4) to [out=-20,in=20]node[right]{\color{red}$p^{\phi} (0)$} (e2);
\draw [->] (e2) to [out=-20,in=-40,looseness=5]node[right]{\color{red}$p^{\phi} (1)$} (e2);
\draw [->] (e2) to [out=-90,in=-30]node[right=2mm]{\color{red}$p^{\phi} (0)$} (e1);
\draw [->] (e1) to [out=0,in=240]node[right=2mm]{\color{red}$p^{\phi} (1)$} (e2);
\draw [->] (e2) to [out=190,in=-30]node[below]{\color{red}$p^{\phi} (2)$} (e3);

enter image description here

  • 1
    you recognize true art when you see it. thanks a lot ! – AlexC75 Jul 18 '19 at 21:26
  • What do you mean? Sorry, English is not my mother language. – ferahfeza Jul 18 '19 at 21:41
  • 1
    I mean this is very good :) thank you ! – AlexC75 Jul 18 '19 at 21:44

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.