-
Notifications
You must be signed in to change notification settings - Fork 0
/
OverlapRingTopo.py
executable file
·43 lines (42 loc) · 1.03 KB
/
OverlapRingTopo.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
# submitted by Heather Nga Truong
# Topology with 2 rings +
# 10-23 - Ring #1
# 50-59 - Ring #2
# 99 - Interconnecting Node
#
# 10--11--12--13--14
# | |
# 15 50--51--16--52--53
# | | | | |
# 17 54--99--18 55
# | | | | |
# 19--20--21--22--23 56
# | |
# 57------58------59
#
topo = { 10 : [11,15],
11 : [10,12],
12 : [11,13],
13 : [12,14],
14 : [13,16],
15 : [10,17],
16 : [14,51,52,18],
17 : [15,19],
18 : [16,23,99],
19 : [17,20],
20 : [19,21],
21 : [54,20,22,57],
22 : [21,23,99],
23 : [22,18],
50 : [51,54],
51 : [50,16,99],
52 : [16,53],
53 : [52,55],
54 : [50,21,99],
55 : [53,56],
56 : [55,59],
57 : [21,58],
58 : [57,59],
59 : [56,58],
99 : [18,22,51,54]
}