-
Notifications
You must be signed in to change notification settings - Fork 4
/
simvar.py
15 lines (13 loc) · 8.5 KB
/
simvar.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
edges = [
[(1,2),(2,1)],
[(1,3),(0,2)],
[(1,3),(0,2)],
[(1,3),(0,2)],
[(1,3),(0,2)],
[(1,3),(0,2)],
[(1,3),(0,2)],
[(1,1),(3,2)],
[(3,1),(0,1)],
[(1,1),(2,3)]]
faultyRouters = [(4,5), (8,1)]
faultyLinks = [((10, 23), 1), ((13, 6), 1), ((17, 8), 1), ((6, 9), 1), ((6, 19), 1), ((2, 22), 1), ((7, 10), 0), ((7, 6), 0), ((16, 0), 1), ((17, 5), 0), ((13, 20), 0), ((9, 9), 1), ((16, 16), 0), ((10, 28), 1), ((14, 12), 1), ((5, 8), 0), ((6, 22), 0), ((1, 7), 0), ((6, 14), 1), ((17, 2), 1), ((18, 24), 0), ((19, 6), 0), ((15, 20), 1), ((13, 20), 1), ((6, 6), 1), ((11, 27), 1), ((16, 2), 1), ((12, 16), 1), ((9, 6), 1), ((9, 4), 1), ((7, 2), 1), ((1, 24), 1), ((0, 14), 1), ((13, 7), 0), ((18, 25), 1), ((17, 18), 0), ((10, 15), 0), ((6, 22), 1), ((10, 29), 1), ((17, 9), 0), ((7, 20), 0), ((9, 4), 0), ((6, 11), 1), ((1, 8), 1), ((5, 9), 1), ((11, 13), 1), ((0, 18), 1), ((11, 24), 0), ((12, 1), 1), ((11, 28), 0), ((19, 17), 1), ((8, 21), 0), ((2, 5), 0), ((6, 1), 0), ((3, 9), 1), ((11, 14), 0), ((4, 7), 0), ((5, 1), 0), ((6, 17), 1), ((11, 24), 1), ((18, 7), 0), ((19, 9), 0), ((19, 27), 1), ((1, 6), 1), ((7, 27), 0), ((13, 13), 0), ((12, 29), 1), ((18, 15), 1), ((3, 3), 1), ((15, 17), 0), ((13, 21), 1), ((15, 26), 0), ((12, 20), 0), ((6, 3), 0), ((11, 29), 1), ((1, 0), 0), ((3, 19), 0), ((2, 8), 0), ((6, 23), 1), ((6, 29), 0), ((19, 5), 0), ((0, 7), 0), ((4, 14), 1), ((10, 6), 1), ((4, 29), 1), ((9, 13), 0), ((4, 26), 1), ((3, 6), 1), ((11, 4), 1), ((19, 7), 1), ((0, 25), 1), ((17, 29), 0), ((4, 15), 1), ((0, 10), 0), ((9, 29), 0), ((4, 20), 0), ((5, 0), 0), ((13, 27), 1), ((19, 23), 0), ((1, 13), 1), ((9, 3), 0), ((2, 17), 1), ((15, 19), 1), ((5, 13), 1), ((0, 17), 0), ((13, 9), 1), ((0, 21), 1), ((1, 24), 0), ((15, 5), 1), ((9, 19), 1), ((3, 4), 1), ((0, 3), 1), ((12, 21), 0), ((5, 22), 0), ((4, 7), 1), ((12, 4), 0), ((16, 28), 0), ((10, 11), 0), ((13, 22), 0), ((19, 3), 1), ((10, 1), 0), ((11, 5), 1), ((17, 1), 1), ((11, 8), 0), ((9, 23), 1), ((10, 8), 1), ((3, 17), 0), ((17, 23), 0), ((7, 6), 1), ((9, 22), 1), ((15, 17), 1), ((19, 25), 1), ((2, 23), 1), ((2, 9), 0), ((2, 26), 0), ((18, 26), 1), ((19, 19), 1), ((2, 3), 1), ((13, 4), 0), ((9, 9), 0), ((9, 11), 0), ((5, 24), 1), ((6, 24), 1), ((15, 14), 0), ((16, 26), 1), ((1, 19), 1), ((10, 3), 1), ((10, 5), 1), ((5, 14), 0), ((11, 9), 1), ((12, 13), 0), ((12, 17), 0), ((17, 13), 0), ((15, 11), 0), ((1, 7), 1), ((15, 12), 0), ((8, 2), 0), ((0, 11), 0), ((2, 11), 1), ((1, 10), 0), ((4, 22), 1), ((16, 14), 0), ((6, 18), 0), ((0, 28), 0), ((15, 22), 0), ((10, 23), 0), ((17, 10), 1), ((4, 0), 1), ((12, 27), 1), ((13, 29), 0), ((6, 12), 0), ((7, 20), 1), ((7, 3), 1), ((0, 6), 1), ((8, 24), 0), ((7, 13), 0), ((15, 13), 0), ((16, 1), 1), ((19, 1), 0), ((15, 24), 1), ((17, 29), 1), ((7, 19), 1), ((18, 4), 0), ((0, 15), 1), ((14, 7), 1), ((16, 6), 1), ((6, 16), 0), ((12, 23), 0), ((11, 25), 1), ((12, 27), 0), ((4, 17), 1), ((1, 10), 1), ((11, 3), 0), ((19, 26), 1), ((17, 28), 1), ((6, 19), 0), ((8, 27), 1), ((16, 25), 1), ((19, 16), 1), ((7, 11), 0), ((16, 18), 1), ((5, 5), 1), ((19, 24), 0), ((17, 14), 0), ((9, 28), 1), ((7, 26), 1), ((19, 13), 0), ((7, 12), 0), ((1, 12), 1), ((13, 14), 0), ((10, 12), 1), ((14, 11), 0), ((12, 10), 1), ((10, 3), 0), ((8, 7), 0), ((9, 16), 1), ((14, 23), 0), ((12, 24), 0), ((13, 12), 0), ((8, 3), 0), ((17, 6), 0), ((16, 23), 0), ((4, 10), 0), ((3, 24), 0), ((7, 7), 0), ((19, 11), 0), ((17, 24), 1), ((9, 14), 1), ((2, 17), 0), ((10, 14), 0), ((0, 29), 0), ((15, 28), 1), ((0, 21), 0), ((1, 4), 0), ((12, 15), 1), ((4, 9), 1), ((14, 12), 0), ((6, 0), 1), ((12, 9), 0), ((1, 17), 0), ((10, 16), 0), ((19, 27), 0), ((1, 15), 0), ((1, 26), 1), ((11, 10), 1), ((18, 23), 0), ((3, 22), 0), ((17, 4), 1), ((2, 0), 0), ((4, 17), 0), ((3, 11), 0), ((8, 22), 0), ((17, 0), 0), ((12, 7), 0), ((19, 22), 1), ((15, 10), 0), ((1, 18), 1), ((18, 13), 1), ((3, 12), 1), ((17, 19), 1), ((15, 1), 0), ((16, 24), 0), ((3, 25), 0), ((0, 12), 0), ((10, 18), 1), ((1, 27), 1), ((15, 25), 1), ((0, 19), 0), ((7, 19), 0), ((10, 13), 1), ((4, 6), 0), ((2, 26), 1), ((12, 12), 1), ((0, 5), 0), ((0, 0), 1), ((6, 27), 0), ((8, 12), 1), ((8, 7), 1), ((13, 26), 1), ((5, 0), 1), ((1, 15), 1), ((13, 0), 0), ((9, 18), 0), ((11, 2), 1), ((19, 4), 0), ((14, 1), 1), ((3, 26), 1), ((5, 16), 1), ((5, 21), 0), ((0, 27), 0), ((14, 4), 1), ((14, 21), 1), ((3, 9), 0), ((4, 0), 0), ((18, 4), 1), ((16, 5), 1), ((4, 23), 0), ((14, 1), 0), ((8, 27), 0), ((14, 6), 1), ((13, 8), 0), ((19, 4), 1), ((18, 0), 0), ((19, 8), 0), ((16, 13), 0), ((2, 1), 0), ((6, 12), 1), ((18, 26), 0), ((13, 28), 1), ((19, 20), 0), ((19, 14), 1), ((4, 19), 1), ((0, 13), 1), ((16, 9), 0), ((3, 13), 0), ((4, 4), 0), ((8, 4), 1), ((15, 15), 0), ((4, 12), 0), ((8, 14), 1), ((10, 28), 0), ((12, 6), 1), ((0, 25), 0), ((3, 2), 0), ((18, 6), 0), ((8, 5), 1), ((17, 28), 0), ((17, 8), 0), ((19, 10), 0), ((19, 9), 1), ((1, 25), 1), ((9, 18), 1), ((16, 17), 1), ((11, 12), 1), ((4, 22), 0), ((2, 14), 1), ((3, 18), 0), ((7, 0), 0), ((5, 19), 0), ((3, 19), 1), ((19, 11), 1), ((18, 15), 0), ((4, 24), 0), ((9, 29), 1), ((1, 21), 1), ((3, 23), 0), ((3, 14), 1), ((14, 15), 1), ((1, 14), 1), ((11, 3), 1), ((3, 28), 1), ((5, 28), 0), ((0, 19), 1), ((13, 3), 0), ((8, 23), 0), ((5, 26), 1), ((7, 14), 0), ((12, 2), 0), ((14, 19), 1), ((11, 10), 0), ((10, 24), 0), ((17, 4), 0), ((9, 6), 0), ((7, 18), 1), ((15, 16), 1), ((4, 8), 0), ((4, 13), 1), ((9, 5), 1), ((16, 15), 0), ((14, 13), 0), ((13, 8), 1), ((6, 26), 0), ((15, 9), 0), ((3, 27), 1), ((16, 29), 1), ((10, 4), 0), ((7, 25), 1), ((14, 25), 1), ((10, 14), 1), ((6, 9), 0), ((2, 12), 1), ((8, 16), 0), ((3, 20), 1), ((0, 4), 1), ((16, 16), 1), ((16, 5), 0), ((16, 4), 1), ((1, 5), 0), ((6, 29), 1), ((6, 5), 1), ((10, 16), 1), ((7, 9), 0), ((5, 25), 0), ((2, 25), 0), ((5, 9), 0), ((5, 6), 0), ((4, 9), 0), ((8, 17), 1), ((6, 10), 1), ((14, 11), 1), ((13, 23), 1), ((14, 22), 0), ((4, 20), 1), ((17, 2), 0), ((0, 23), 0), ((0, 24), 0), ((14, 29), 1), ((5, 12), 1), ((6, 20), 0), ((5, 25), 1), ((1, 23), 0), ((14, 27), 1), ((12, 14), 1), ((8, 19), 0), ((15, 20), 0), ((9, 7), 0), ((7, 27), 1), ((3, 25), 1), ((18, 25), 0), ((14, 13), 1), ((6, 10), 0), ((18, 2), 1), ((10, 20), 0), ((18, 14), 1), ((9, 14), 0), ((8, 4), 0), ((12, 3), 0), ((5, 2), 0), ((16, 6), 0), ((19, 21), 1), ((8, 3), 1), ((8, 21), 1), ((15, 29), 0), ((1, 21), 0), ((18, 7), 1), ((6, 0), 0), ((19, 20), 1), ((17, 26), 0), ((19, 24), 1), ((9, 28), 0), ((18, 27), 0), ((16, 21), 1), ((4, 21), 1), ((10, 8), 0), ((2, 14), 0), ((14, 21), 0), ((12, 0), 0), ((10, 20), 1), ((1, 17), 1), ((15, 5), 0), ((11, 13), 0), ((17, 16), 0), ((11, 20), 1), ((5, 1), 1), ((10, 18), 0), ((13, 7), 1), ((2, 27), 1), ((5, 15), 1), ((1, 25), 0), ((14, 16), 1), ((5, 18), 0), ((4, 28), 1), ((9, 20), 0), ((12, 3), 1), ((14, 6), 0), ((19, 21), 0), ((17, 19), 0), ((4, 12), 1), ((0, 9), 1), ((4, 18), 0), ((1, 2), 0), ((14, 28), 0), ((18, 22), 1), ((7, 21), 1), ((11, 27), 0), ((12, 15), 0), ((8, 28), 1), ((7, 1), 1), ((14, 10), 0), ((3, 21), 0), ((7, 22), 0), ((5, 23), 0), ((0, 18), 0), ((11, 1), 1), ((16, 0), 0), ((4, 3), 0), ((11, 7), 1), ((10, 15), 1), ((8, 23), 1), ((7, 25), 0), ((16, 2), 0), ((11, 6), 0), ((16, 13), 1), ((13, 13), 1), ((3, 29), 1), ((12, 22), 1), ((17, 3), 0), ((9, 11), 1), ((15, 6), 1), ((3, 20), 0), ((19, 26), 0), ((16, 21), 0), ((8, 11), 1), ((3, 3), 0), ((17, 20), 1), ((11, 26), 0), ((19, 12), 1), ((15, 0), 0), ((8, 20), 0), ((1, 11), 1), ((3, 14), 0), ((10, 21), 0), ((18, 9), 1), ((7, 17), 1), ((1, 27), 0), ((11, 18), 0), ((8, 24), 1), ((4, 27), 1), ((15, 10), 1), ((2, 29), 0), ((19, 2), 0), ((9, 10), 0), ((16, 7), 0), ((0, 8), 0), ((15, 4), 1), ((13, 10), 0), ((12, 17), 1), ((12, 12), 0), ((19, 13), 1), ((0, 2), 0), ((6, 21), 1), ((0, 28), 1), ((14, 17), 1), ((17, 23), 1), ((2, 21), 0), ((4, 23), 1), ((3, 7), 0), ((3, 8), 1), ((4, 1), 0), ((3, 0), 1), ((17, 12), 0), ((4, 19), 0), ((0, 27), 1), ((15, 28), 0), ((6, 15), 0), ((7, 10), 1), ((8, 6), 1), ((10, 11), 1), ((0, 5), 1), ((12, 8), 0), ((0, 14), 0), ((6, 8), 1), ((12, 5), 0), ((15, 22), 1), ((10, 22), 0), ((3, 12), 0), ((4, 25), 0), ((8, 29), 0), ((3, 13), 1), ((3, 6), 0), ((12, 24), 1), ((8, 17), 0), ((13, 19), 1), ((12, 26), 1), ((5, 20), 1), ((12, 6), 0), ((8, 20), 1), ((12, 14), 0), ((13, 24), 0), ((14, 2), 1), ((19, 16), 0), ((14, 15), 0), ((11, 15), 1), ((2, 8), 1), ((12, 18), 1), ((12, 25), 1), ((5, 29), 0), ((11, 0), 1), ((14, 28), 1), ((18, 8), 0), ((10, 7), 1), ((1, 22), 1), ((10, 6), 0), ((7, 21), 0), ((6, 20), 1), ((4, 28), 0), ((4, 8), 1), ((11, 7), 0), ((4, 15), 0), ((9, 2), 0), ((1, 16), 1), ((10, 4), 1), ((18, 0), 1), ((10, 19), 1), ((8, 14), 0), ((0, 11), 1), ((11, 9), 0), ((3, 17), 1), ((18, 16), 0), ((9, 25), 1)]