-
Notifications
You must be signed in to change notification settings - Fork 0
/
SnowflakeTopo.py
executable file
·76 lines (71 loc) · 1.56 KB
/
SnowflakeTopo.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
# submitted by Sophie Foreman, OMSCS Fall 2018
# # 95 12 47
# \ / \ /
# \ / \ /
# 66----2 11----10
# / \ / \
# / \ / \
# 44----18----5----6 -- 9----4----35
# \ / \ /
# \ / \ /
# 20---7 8----1
# / \ / \
# / \ / \
# 77 27 3
topo = { 6: [2, 11, 9, 8, 7, 5],
2: [6, 66, 12],
11: [6, 12, 10],
9: [6, 4],
8: [6, 1, 27],
7: [6, 20, 27],
5: [6, 18],
95: [66],
44: [18],
77: [20],
3: [1],
35: [4],
47: [10],
12: [2, 11],
27: [7,8],
66: [95, 2, 18],
10: [47, 11, 4],
4: [1, 9, 10, 35],
1: [4,3,8],
20: [18,7,77],
18: [5, 44, 66, 20]
}
##### SOLUTION #####
# 95 12 47
# \ / /
# \ / /
# 66----2 11 10
# \ / \
# \ / \
# 44----18----5----6 9----4----35
# / \ /
# / \ /
# 20---7 8----1
# / / \
# / / \
# 77 27 3
# 1 - 3, 1 - 4, 1 - 8
# 2 - 6, 2 - 12, 2 - 66
# 3 - 1
# 4 - 1, 4 - 9, 4 - 10, 4 - 35
# 5 - 6, 5 - 18
# 6 - 2, 6 - 5, 6 - 7, 6 - 8, 6 - 11
# 7 - 6, 7 - 20
# 8 - 1, 8 - 6, 8 - 27
# 9 - 4
# 10 - 4, 10 - 47
# 11 - 6
# 12 - 2
# 18 - 5, 18 - 44
# 20 - 7, 20 - 77
# 27 - 8
# 35 - 4
# 44 - 18
# 47 - 10
# 66 - 2, 66 - 95
# 77 - 20
# 95 - 66