This repository has been archived by the owner on Jun 24, 2024. It is now read-only.
forked from adamacosta/6250-tests
-
Notifications
You must be signed in to change notification settings - Fork 0
/
topo6.py
73 lines (71 loc) · 3.77 KB
/
topo6.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
# a Star topology centered on Z with a loop around the outside
# +-------------D---------G---------J------------+
# | \ | / |
# | \ | / |
# | E H K |
# | \ | / |
# | \ | / |
# | F I L |
# | \ | / |
# | \ | / |
# A --- B --- C --------- Z -------- M --- N --- O
# | / | \ |
# | / | \ |
# | P S V |
# | / | \ |
# | / | \ |
# | Q T W |
# | / | \ |
# | / | \ |
# +-------------R---------U---------X------------+
topo = { 'A' : ['B', 'D', 'R'],
'B' : ['A', 'C'],
'C' : ['B', 'Z'],
'D' : ['A', 'E', 'G'],
'E' : ['D', 'F'],
'F' : ['E', 'Z'],
'G' : ['D', 'H', 'J'],
'H' : ['G', 'I'],
'I' : ['H', 'Z'],
'J' : ['G', 'K', 'O'],
'K' : ['J', 'L'],
'L' : ['K', 'Z'],
'M' : ['Z', 'N'],
'N' : ['M', 'O'],
'O' : ['J', 'N', 'X'],
'P' : ['Z', 'Q'],
'Q' : ['P', 'R'],
'R' : ['A', 'Q', 'U'],
'S' : ['Z', 'T'],
'T' : ['S', 'U'],
'U' : ['R', 'T', 'X'],
'V' : ['Z', 'W'],
'W' : ['V', 'X'],
'X' : ['U', 'W', 'O'],
'Z' : ['C', 'F', 'I', 'L', 'M', 'P', 'S', 'V']}
ans = \
'A:A0,B1,C2,D1,E2,F3,G2,H3,I4,J3,K4,L4,M4,N5,O4,P3,Q2,R1,S4,T3,U2,V4,W4,X3,Z3' + \
'B:A1,B0,C1,D2,E3,F3,G3,H4,I3,J4,K4,L3,M3,N4,O5,P3,Q3,R2,S3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