Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- \documentclass{standalone}
- \usepackage[T1]{fontenc}
- \usepackage[latin2]{inputenc}
- \usepackage[english]{babel}
- \usepackage{tikz}
- \usetikzlibrary{calc,through,backgrounds,positioning,fit}
- \usetikzlibrary{shapes,arrows,shadows}
- \begin{document}
- \tikzstyle{stt}=[shape=circle, draw, minimum height=6mm]
- \begin{tikzpicture}[scale=1,inner sep=0.4mm]
- \node (s0) [stt,thick] at (0,3) {$s_0$};
- \node (s1) [stt] at (-3,0) {$s_1$};
- \node (s2) [stt] at (3,0) {$s_2$};
- \node (s3) [stt] at (0,-2) {$s_3$};
- \draw[-triangle 60] (s3) -- node [fill=white] {$a$} (s0);
- \draw[-triangle 60] (s2) -- node [fill=white] {$a$} (s3);
- \draw[-triangle 60] (s1) -- node [fill=white] {$b$} (s3);
- \draw[-triangle 60] (s2) -- node [fill=white] {$a$} (s3);
- \draw[-triangle 60] (s0) .. node [fill=white, near end] {$a$} controls (-1,2.7) and (-3,2) .. (s1);
- \draw[-triangle 60] (s1.east) .. node [fill=white, near end] {$b$} controls (-2.7,0) and (-1,0.7) .. (s0);
- \draw[-triangle 60] (s0) .. node [fill=white, near end] {$c$} controls (1,2.7) and (3,2) .. (s2);
- \draw[-triangle 60] (s2.west) .. node [fill=white, near end] {$b$} controls (2.7,0) and (1,0.7) .. (s0);
- \end{tikzpicture}
- \end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement