SHARE
TWEET

Untitled

a guest Oct 21st, 2019 64 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. if not draw:
  2.     s0 = '0000'
  3.     s1 = '0001'
  4.     s2 = '0002'
  5.     s3 = '0003'
  6.     s4 = '1001'
  7.     s5 = '1002'
  8.     s6 = '0012'
  9.     s7 = '0102'
  10.     s8 = '1003'
  11.     s9 = '0013'
  12.     s10 = '1102'
  13.     s11 = '1012'
  14.     s12 = '0112'
  15.     s13 = '1013'
  16.     s14 = '1112'
  17. else:
  18.     s0 = 'ССС0'
  19.     s1 = 'ССС1'
  20.     s2 = 'ССС2'
  21.     s3 = 'ССС3'
  22.     s4 = 'ЗСС1'
  23.     s5 = 'ЗСС2'
  24.     s6 = 'ССЗ2'
  25.     s7 = 'СЗС2'
  26.     s8 = 'ЗСС3'
  27.     s9 = 'ССЗ3'
  28.     s10 = 'ЗЗС2'
  29.     s11 = 'ЗСЗ2'
  30.     s12 = 'СЗЗ2'
  31.     s13 = 'ЗСЗ3'
  32.     s14 = 'ЗЗЗ2'
  33.  
  34. #g = GraphSolver()
  35.  
  36. # s0
  37. g.edge(s0, s1, label='λ1')
  38. g.edge(s0, s2, label='λ2')
  39. g.edge(s0, s3, label='λ3')
  40.  
  41. # s1
  42. g.edge(s1, s0, label='μ1')
  43. g.edge(s1, s2, label='λ2')
  44. g.edge(s1, s3, label='λ3')
  45. g.edge(s1, s4, label='λ1')
  46.  
  47. # s2
  48. g.edge(s2, s0, label='μ2')
  49. g.edge(s2, s5, label='λ1')
  50. g.edge(s2, s6, label='λ3')
  51. g.edge(s2, s7, label='λ2')
  52.  
  53. # s3
  54. g.edge(s3, s0, label='μ3')
  55. g.edge(s3, s8, label='λ1')
  56. g.edge(s3, s2, label='λ2')
  57. g.edge(s2, s9, label='λ3')
  58.  
  59. # s4
  60. g.edge(s4, s1, label='μ1')
  61. g.edge(s4, s5, label='λ2')
  62. g.edge(s4, s8, label='λ3')
  63.  
  64. # s5
  65. g.edge(s5, s1, label='μ2')
  66. g.edge(s5, s10, label='λ2')
  67. g.edge(s5, s11, label='λ3')
  68.  
  69. # s6
  70. g.edge(s6, s3, label='μ2')
  71. g.edge(s6, s11, label='λ1')
  72. g.edge(s6, s12, label='λ2')
  73.  
  74. # s7
  75. g.edge(s7, s2, label='μ2')
  76. g.edge(s7, s10, label='λ1')
  77. g.edge(s7, s12, label='λ3')
  78.  
  79. # s8
  80. g.edge(s8, s1, label='μ3')
  81. g.edge(s8, s5, label='λ2')
  82. g.edge(s8, s13, label='λ3')
  83.  
  84. # s9
  85. g.edge(s9, s3, label='μ3')
  86. g.edge(s9, s13, label='λ1')
  87. g.edge(s9, s6, label='λ2')
  88.  
  89. # s10
  90. g.edge(s10, s5, label='μ2')
  91. g.edge(s10, s14, label='λ3')
  92.  
  93. # s11
  94. g.edge(s11, s8, label='μ2')
  95. g.edge(s11, s14, label='λ2')
  96.  
  97. # s12
  98. g.edge(s12, s6, label='μ2')
  99. g.edge(s12, s14, label='λ1')
  100.  
  101. # s13
  102. g.edge(s13, s8, label='μ3')
  103. g.edge(s13, s11, label='λ2')
  104.  
  105. # s14
  106. g.edge(s14, s11, label='μ2')
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top