topolib 0.8.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (51) hide show
  1. topolib/__init__.py +4 -0
  2. topolib/analysis/__init__.py +4 -0
  3. topolib/analysis/metrics.py +80 -0
  4. topolib/analysis/traffic_matrix.py +344 -0
  5. topolib/assets/AMRES.json +1265 -0
  6. topolib/assets/Abilene.json +285 -0
  7. topolib/assets/Bell_canada.json +925 -0
  8. topolib/assets/Brazil.json +699 -0
  9. topolib/assets/CESNET.json +657 -0
  10. topolib/assets/CORONET.json +1957 -0
  11. topolib/assets/China.json +1135 -0
  12. topolib/assets/DT-14.json +470 -0
  13. topolib/assets/DT-17.json +525 -0
  14. topolib/assets/DT-50.json +1515 -0
  15. topolib/assets/ES-30.json +967 -0
  16. topolib/assets/EURO-16.json +455 -0
  17. topolib/assets/FR-43.json +1277 -0
  18. topolib/assets/FUNET.json +317 -0
  19. topolib/assets/GCN-BG.json +855 -0
  20. topolib/assets/GRNET.json +1717 -0
  21. topolib/assets/HyperOne.json +255 -0
  22. topolib/assets/IT-21.json +649 -0
  23. topolib/assets/India.json +517 -0
  24. topolib/assets/JPN-12.json +331 -0
  25. topolib/assets/KOREN.json +287 -0
  26. topolib/assets/NORDUNet.json +783 -0
  27. topolib/assets/NSFNet.json +399 -0
  28. topolib/assets/PANEURO.json +757 -0
  29. topolib/assets/PAVLOV.json +465 -0
  30. topolib/assets/PLN-12.json +343 -0
  31. topolib/assets/SANReN.json +161 -0
  32. topolib/assets/SERBIA-MONTENEGRO.json +139 -0
  33. topolib/assets/Telefonica-21.json +637 -0
  34. topolib/assets/Turk_Telekom.json +551 -0
  35. topolib/assets/UKNet.json +685 -0
  36. topolib/assets/Vega_Telecom.json +819 -0
  37. topolib/elements/__init__.py +5 -0
  38. topolib/elements/link.py +121 -0
  39. topolib/elements/node.py +230 -0
  40. topolib/topology/__init__.py +4 -0
  41. topolib/topology/path.py +84 -0
  42. topolib/topology/topology.py +469 -0
  43. topolib/visualization/__init__.py +1 -0
  44. topolib/visualization/_qt_screenshot.py +103 -0
  45. topolib/visualization/_qt_window.py +78 -0
  46. topolib/visualization/_templates.py +101 -0
  47. topolib/visualization/mapview.py +316 -0
  48. topolib-0.8.0.dist-info/METADATA +148 -0
  49. topolib-0.8.0.dist-info/RECORD +51 -0
  50. topolib-0.8.0.dist-info/WHEEL +4 -0
  51. topolib-0.8.0.dist-info/licenses/LICENSE +22 -0
@@ -0,0 +1,551 @@
1
+ {
2
+ "name": "Turk_Telekom",
3
+ "nodes": [
4
+ {
5
+ "id": 0,
6
+ "name": "Antalya",
7
+ "weight": 0,
8
+ "longitude": 30.7133233,
9
+ "latitude": 36.8968908,
10
+ "pop": 1344000,
11
+ "DC": 1,
12
+ "IXP": 0
13
+ },
14
+ {
15
+ "id": 1,
16
+ "name": "Bozyazi",
17
+ "weight": 0,
18
+ "longitude": 32.973901,
19
+ "latitude": 36.10543,
20
+ "pop": 28456,
21
+ "DC": 0,
22
+ "IXP": 0
23
+ },
24
+ {
25
+ "id": 2,
26
+ "name": "Kyrenia",
27
+ "weight": 0,
28
+ "longitude": 33.2363246,
29
+ "latitude": 35.299194,
30
+ "pop": 26701,
31
+ "DC": 0,
32
+ "IXP": 0
33
+ },
34
+ {
35
+ "id": 3,
36
+ "name": "Mugla",
37
+ "weight": 0,
38
+ "longitude": 28.363394,
39
+ "latitude": 37.215374,
40
+ "pop": 92328,
41
+ "DC": 0,
42
+ "IXP": 0
43
+ },
44
+ {
45
+ "id": 4,
46
+ "name": "Marmaris",
47
+ "weight": 0,
48
+ "longitude": 28.270878,
49
+ "latitude": 36.854936,
50
+ "pop": 33731,
51
+ "DC": 0,
52
+ "IXP": 0
53
+ },
54
+ {
55
+ "id": 5,
56
+ "name": "Adana",
57
+ "weight": 0,
58
+ "longitude": 35.3308285,
59
+ "latitude": 36.9914194,
60
+ "pop": 1816750,
61
+ "DC": 0,
62
+ "IXP": 0
63
+ },
64
+ {
65
+ "id": 6,
66
+ "name": "Sanliurfa",
67
+ "weight": 0,
68
+ "longitude": 38.7955149,
69
+ "latitude": 37.1674039,
70
+ "pop": 449549,
71
+ "DC": 0,
72
+ "IXP": 0
73
+ },
74
+ {
75
+ "id": 7,
76
+ "name": "Diyarbakir",
77
+ "weight": 0,
78
+ "longitude": 40.2109826,
79
+ "latitude": 37.9249733,
80
+ "pop": 1791373,
81
+ "DC": 0,
82
+ "IXP": 0
83
+ },
84
+ {
85
+ "id": 8,
86
+ "name": "Erzurum",
87
+ "weight": 0,
88
+ "longitude": 41.2658236,
89
+ "latitude": 39.9054993,
90
+ "pop": 767848,
91
+ "DC": 0,
92
+ "IXP": 0
93
+ },
94
+ {
95
+ "id": 9,
96
+ "name": "Trabzon",
97
+ "weight": 0,
98
+ "longitude": 39.7167633,
99
+ "latitude": 41.0026969,
100
+ "pop": 244083,
101
+ "DC": 1,
102
+ "IXP": 0
103
+ },
104
+ {
105
+ "id": 10,
106
+ "name": "Samsun",
107
+ "weight": 0,
108
+ "longitude": 36.3360667,
109
+ "latitude": 41.2797031,
110
+ "pop": 394050,
111
+ "DC": 1,
112
+ "IXP": 0
113
+ },
114
+ {
115
+ "id": 11,
116
+ "name": "Ankara",
117
+ "weight": 0,
118
+ "longitude": 32.8597419,
119
+ "latitude": 39.9333635,
120
+ "pop": 3517182,
121
+ "DC": 11,
122
+ "IXP": 0
123
+ },
124
+ {
125
+ "id": 12,
126
+ "name": "Konya",
127
+ "weight": 0,
128
+ "longitude": 32.4931554,
129
+ "latitude": 37.8746429,
130
+ "pop": 1433861,
131
+ "DC": 1,
132
+ "IXP": 0
133
+ },
134
+ {
135
+ "id": 13,
136
+ "name": "Afyonkarahisar",
137
+ "weight": 0,
138
+ "longitude": 30.5387038,
139
+ "latitude": 38.7568852,
140
+ "pop": 251799,
141
+ "DC": 0,
142
+ "IXP": 0
143
+ },
144
+ {
145
+ "id": 14,
146
+ "name": "Izmir",
147
+ "weight": 0,
148
+ "longitude": 27.142826,
149
+ "latitude": 38.423734,
150
+ "pop": 2500603,
151
+ "DC": 9,
152
+ "IXP": 0
153
+ },
154
+ {
155
+ "id": 15,
156
+ "name": "Bursa",
157
+ "weight": 0,
158
+ "longitude": 29.0609636,
159
+ "latitude": 40.1885281,
160
+ "pop": 3101833,
161
+ "DC": 6,
162
+ "IXP": 0
163
+ },
164
+ {
165
+ "id": 16,
166
+ "name": "Istanbul",
167
+ "weight": 0,
168
+ "longitude": 28.9783589,
169
+ "latitude": 41.0082376,
170
+ "pop": 15701602,
171
+ "DC": 39,
172
+ "IXP": 3
173
+ },
174
+ {
175
+ "id": 17,
176
+ "name": "Kesan",
177
+ "weight": 0,
178
+ "longitude": 26.630041,
179
+ "latitude": 40.858615,
180
+ "pop": 44644,
181
+ "DC": 0,
182
+ "IXP": 0
183
+ },
184
+ {
185
+ "id": 18,
186
+ "name": "Edirne",
187
+ "weight": 0,
188
+ "longitude": 26.5557145,
189
+ "latitude": 41.6771297,
190
+ "pop": 180002,
191
+ "DC": 0,
192
+ "IXP": 1
193
+ }
194
+ ],
195
+ "links": [
196
+ {
197
+ "id": 0,
198
+ "src": 18,
199
+ "dst": 17,
200
+ "length": 119.63
201
+ },
202
+ {
203
+ "id": 1,
204
+ "src": 17,
205
+ "dst": 14,
206
+ "length": 357.72
207
+ },
208
+ {
209
+ "id": 2,
210
+ "src": 15,
211
+ "dst": 14,
212
+ "length": 335.77
213
+ },
214
+ {
215
+ "id": 3,
216
+ "src": 16,
217
+ "dst": 15,
218
+ "length": 121.07
219
+ },
220
+ {
221
+ "id": 4,
222
+ "src": 17,
223
+ "dst": 16,
224
+ "length": 256.08
225
+ },
226
+ {
227
+ "id": 5,
228
+ "src": 16,
229
+ "dst": 18,
230
+ "length": 148.58
231
+ },
232
+ {
233
+ "id": 6,
234
+ "src": 18,
235
+ "dst": 16,
236
+ "length": 279.76
237
+ },
238
+ {
239
+ "id": 7,
240
+ "src": 11,
241
+ "dst": 15,
242
+ "length": 421.3
243
+ },
244
+ {
245
+ "id": 8,
246
+ "src": 16,
247
+ "dst": 11,
248
+ "length": 278.85
249
+ },
250
+ {
251
+ "id": 9,
252
+ "src": 16,
253
+ "dst": 11,
254
+ "length": 290.77
255
+ },
256
+ {
257
+ "id": 10,
258
+ "src": 13,
259
+ "dst": 11,
260
+ "length": 312.91
261
+ },
262
+ {
263
+ "id": 11,
264
+ "src": 0,
265
+ "dst": 13,
266
+ "length": 267.94
267
+ },
268
+ {
269
+ "id": 12,
270
+ "src": 3,
271
+ "dst": 0,
272
+ "length": 275.74
273
+ },
274
+ {
275
+ "id": 13,
276
+ "src": 14,
277
+ "dst": 3,
278
+ "length": 223.09
279
+ },
280
+ {
281
+ "id": 14,
282
+ "src": 3,
283
+ "dst": 4,
284
+ "length": 30.46
285
+ },
286
+ {
287
+ "id": 16,
288
+ "src": 14,
289
+ "dst": 13,
290
+ "length": 221.55
291
+ },
292
+ {
293
+ "id": 17,
294
+ "src": 14,
295
+ "dst": 13,
296
+ "length": 220.32
297
+ },
298
+ {
299
+ "id": 18,
300
+ "src": 11,
301
+ "dst": 10,
302
+ "length": 429.52
303
+ },
304
+ {
305
+ "id": 19,
306
+ "src": 2,
307
+ "dst": 1,
308
+ "length": 121.94
309
+ },
310
+ {
311
+ "id": 20,
312
+ "src": 1,
313
+ "dst": 0,
314
+ "length": 286.35
315
+ },
316
+ {
317
+ "id": 21,
318
+ "src": 5,
319
+ "dst": 1,
320
+ "length": 299.58
321
+ },
322
+ {
323
+ "id": 22,
324
+ "src": 13,
325
+ "dst": 12,
326
+ "length": 262.79
327
+ },
328
+ {
329
+ "id": 23,
330
+ "src": 5,
331
+ "dst": 12,
332
+ "length": 348.38
333
+ },
334
+ {
335
+ "id": 24,
336
+ "src": 12,
337
+ "dst": 11,
338
+ "length": 299.01
339
+ },
340
+ {
341
+ "id": 25,
342
+ "src": 12,
343
+ "dst": 11,
344
+ "length": 159.4
345
+ },
346
+ {
347
+ "id": 26,
348
+ "src": 5,
349
+ "dst": 6,
350
+ "length": 399.57
351
+ },
352
+ {
353
+ "id": 27,
354
+ "src": 7,
355
+ "dst": 6,
356
+ "length": 199.35
357
+ },
358
+ {
359
+ "id": 28,
360
+ "src": 7,
361
+ "dst": 11,
362
+ "length": 876.85
363
+ },
364
+ {
365
+ "id": 29,
366
+ "src": 8,
367
+ "dst": 7,
368
+ "length": 310.15
369
+ },
370
+ {
371
+ "id": 30,
372
+ "src": 11,
373
+ "dst": 8,
374
+ "length": 930.91
375
+ },
376
+ {
377
+ "id": 31,
378
+ "src": 10,
379
+ "dst": 9,
380
+ "length": 370.41
381
+ },
382
+ {
383
+ "id": 32,
384
+ "src": 8,
385
+ "dst": 9,
386
+ "length": 234.06
387
+ },
388
+ {
389
+ "id": 33,
390
+ "src": 17,
391
+ "dst": 18,
392
+ "length": 119.63
393
+ },
394
+ {
395
+ "id": 34,
396
+ "src": 14,
397
+ "dst": 17,
398
+ "length": 357.72
399
+ },
400
+ {
401
+ "id": 35,
402
+ "src": 14,
403
+ "dst": 15,
404
+ "length": 335.77
405
+ },
406
+ {
407
+ "id": 36,
408
+ "src": 15,
409
+ "dst": 16,
410
+ "length": 121.07
411
+ },
412
+ {
413
+ "id": 37,
414
+ "src": 16,
415
+ "dst": 17,
416
+ "length": 256.08
417
+ },
418
+ {
419
+ "id": 38,
420
+ "src": 15,
421
+ "dst": 11,
422
+ "length": 421.3
423
+ },
424
+ {
425
+ "id": 39,
426
+ "src": 11,
427
+ "dst": 16,
428
+ "length": 278.85
429
+ },
430
+ {
431
+ "id": 40,
432
+ "src": 11,
433
+ "dst": 13,
434
+ "length": 312.91
435
+ },
436
+ {
437
+ "id": 41,
438
+ "src": 13,
439
+ "dst": 0,
440
+ "length": 267.94
441
+ },
442
+ {
443
+ "id": 42,
444
+ "src": 0,
445
+ "dst": 3,
446
+ "length": 275.74
447
+ },
448
+ {
449
+ "id": 43,
450
+ "src": 3,
451
+ "dst": 14,
452
+ "length": 223.09
453
+ },
454
+ {
455
+ "id": 44,
456
+ "src": 4,
457
+ "dst": 3,
458
+ "length": 30.46
459
+ },
460
+ {
461
+ "id": 45,
462
+ "src": 13,
463
+ "dst": 14,
464
+ "length": 221.55
465
+ },
466
+ {
467
+ "id": 46,
468
+ "src": 10,
469
+ "dst": 11,
470
+ "length": 429.52
471
+ },
472
+ {
473
+ "id": 47,
474
+ "src": 1,
475
+ "dst": 2,
476
+ "length": 121.94
477
+ },
478
+ {
479
+ "id": 48,
480
+ "src": 0,
481
+ "dst": 1,
482
+ "length": 286.35
483
+ },
484
+ {
485
+ "id": 49,
486
+ "src": 1,
487
+ "dst": 5,
488
+ "length": 299.58
489
+ },
490
+ {
491
+ "id": 50,
492
+ "src": 12,
493
+ "dst": 13,
494
+ "length": 262.79
495
+ },
496
+ {
497
+ "id": 51,
498
+ "src": 12,
499
+ "dst": 5,
500
+ "length": 348.38
501
+ },
502
+ {
503
+ "id": 52,
504
+ "src": 11,
505
+ "dst": 12,
506
+ "length": 299.01
507
+ },
508
+ {
509
+ "id": 53,
510
+ "src": 6,
511
+ "dst": 5,
512
+ "length": 399.57
513
+ },
514
+ {
515
+ "id": 54,
516
+ "src": 6,
517
+ "dst": 7,
518
+ "length": 199.35
519
+ },
520
+ {
521
+ "id": 55,
522
+ "src": 11,
523
+ "dst": 7,
524
+ "length": 876.85
525
+ },
526
+ {
527
+ "id": 56,
528
+ "src": 7,
529
+ "dst": 8,
530
+ "length": 310.15
531
+ },
532
+ {
533
+ "id": 57,
534
+ "src": 8,
535
+ "dst": 11,
536
+ "length": 930.91
537
+ },
538
+ {
539
+ "id": 58,
540
+ "src": 9,
541
+ "dst": 10,
542
+ "length": 370.41
543
+ },
544
+ {
545
+ "id": 59,
546
+ "src": 9,
547
+ "dst": 8,
548
+ "length": 234.06
549
+ }
550
+ ]
551
+ }