Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- \documentclass{jarticle}
- \usepackage[dvipdfmx]{graphicx}
- \usepackage{tikz}
- \usetikzlibrary{automata}
- \begin{document}
- \begin{tikzpicture}
- [
- scale=1.2,
- every node/.style={transform shape},
- /tikz/initial text={START},
- initial where=above
- ]
- \node[state,initial] (0) at ( 90:4) {申};
- \node[state] (1) at ( 60:4) {酉};
- \node[state] (2) at ( 30:4) {戌};
- \node[state] (3) at ( 0:4) {亥};
- \node[state] (4) at (330:4) {子};
- \node[state] (5) at (300:4) {丑};
- \node[state] (6) at (270:4) {寅};
- \node[state] (7) at (240:4) {卯};
- \node[state] (8) at (210:4) {辰};
- \node[state] (9) at (180:4) {巳};
- \node[state] (10) at (150:4) {午};
- \node[state] (11) at (120:4) {未};
- \path[->] (0) edge [thick,thin, color=darkgray,out=20,in=40,loop] node{$\mathsf{0}$}(0);
- \path[->] (0) edge [thick,pos=0.1,bend right = 5,color=red] node{$\mathsf{1}$} (1);
- \path[->] (0) edge [thick,pos=0.1,bend right = 5,color=orange] node{$\mathsf{2}$} (2);
- \path[->] (0) edge [thick,pos=0.1,bend right = 5,color=yellow] node{$\mathsf{3}$} (3);
- \path[->] (0) edge [thick,pos=0.1,bend right = 5,color=lime] node{$\mathsf{4}$} (4);
- \path[->] (0) edge [thick,pos=0.1,bend right = 5,color=green] node{$\mathsf{5}$} (5);
- \path[->] (0) edge [thick,pos=0.1,bend right = 5,color=cyan] node{$\mathsf{6}$} (6);
- \path[->] (0) edge [thick,pos=0.1,bend right = 5,color=blue] node{$\mathsf{7}$} (7);
- \path[->] (0) edge [thick,pos=0.1,bend right = 5,color=magenta] node{$\mathsf{8}$} (8);
- \path[->] (0) edge [thick,pos=0.1,bend right = 5,color=purple] node{$\mathsf{9}$} (9);
- \path[->] (1) edge [thick,pos=0.1,bend right = 5,color=darkgray] node{$\mathsf{0}$} (10);
- \path[->] (1) edge [thick,pos=0.1,bend right = 5,color=red] node{$\mathsf{1}$} (11);
- \path[->] (1) edge [thick,pos=0.1,bend right = 5,color=orange] node{$\mathsf{2}$} (0);
- \path[->] (1) edge [thick,color=yellow,out=50,in=70,loop] node{$\mathsf{3}$} (1);
- \path[->] (1) edge [thick,pos=0.1,bend right = 5,color=lime] node{$\mathsf{4}$} (2);
- \path[->] (1) edge [thick,pos=0.1,bend right = 5,color=green] node{$\mathsf{5}$} (3);
- \path[->] (1) edge [thick,pos=0.1,bend right = 5,color=cyan] node{$\mathsf{6}$} (4);
- \path[->] (1) edge [thick,pos=0.1,bend right = 5,color=blue] node{$\mathsf{7}$} (5);
- \path[->] (1) edge [thick,pos=0.1,bend right = 5,color=magenta] node{$\mathsf{8}$} (6);
- \path[->] (1) edge [thick,pos=0.1,bend right = 5,color=purple] node{$\mathsf{9}$} (7);
- \path[->] (2) edge [thick,pos=0.1,bend right = 5,color=darkgray] node{$\mathsf{0}$} (8);
- \path[->] (2) edge [thick,pos=0.1,bend right = 5,color=red] node{$\mathsf{1}$} (9);
- \path[->] (2) edge [thick,pos=0.1,bend right = 5,color=orange] node{$\mathsf{2}$} (10);
- \path[->] (2) edge [thick,pos=0.1,bend right = 5,color=yellow] node{$\mathsf{3}$} (11);
- \path[->] (2) edge [thick,pos=0.1,bend right = 5,color=lime] node{$\mathsf{4}$} (0);
- \path[->] (2) edge [thick,pos=0.1,bend right = 5,color=green] node{$\mathsf{5}$} (1);
- \path[->] (2) edge [thick,color=cyan,out=20,in=40,loop] node{$\mathsf{6}$} (2);
- \path[->] (2) edge [thick,pos=0.1,bend right = 5,color=blue] node{$\mathsf{7}$} (3);
- \path[->] (2) edge [thick,pos=0.1,bend right = 5,color=magenta] node{$\mathsf{8}$} (4);
- \path[->] (2) edge [thick,pos=0.1,bend right = 5,color=purple] node{$\mathsf{9}$} (5);
- \path[->] (3) edge [thick,pos=0.1,bend right = 5,color=darkgray] node{$\mathsf{0}$} (6);
- \path[->] (3) edge [thick,pos=0.1,bend right = 5,color=red] node{$\mathsf{1}$} (7);
- \path[->] (3) edge [thick,pos=0.1,bend right = 5,color=orange] node{$\mathsf{2}$} (8);
- \path[->] (3) edge [thick,pos=0.1,bend right = 5,color=yellow] node{$\mathsf{3}$} (9);
- \path[->] (3) edge [thick,pos=0.1,bend right = 5,color=lime] node{$\mathsf{4}$} (10);
- \path[->] (3) edge [thick,pos=0.1,bend right = 5,color=green] node{$\mathsf{5}$} (11);
- \path[->] (3) edge [thick,pos=0.1,bend right = 5,color=cyan] node{$\mathsf{6}$} (0);
- \path[->] (3) edge [thick,pos=0.1,bend right = 5,color=blue] node{$\mathsf{7}$} (1);
- \path[->] (3) edge [thick,pos=0.1,bend right = 5,color=magenta] node{$\mathsf{8}$} (2);
- \path[->] (3) edge [thick,color=purple,out=-10,in=10,loop] node{$\mathsf{9}$} (3);
- \path[->] (4) edge [thick,color=darkgray,loop,out=-40,in=-20,loop] node{$\mathsf{0}$} (4);
- \path[->] (4) edge [thick,pos=0.1,bend right = 5,color=red] node{$\mathsf{1}$} (5);
- \path[->] (4) edge [thick,pos=0.1,bend right = 5,color=orange] node{$\mathsf{2}$} (6);
- \path[->] (4) edge [thick,pos=0.1,bend right = 5,color=yellow] node{$\mathsf{3}$} (7);
- \path[->] (4) edge [thick,pos=0.1,bend right = 5,color=lime] node{$\mathsf{4}$} (8);
- \path[->] (4) edge [thick,pos=0.1,bend right = 5,color=green] node{$\mathsf{5}$} (9);
- \path[->] (4) edge [thick,pos=0.1,bend right = 5,color=cyan] node{$\mathsf{6}$} (10);
- \path[->] (4) edge [thick,pos=0.1,bend right = 5,color=blue] node{$\mathsf{7}$} (11);
- \path[->] (4) edge [thick,pos=0.1,bend right = 5,color=magenta] node{$\mathsf{8}$} (0);
- \path[->] (4) edge [thick,pos=0.1,bend right = 5,color=purple] node{$\mathsf{9}$} (1);
- \path[->] (5) edge [thick,pos=0.1,bend right = 5,color=darkgray] node{$\mathsf{0}$} (2);
- \path[->] (5) edge [thick,pos=0.1,bend right = 5,color=red] node{$\mathsf{1}$} (3);
- \path[->] (5) edge [thick,pos=0.1,bend right = 5,color=orange] node{$\mathsf{2}$} (4);
- \path[->] (5) edge [thick,color=yellow,loop,out=-70,in=-50,loop] node{$\mathsf{3}$} (5);
- \path[->] (5) edge [thick,pos=0.1,bend right = 5,color=lime] node{$\mathsf{4}$} (6);
- \path[->] (5) edge [thick,pos=0.1,bend right = 5,color=green] node{$\mathsf{5}$} (7);
- \path[->] (5) edge [thick,pos=0.1,bend right = 5,color=cyan] node{$\mathsf{6}$} (8);
- \path[->] (5) edge [thick,pos=0.1,bend right = 5,color=blue] node{$\mathsf{7}$} (9);
- \path[->] (5) edge [thick,pos=0.1,bend right = 5,color=magenta] node{$\mathsf{8}$} (10);
- \path[->] (5) edge [thick,pos=0.1,bend right = 5,color=purple] node{$\mathsf{9}$} (11);
- \path[->] (6) edge [thick,pos=0.1,bend right = 5, color=darkgray] node{$\mathsf{0}$} (0);
- \path[->] (6) edge [thick,pos=0.1,bend right = 5, color=red] node{$\mathsf{1}$} (1);
- \path[->] (6) edge [thick,pos=0.1,bend right = 5, color=orange] node{$\mathsf{2}$} (2);
- \path[->] (6) edge [thick,pos=0.1,bend right = 5, color=yellow] node{$\mathsf{3}$} (3);
- \path[->] (6) edge [thick,pos=0.1,bend right = 5, color=lime] node{$\mathsf{4}$} (4);
- \path[->] (6) edge [thick,pos=0.1,bend right = 5, color=green] node{$\mathsf{5}$} (5);
- \path[->] (6) edge [thick,color=cyan,loop,out=-100,in=-80,loop] node{$\mathsf{6}$} (6);
- \path[->] (6) edge [thick,pos=0.1,bend right = 5, color=blue] node{$\mathsf{7}$} (7);
- \path[->] (6) edge [thick,pos=0.1,bend right = 5, color=magenta] node{$\mathsf{8}$} (8);
- \path[->] (6) edge [thick,pos=0.1,bend right = 5, color=purple] node{$\mathsf{9}$} (9);
- \path[->] (7) edge [thick,pos=0.1,bend right = 5, color=darkgray] node{$\mathsf{0}$} (10);
- \path[->] (7) edge [thick,pos=0.1,bend right = 5, color=red] node{$\mathsf{1}$} (11);
- \path[->] (7) edge [thick,pos=0.1,bend right = 5, color=orange] node{$\mathsf{2}$} (0);
- \path[->] (7) edge [thick,pos=0.1,bend right = 5, color=yellow] node{$\mathsf{3}$} (1);
- \path[->] (7) edge [thick,pos=0.1,bend right = 5, color=lime] node{$\mathsf{4}$} (2);
- \path[->] (7) edge [thick,pos=0.1,bend right = 5, color=green] node{$\mathsf{5}$} (3);
- \path[->] (7) edge [thick,pos=0.1,bend right = 5, color=cyan] node{$\mathsf{6}$} (4);
- \path[->] (7) edge [thick,pos=0.1,bend right = 5, color=blue] node{$\mathsf{7}$} (5);
- \path[->] (7) edge [thick,pos=0.1,bend right = 5, color=magenta] node{$\mathsf{8}$} (6);
- \path[->] (7) edge [thick,color=purple,loop,out=-130,in=-110,loop] node{$\mathsf{9}$} (7);
- \path[->] (8) edge [thick,color=darkgray,loop,out=-160,in=-140,loop] node{$\mathsf{0}$} (8);
- \path[->] (8) edge [thick,pos=0.1,bend right = 5, color=red] node{$\mathsf{1}$} (9);
- \path[->] (8) edge [thick,pos=0.1,bend right = 5, color=orange] node{$\mathsf{2}$} (10);
- \path[->] (8) edge [thick,pos=0.1,bend right = 5, color=yellow] node{$\mathsf{3}$} (11);
- \path[->] (8) edge [thick,pos=0.1,bend right = 5, color=lime] node{$\mathsf{4}$} (0);
- \path[->] (8) edge [thick,pos=0.1,bend right = 5, color=green] node{$\mathsf{5}$} (1);
- \path[->] (8) edge [thick,pos=0.1,bend right = 5, color=cyan] node{$\mathsf{6}$} (2);
- \path[->] (8) edge [thick,pos=0.1,bend right = 5, color=blue] node{$\mathsf{7}$} (3);
- \path[->] (8) edge [thick,pos=0.1,bend right = 5, color=magenta] node{$\mathsf{8}$} (4);
- \path[->] (8) edge [thick,pos=0.1,bend right = 5, color=purple] node{$\mathsf{9}$} (5);
- \path[->] (9) edge [thick,thick,pos=0.1,bend right = 5, color=darkgray] node{$\mathsf{0}$} (6);
- \path[->] (9) edge [thick,pos=0.1,bend right = 5, color=red] node{$\mathsf{1}$} (7);
- \path[->] (9) edge [thick,pos=0.1,bend right = 5, color=orange] node{$\mathsf{2}$} (8);
- \path[->] (9) edge [color=yellow,loop,out=-190,in=-170,loop] node{$\mathsf{3}$} (9);
- \path[->] (9) edge [thick,pos=0.1,bend right = 5, color=lime] node{$\mathsf{4}$} (10);
- \path[->] (9) edge [thick,pos=0.1,bend right = 5, color=green] node{$\mathsf{5}$} (11);
- \path[->] (9) edge [thick,pos=0.1,bend right = 5, color=cyan] node{$\mathsf{6}$} (0);
- \path[->] (9) edge [thick,pos=0.1,bend right = 5, color=blue] node{$\mathsf{7}$} (1);
- \path[->] (9) edge [thick,pos=0.1,bend right = 5, color=magenta] node{$\mathsf{8}$} (2);
- \path[->] (9) edge [thick,pos=0.1,bend right = 5, color=purple] node{$\mathsf{9}$} (3);
- \path[->] (10) edge [thick,pos=0.1,bend right = 5, color=darkgray] node{$\mathsf{0}$} (4);
- \path[->] (10) edge [thick,pos=0.1,bend right = 5, color=red] node{$\mathsf{1}$} (5);
- \path[->] (10) edge [thick,pos=0.1,bend right = 5, color=orange] node{$\mathsf{2}$} (6);
- \path[->] (10) edge [thick,pos=0.1,bend right = 5, color=yellow] node{$\mathsf{3}$} (7);
- \path[->] (10) edge [thick,pos=0.1,bend right = 5, color=lime] node{$\mathsf{4}$} (8);
- \path[->] (10) edge [thick,pos=0.1,bend right = 5, color=green] node{$\mathsf{5}$} (9);
- \path[->] (10) edge [thick,color=cyan,out=-220,in=-200,loop] node{$\mathsf{6}$} (10);
- \path[->] (10) edge [thick,pos=0.1,bend right = 5, color=blue] node{$\mathsf{7}$} (11);
- \path[->] (10) edge [thick,pos=0.1,bend right = 5, color=magenta] node{$\mathsf{8}$} (0);
- \path[->] (10) edge [thick,pos=0.1,bend right = 5, color=purple] node{$\mathsf{9}$} (1);
- \path[->] (11) edge [thick,pos=0.1,bend right = 5, color=darkgray] node{$\mathsf{0}$} (2);
- \path[->] (11) edge [thick,pos=0.1,bend right = 5, color=red] node{$\mathsf{1}$} (3);
- \path[->] (11) edge [thick,pos=0.1,bend right = 5, color=orange] node{$\mathsf{2}$} (4);
- \path[->] (11) edge [thick,pos=0.1,bend right = 5, color=yellow] node{$\mathsf{3}$} (5);
- \path[->] (11) edge [thick,pos=0.1,bend right = 5, color=lime] node{$\mathsf{4}$} (6);
- \path[->] (11) edge [thick,pos=0.1,bend right = 5, color=green] node{$\mathsf{5}$} (7);
- \path[->] (11) edge [thick,pos=0.1,bend right = 5, color=cyan] node{$\mathsf{6}$} (8);
- \path[->] (11) edge [thick,pos=0.1,bend right = 5, color=blue] node{$\mathsf{7}$} (9);
- \path[->] (11) edge [thick,pos=0.1,bend right = 5, color=magenta] node{$\mathsf{8}$} (10);
- \path[->] (11) edge [thick,color=purple,loop,out=-250,in=-230,loop] node{$\mathsf{9}$} (11);
- \end{tikzpicture}
- \end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement