Advertisement
Guest User

Untitled

a guest
Feb 12th, 2016
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.04 KB | None | 0 0
  1. \documentclass{jarticle}
  2. \usepackage[dvipdfmx]{graphicx}
  3. \usepackage{tikz}
  4. \usetikzlibrary{automata}
  5.  
  6. \begin{document}
  7. \begin{tikzpicture}
  8. [
  9. scale=1.2,
  10. every node/.style={transform shape},
  11. /tikz/initial text={START},
  12. initial where=above
  13. ]
  14. \node[state,initial] (0) at ( 90:4) {申};
  15. \node[state] (1) at ( 60:4) {酉};
  16. \node[state] (2) at ( 30:4) {戌};
  17. \node[state] (3) at ( 0:4) {亥};
  18. \node[state] (4) at (330:4) {子};
  19. \node[state] (5) at (300:4) {丑};
  20. \node[state] (6) at (270:4) {寅};
  21. \node[state] (7) at (240:4) {卯};
  22. \node[state] (8) at (210:4) {辰};
  23. \node[state] (9) at (180:4) {巳};
  24. \node[state] (10) at (150:4) {午};
  25. \node[state] (11) at (120:4) {未};
  26.  
  27. \path[->] (0) edge [thick,thin, color=darkgray,out=20,in=40,loop] node{$\mathsf{0}$}(0);
  28. \path[->] (0) edge [thick,pos=0.1,bend right = 5,color=red] node{$\mathsf{1}$} (1);
  29. \path[->] (0) edge [thick,pos=0.1,bend right = 5,color=orange] node{$\mathsf{2}$} (2);
  30. \path[->] (0) edge [thick,pos=0.1,bend right = 5,color=yellow] node{$\mathsf{3}$} (3);
  31. \path[->] (0) edge [thick,pos=0.1,bend right = 5,color=lime] node{$\mathsf{4}$} (4);
  32. \path[->] (0) edge [thick,pos=0.1,bend right = 5,color=green] node{$\mathsf{5}$} (5);
  33. \path[->] (0) edge [thick,pos=0.1,bend right = 5,color=cyan] node{$\mathsf{6}$} (6);
  34. \path[->] (0) edge [thick,pos=0.1,bend right = 5,color=blue] node{$\mathsf{7}$} (7);
  35. \path[->] (0) edge [thick,pos=0.1,bend right = 5,color=magenta] node{$\mathsf{8}$} (8);
  36. \path[->] (0) edge [thick,pos=0.1,bend right = 5,color=purple] node{$\mathsf{9}$} (9);
  37.  
  38. \path[->] (1) edge [thick,pos=0.1,bend right = 5,color=darkgray] node{$\mathsf{0}$} (10);
  39. \path[->] (1) edge [thick,pos=0.1,bend right = 5,color=red] node{$\mathsf{1}$} (11);
  40. \path[->] (1) edge [thick,pos=0.1,bend right = 5,color=orange] node{$\mathsf{2}$} (0);
  41. \path[->] (1) edge [thick,color=yellow,out=50,in=70,loop] node{$\mathsf{3}$} (1);
  42. \path[->] (1) edge [thick,pos=0.1,bend right = 5,color=lime] node{$\mathsf{4}$} (2);
  43. \path[->] (1) edge [thick,pos=0.1,bend right = 5,color=green] node{$\mathsf{5}$} (3);
  44. \path[->] (1) edge [thick,pos=0.1,bend right = 5,color=cyan] node{$\mathsf{6}$} (4);
  45. \path[->] (1) edge [thick,pos=0.1,bend right = 5,color=blue] node{$\mathsf{7}$} (5);
  46. \path[->] (1) edge [thick,pos=0.1,bend right = 5,color=magenta] node{$\mathsf{8}$} (6);
  47. \path[->] (1) edge [thick,pos=0.1,bend right = 5,color=purple] node{$\mathsf{9}$} (7);
  48.  
  49. \path[->] (2) edge [thick,pos=0.1,bend right = 5,color=darkgray] node{$\mathsf{0}$} (8);
  50. \path[->] (2) edge [thick,pos=0.1,bend right = 5,color=red] node{$\mathsf{1}$} (9);
  51. \path[->] (2) edge [thick,pos=0.1,bend right = 5,color=orange] node{$\mathsf{2}$} (10);
  52. \path[->] (2) edge [thick,pos=0.1,bend right = 5,color=yellow] node{$\mathsf{3}$} (11);
  53. \path[->] (2) edge [thick,pos=0.1,bend right = 5,color=lime] node{$\mathsf{4}$} (0);
  54. \path[->] (2) edge [thick,pos=0.1,bend right = 5,color=green] node{$\mathsf{5}$} (1);
  55. \path[->] (2) edge [thick,color=cyan,out=20,in=40,loop] node{$\mathsf{6}$} (2);
  56. \path[->] (2) edge [thick,pos=0.1,bend right = 5,color=blue] node{$\mathsf{7}$} (3);
  57. \path[->] (2) edge [thick,pos=0.1,bend right = 5,color=magenta] node{$\mathsf{8}$} (4);
  58. \path[->] (2) edge [thick,pos=0.1,bend right = 5,color=purple] node{$\mathsf{9}$} (5);
  59.  
  60. \path[->] (3) edge [thick,pos=0.1,bend right = 5,color=darkgray] node{$\mathsf{0}$} (6);
  61. \path[->] (3) edge [thick,pos=0.1,bend right = 5,color=red] node{$\mathsf{1}$} (7);
  62. \path[->] (3) edge [thick,pos=0.1,bend right = 5,color=orange] node{$\mathsf{2}$} (8);
  63. \path[->] (3) edge [thick,pos=0.1,bend right = 5,color=yellow] node{$\mathsf{3}$} (9);
  64. \path[->] (3) edge [thick,pos=0.1,bend right = 5,color=lime] node{$\mathsf{4}$} (10);
  65. \path[->] (3) edge [thick,pos=0.1,bend right = 5,color=green] node{$\mathsf{5}$} (11);
  66. \path[->] (3) edge [thick,pos=0.1,bend right = 5,color=cyan] node{$\mathsf{6}$} (0);
  67. \path[->] (3) edge [thick,pos=0.1,bend right = 5,color=blue] node{$\mathsf{7}$} (1);
  68. \path[->] (3) edge [thick,pos=0.1,bend right = 5,color=magenta] node{$\mathsf{8}$} (2);
  69. \path[->] (3) edge [thick,color=purple,out=-10,in=10,loop] node{$\mathsf{9}$} (3);
  70.  
  71. \path[->] (4) edge [thick,color=darkgray,loop,out=-40,in=-20,loop] node{$\mathsf{0}$} (4);
  72. \path[->] (4) edge [thick,pos=0.1,bend right = 5,color=red] node{$\mathsf{1}$} (5);
  73. \path[->] (4) edge [thick,pos=0.1,bend right = 5,color=orange] node{$\mathsf{2}$} (6);
  74. \path[->] (4) edge [thick,pos=0.1,bend right = 5,color=yellow] node{$\mathsf{3}$} (7);
  75. \path[->] (4) edge [thick,pos=0.1,bend right = 5,color=lime] node{$\mathsf{4}$} (8);
  76. \path[->] (4) edge [thick,pos=0.1,bend right = 5,color=green] node{$\mathsf{5}$} (9);
  77. \path[->] (4) edge [thick,pos=0.1,bend right = 5,color=cyan] node{$\mathsf{6}$} (10);
  78. \path[->] (4) edge [thick,pos=0.1,bend right = 5,color=blue] node{$\mathsf{7}$} (11);
  79. \path[->] (4) edge [thick,pos=0.1,bend right = 5,color=magenta] node{$\mathsf{8}$} (0);
  80. \path[->] (4) edge [thick,pos=0.1,bend right = 5,color=purple] node{$\mathsf{9}$} (1);
  81.  
  82. \path[->] (5) edge [thick,pos=0.1,bend right = 5,color=darkgray] node{$\mathsf{0}$} (2);
  83. \path[->] (5) edge [thick,pos=0.1,bend right = 5,color=red] node{$\mathsf{1}$} (3);
  84. \path[->] (5) edge [thick,pos=0.1,bend right = 5,color=orange] node{$\mathsf{2}$} (4);
  85. \path[->] (5) edge [thick,color=yellow,loop,out=-70,in=-50,loop] node{$\mathsf{3}$} (5);
  86. \path[->] (5) edge [thick,pos=0.1,bend right = 5,color=lime] node{$\mathsf{4}$} (6);
  87. \path[->] (5) edge [thick,pos=0.1,bend right = 5,color=green] node{$\mathsf{5}$} (7);
  88. \path[->] (5) edge [thick,pos=0.1,bend right = 5,color=cyan] node{$\mathsf{6}$} (8);
  89. \path[->] (5) edge [thick,pos=0.1,bend right = 5,color=blue] node{$\mathsf{7}$} (9);
  90. \path[->] (5) edge [thick,pos=0.1,bend right = 5,color=magenta] node{$\mathsf{8}$} (10);
  91. \path[->] (5) edge [thick,pos=0.1,bend right = 5,color=purple] node{$\mathsf{9}$} (11);
  92.  
  93. \path[->] (6) edge [thick,pos=0.1,bend right = 5, color=darkgray] node{$\mathsf{0}$} (0);
  94. \path[->] (6) edge [thick,pos=0.1,bend right = 5, color=red] node{$\mathsf{1}$} (1);
  95. \path[->] (6) edge [thick,pos=0.1,bend right = 5, color=orange] node{$\mathsf{2}$} (2);
  96. \path[->] (6) edge [thick,pos=0.1,bend right = 5, color=yellow] node{$\mathsf{3}$} (3);
  97. \path[->] (6) edge [thick,pos=0.1,bend right = 5, color=lime] node{$\mathsf{4}$} (4);
  98. \path[->] (6) edge [thick,pos=0.1,bend right = 5, color=green] node{$\mathsf{5}$} (5);
  99. \path[->] (6) edge [thick,color=cyan,loop,out=-100,in=-80,loop] node{$\mathsf{6}$} (6);
  100. \path[->] (6) edge [thick,pos=0.1,bend right = 5, color=blue] node{$\mathsf{7}$} (7);
  101. \path[->] (6) edge [thick,pos=0.1,bend right = 5, color=magenta] node{$\mathsf{8}$} (8);
  102. \path[->] (6) edge [thick,pos=0.1,bend right = 5, color=purple] node{$\mathsf{9}$} (9);
  103.  
  104. \path[->] (7) edge [thick,pos=0.1,bend right = 5, color=darkgray] node{$\mathsf{0}$} (10);
  105. \path[->] (7) edge [thick,pos=0.1,bend right = 5, color=red] node{$\mathsf{1}$} (11);
  106. \path[->] (7) edge [thick,pos=0.1,bend right = 5, color=orange] node{$\mathsf{2}$} (0);
  107. \path[->] (7) edge [thick,pos=0.1,bend right = 5, color=yellow] node{$\mathsf{3}$} (1);
  108. \path[->] (7) edge [thick,pos=0.1,bend right = 5, color=lime] node{$\mathsf{4}$} (2);
  109. \path[->] (7) edge [thick,pos=0.1,bend right = 5, color=green] node{$\mathsf{5}$} (3);
  110. \path[->] (7) edge [thick,pos=0.1,bend right = 5, color=cyan] node{$\mathsf{6}$} (4);
  111. \path[->] (7) edge [thick,pos=0.1,bend right = 5, color=blue] node{$\mathsf{7}$} (5);
  112. \path[->] (7) edge [thick,pos=0.1,bend right = 5, color=magenta] node{$\mathsf{8}$} (6);
  113. \path[->] (7) edge [thick,color=purple,loop,out=-130,in=-110,loop] node{$\mathsf{9}$} (7);
  114.  
  115. \path[->] (8) edge [thick,color=darkgray,loop,out=-160,in=-140,loop] node{$\mathsf{0}$} (8);
  116. \path[->] (8) edge [thick,pos=0.1,bend right = 5, color=red] node{$\mathsf{1}$} (9);
  117. \path[->] (8) edge [thick,pos=0.1,bend right = 5, color=orange] node{$\mathsf{2}$} (10);
  118. \path[->] (8) edge [thick,pos=0.1,bend right = 5, color=yellow] node{$\mathsf{3}$} (11);
  119. \path[->] (8) edge [thick,pos=0.1,bend right = 5, color=lime] node{$\mathsf{4}$} (0);
  120. \path[->] (8) edge [thick,pos=0.1,bend right = 5, color=green] node{$\mathsf{5}$} (1);
  121. \path[->] (8) edge [thick,pos=0.1,bend right = 5, color=cyan] node{$\mathsf{6}$} (2);
  122. \path[->] (8) edge [thick,pos=0.1,bend right = 5, color=blue] node{$\mathsf{7}$} (3);
  123. \path[->] (8) edge [thick,pos=0.1,bend right = 5, color=magenta] node{$\mathsf{8}$} (4);
  124. \path[->] (8) edge [thick,pos=0.1,bend right = 5, color=purple] node{$\mathsf{9}$} (5);
  125.  
  126. \path[->] (9) edge [thick,thick,pos=0.1,bend right = 5, color=darkgray] node{$\mathsf{0}$} (6);
  127. \path[->] (9) edge [thick,pos=0.1,bend right = 5, color=red] node{$\mathsf{1}$} (7);
  128. \path[->] (9) edge [thick,pos=0.1,bend right = 5, color=orange] node{$\mathsf{2}$} (8);
  129. \path[->] (9) edge [color=yellow,loop,out=-190,in=-170,loop] node{$\mathsf{3}$} (9);
  130. \path[->] (9) edge [thick,pos=0.1,bend right = 5, color=lime] node{$\mathsf{4}$} (10);
  131. \path[->] (9) edge [thick,pos=0.1,bend right = 5, color=green] node{$\mathsf{5}$} (11);
  132. \path[->] (9) edge [thick,pos=0.1,bend right = 5, color=cyan] node{$\mathsf{6}$} (0);
  133. \path[->] (9) edge [thick,pos=0.1,bend right = 5, color=blue] node{$\mathsf{7}$} (1);
  134. \path[->] (9) edge [thick,pos=0.1,bend right = 5, color=magenta] node{$\mathsf{8}$} (2);
  135. \path[->] (9) edge [thick,pos=0.1,bend right = 5, color=purple] node{$\mathsf{9}$} (3);
  136.  
  137. \path[->] (10) edge [thick,pos=0.1,bend right = 5, color=darkgray] node{$\mathsf{0}$} (4);
  138. \path[->] (10) edge [thick,pos=0.1,bend right = 5, color=red] node{$\mathsf{1}$} (5);
  139. \path[->] (10) edge [thick,pos=0.1,bend right = 5, color=orange] node{$\mathsf{2}$} (6);
  140. \path[->] (10) edge [thick,pos=0.1,bend right = 5, color=yellow] node{$\mathsf{3}$} (7);
  141. \path[->] (10) edge [thick,pos=0.1,bend right = 5, color=lime] node{$\mathsf{4}$} (8);
  142. \path[->] (10) edge [thick,pos=0.1,bend right = 5, color=green] node{$\mathsf{5}$} (9);
  143. \path[->] (10) edge [thick,color=cyan,out=-220,in=-200,loop] node{$\mathsf{6}$} (10);
  144. \path[->] (10) edge [thick,pos=0.1,bend right = 5, color=blue] node{$\mathsf{7}$} (11);
  145. \path[->] (10) edge [thick,pos=0.1,bend right = 5, color=magenta] node{$\mathsf{8}$} (0);
  146. \path[->] (10) edge [thick,pos=0.1,bend right = 5, color=purple] node{$\mathsf{9}$} (1);
  147.  
  148. \path[->] (11) edge [thick,pos=0.1,bend right = 5, color=darkgray] node{$\mathsf{0}$} (2);
  149. \path[->] (11) edge [thick,pos=0.1,bend right = 5, color=red] node{$\mathsf{1}$} (3);
  150. \path[->] (11) edge [thick,pos=0.1,bend right = 5, color=orange] node{$\mathsf{2}$} (4);
  151. \path[->] (11) edge [thick,pos=0.1,bend right = 5, color=yellow] node{$\mathsf{3}$} (5);
  152. \path[->] (11) edge [thick,pos=0.1,bend right = 5, color=lime] node{$\mathsf{4}$} (6);
  153. \path[->] (11) edge [thick,pos=0.1,bend right = 5, color=green] node{$\mathsf{5}$} (7);
  154. \path[->] (11) edge [thick,pos=0.1,bend right = 5, color=cyan] node{$\mathsf{6}$} (8);
  155. \path[->] (11) edge [thick,pos=0.1,bend right = 5, color=blue] node{$\mathsf{7}$} (9);
  156. \path[->] (11) edge [thick,pos=0.1,bend right = 5, color=magenta] node{$\mathsf{8}$} (10);
  157. \path[->] (11) edge [thick,color=purple,loop,out=-250,in=-230,loop] node{$\mathsf{9}$} (11);
  158. \end{tikzpicture}
  159. \end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement