-
Notifications
You must be signed in to change notification settings - Fork 0
/
DoubleInterconnectedTailTopo.py
executable file
·75 lines (72 loc) · 1.8 KB
/
DoubleInterconnectedTailTopo.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
# submitted by , OMSCS Fall 2018
# 6---------49----------42 56-------45------1
# | | |
# 23------10-------14 16------27-------67
# |\ /|\ /| |\ /|\ /|
# | \ / | \ / | | \ / | \ / |
# | \ / | \ / | | \ / | \ / |
# | \/ | \/ | | \/ | \/ |
# | /\ | /\ | | /\ | /\ |
# | / \ | / \ | | / \ | / \ |
# | / \ | / \ | | / \ | / \ |
# |/ \|/ \| |/ \|/ \|
# 8--------7--------4 11-------12------13
# |\ /|\ /| |\ /|\ /|
# | \ / | \ / | | \ / | \ / |
# | \ / | \ / | | \ / | \ / |
# | \/ | \/ | | \/ | \/ |
# | /\ | /\ | | /\ | /\ |
# | / \ | / \ | | / \ | / \ |
# | / \ | / \ | | / \ | / \ |
# |/ \|/ \| |/ \|/ \|
# 2--------33------18 32-------5-------88
topo = {
1: [45],
2: [7,8,33],
4: [14,7,10,33,18],
5: [32,11,12,13,88],
6: [49,10],
7: [2,8,23,10,14,4,18,33],
8: [23,10,7,33,2],
10: [6,23,8,7,4,14],
11: [16,27,12,5,32],
12: [16,27,67,13,88,5,32,11],
13: [67,27,12,5,88],
14: [10,7,4],
16: [27,12,11],
18: [33,7,4],
23: [10,7,8],
27: [42,16,11,12,13,67],
32: [5,12,11],
33: [2,8,7,4,18],
42: [49,27],
45: [1,56],
49: [6,42],
56: [45,67],
67: [56,27,12,13],
88: [13,12,5]
}
# 1 - 45
# 2 - 7
# 4 - 10, 4 - 18, 4 - 33
# 5 - 12
# 6 - 10, 6 - 49
# 7 - 2, 7 - 10
# 8 - 10
# 10 - 4, 10 - 6, 10 - 7, 10 - 8, 10 - 14, 10 - 23
# 11 - 12
# 12 - 5, 12 - 11, 12 - 16, 12 - 32, 12 - 67, 12 - 88
# 13 - 67
# 14 - 10
# 16 - 12
# 18 - 4
# 23 - 10
# 27 - 42, 27 - 67
# 32 - 12
# 33 - 4
# 42 - 27, 42 - 49
# 45 - 1, 45 - 56
# 49 - 6, 49 - 42
# 56 - 45, 56 - 67
# 67 - 12, 67 - 13, 67 - 27, 67 - 56
# 88 - 12