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,637 @@
1
+ {
2
+ "name": "Espana-21",
3
+ "nodes": [
4
+ {
5
+ "id": 0,
6
+ "name": "Santiago de Compostela",
7
+ "weight": 0,
8
+ "longitude": -8.5441729,
9
+ "latitude": 42.8768606,
10
+ "pop": 97849,
11
+ "DC": 0,
12
+ "IXP": 0
13
+ },
14
+ {
15
+ "id": 1,
16
+ "name": "Oviedo",
17
+ "weight": 0,
18
+ "longitude": -5.8485461,
19
+ "latitude": 43.3622522,
20
+ "pop": 220020,
21
+ "DC": 2,
22
+ "IXP": 0
23
+ },
24
+ {
25
+ "id": 2,
26
+ "name": "Leon",
27
+ "weight": 0,
28
+ "longitude": -5.5718779,
29
+ "latitude": 42.5983611,
30
+ "pop": 124772,
31
+ "DC": 0,
32
+ "IXP": 0
33
+ },
34
+ {
35
+ "id": 3,
36
+ "name": "Bilbao",
37
+ "weight": 0,
38
+ "longitude": -2.9348121,
39
+ "latitude": 43.2633799,
40
+ "pop": 347342,
41
+ "DC": 10,
42
+ "IXP": 0
43
+ },
44
+ {
45
+ "id": 4,
46
+ "name": "Valladolid",
47
+ "weight": 0,
48
+ "longitude": -4.7222733,
49
+ "latitude": 41.6543639,
50
+ "pop": 299265,
51
+ "DC": 0,
52
+ "IXP": 0
53
+ },
54
+ {
55
+ "id": 5,
56
+ "name": "Caceres",
57
+ "weight": 0,
58
+ "longitude": -6.3734664,
59
+ "latitude": 39.4755328,
60
+ "pop": 96068,
61
+ "DC": 0,
62
+ "IXP": 0
63
+ },
64
+ {
65
+ "id": 6,
66
+ "name": "Zaragoza",
67
+ "weight": 0,
68
+ "longitude": -0.8861451,
69
+ "latitude": 41.6474339,
70
+ "pop": 686986,
71
+ "DC": 13,
72
+ "IXP": 0
73
+ },
74
+ {
75
+ "id": 7,
76
+ "name": "Pamplona",
77
+ "weight": 0,
78
+ "longitude": -1.6457745,
79
+ "latitude": 42.812526,
80
+ "pop": 209672,
81
+ "DC": 5,
82
+ "IXP": 0
83
+ },
84
+ {
85
+ "id": 8,
86
+ "name": "Girona",
87
+ "weight": 0,
88
+ "longitude": 2.8214264,
89
+ "latitude": 41.9794005,
90
+ "pop": 100266,
91
+ "DC": 1,
92
+ "IXP": 0
93
+ },
94
+ {
95
+ "id": 9,
96
+ "name": "Barcelona",
97
+ "weight": 0,
98
+ "longitude": 2.168568,
99
+ "latitude": 41.3873974,
100
+ "pop": 1620343,
101
+ "DC": 31,
102
+ "IXP": 5
103
+ },
104
+ {
105
+ "id": 10,
106
+ "name": "Madrid",
107
+ "weight": 0,
108
+ "longitude": -3.7032905,
109
+ "latitude": 40.4167279,
110
+ "pop": 3255944,
111
+ "DC": 65,
112
+ "IXP": 5
113
+ },
114
+ {
115
+ "id": 11,
116
+ "name": "Toledo",
117
+ "weight": 0,
118
+ "longitude": -4.0273231,
119
+ "latitude": 39.8628316,
120
+ "pop": 84282,
121
+ "DC": 2,
122
+ "IXP": 0
123
+ },
124
+ {
125
+ "id": 12,
126
+ "name": "Avila",
127
+ "weight": 0,
128
+ "longitude": -4.6812086,
129
+ "latitude": 40.656685,
130
+ "pop": 57657,
131
+ "DC": 0,
132
+ "IXP": 0
133
+ },
134
+ {
135
+ "id": 13,
136
+ "name": "Cuenca",
137
+ "weight": 0,
138
+ "longitude": -2.1374162,
139
+ "latitude": 40.0703925,
140
+ "pop": 55866,
141
+ "DC": 0,
142
+ "IXP": 0
143
+ },
144
+ {
145
+ "id": 14,
146
+ "name": "Valencia",
147
+ "weight": 0,
148
+ "longitude": -0.3756348,
149
+ "latitude": 39.4738338,
150
+ "pop": 825948,
151
+ "DC": 10,
152
+ "IXP": 1
153
+ },
154
+ {
155
+ "id": 15,
156
+ "name": "Albacete",
157
+ "weight": 0,
158
+ "longitude": -1.860173,
159
+ "latitude": 38.9943983,
160
+ "pop": 173050,
161
+ "DC": 1,
162
+ "IXP": 0
163
+ },
164
+ {
165
+ "id": 16,
166
+ "name": "Murcia",
167
+ "weight": 0,
168
+ "longitude": -1.1320073,
169
+ "latitude": 37.9893044,
170
+ "pop": 460349,
171
+ "DC": 3,
172
+ "IXP": 0
173
+ },
174
+ {
175
+ "id": 17,
176
+ "name": "Cordoba",
177
+ "weight": 0,
178
+ "longitude": -4.7792753,
179
+ "latitude": 37.8893025,
180
+ "pop": 325708,
181
+ "DC": 1,
182
+ "IXP": 0
183
+ },
184
+ {
185
+ "id": 18,
186
+ "name": "Sevilla",
187
+ "weight": 0,
188
+ "longitude": -5.9844589,
189
+ "latitude": 37.3890924,
190
+ "pop": 687488,
191
+ "DC": 3,
192
+ "IXP": 0
193
+ },
194
+ {
195
+ "id": 19,
196
+ "name": "Cadiz",
197
+ "weight": 0,
198
+ "longitude": -6.2804565,
199
+ "latitude": 36.5210142,
200
+ "pop": 126766,
201
+ "DC": 3,
202
+ "IXP": 0
203
+ },
204
+ {
205
+ "id": 20,
206
+ "name": "Malaga",
207
+ "weight": 0,
208
+ "longitude": -4.425557,
209
+ "latitude": 36.7178196,
210
+ "pop": 591637,
211
+ "DC": 7,
212
+ "IXP": 0
213
+ }
214
+ ],
215
+ "links": [
216
+ {
217
+ "id": 0,
218
+ "src": 19,
219
+ "dst": 20,
220
+ "length": 216.07
221
+ },
222
+ {
223
+ "id": 1,
224
+ "src": 20,
225
+ "dst": 17,
226
+ "length": 176.12
227
+ },
228
+ {
229
+ "id": 2,
230
+ "src": 18,
231
+ "dst": 17,
232
+ "length": 156.31
233
+ },
234
+ {
235
+ "id": 3,
236
+ "src": 19,
237
+ "dst": 18,
238
+ "length": 130.19
239
+ },
240
+ {
241
+ "id": 4,
242
+ "src": 5,
243
+ "dst": 18,
244
+ "length": 301.14
245
+ },
246
+ {
247
+ "id": 5,
248
+ "src": 17,
249
+ "dst": 5,
250
+ "length": 291.06
251
+ },
252
+ {
253
+ "id": 6,
254
+ "src": 20,
255
+ "dst": 16,
256
+ "length": 421.49
257
+ },
258
+ {
259
+ "id": 7,
260
+ "src": 15,
261
+ "dst": 16,
262
+ "length": 164.76
263
+ },
264
+ {
265
+ "id": 8,
266
+ "src": 17,
267
+ "dst": 15,
268
+ "length": 366.98
269
+ },
270
+ {
271
+ "id": 9,
272
+ "src": 15,
273
+ "dst": 11,
274
+ "length": 271.44
275
+ },
276
+ {
277
+ "id": 10,
278
+ "src": 11,
279
+ "dst": 5,
280
+ "length": 269.07
281
+ },
282
+ {
283
+ "id": 11,
284
+ "src": 2,
285
+ "dst": 5,
286
+ "length": 458.71
287
+ },
288
+ {
289
+ "id": 12,
290
+ "src": 11,
291
+ "dst": 12,
292
+ "length": 137.82
293
+ },
294
+ {
295
+ "id": 13,
296
+ "src": 4,
297
+ "dst": 12,
298
+ "length": 150.68
299
+ },
300
+ {
301
+ "id": 14,
302
+ "src": 2,
303
+ "dst": 4,
304
+ "length": 162.63
305
+ },
306
+ {
307
+ "id": 15,
308
+ "src": 11,
309
+ "dst": 10,
310
+ "length": 89.27
311
+ },
312
+ {
313
+ "id": 16,
314
+ "src": 4,
315
+ "dst": 10,
316
+ "length": 211.39
317
+ },
318
+ {
319
+ "id": 17,
320
+ "src": 15,
321
+ "dst": 13,
322
+ "length": 157.52
323
+ },
324
+ {
325
+ "id": 18,
326
+ "src": 10,
327
+ "dst": 13,
328
+ "length": 179.07
329
+ },
330
+ {
331
+ "id": 19,
332
+ "src": 16,
333
+ "dst": 14,
334
+ "length": 234.56
335
+ },
336
+ {
337
+ "id": 20,
338
+ "src": 14,
339
+ "dst": 13,
340
+ "length": 213.23
341
+ },
342
+ {
343
+ "id": 21,
344
+ "src": 9,
345
+ "dst": 13,
346
+ "length": 509.24
347
+ },
348
+ {
349
+ "id": 22,
350
+ "src": 14,
351
+ "dst": 9,
352
+ "length": 387.89
353
+ },
354
+ {
355
+ "id": 23,
356
+ "src": 6,
357
+ "dst": 10,
358
+ "length": 357.29
359
+ },
360
+ {
361
+ "id": 24,
362
+ "src": 9,
363
+ "dst": 6,
364
+ "length": 331.15
365
+ },
366
+ {
367
+ "id": 25,
368
+ "src": 6,
369
+ "dst": 8,
370
+ "length": 401.17
371
+ },
372
+ {
373
+ "id": 26,
374
+ "src": 8,
375
+ "dst": 9,
376
+ "length": 111.1
377
+ },
378
+ {
379
+ "id": 27,
380
+ "src": 7,
381
+ "dst": 6,
382
+ "length": 188.73
383
+ },
384
+ {
385
+ "id": 28,
386
+ "src": 8,
387
+ "dst": 7,
388
+ "length": 490.04
389
+ },
390
+ {
391
+ "id": 29,
392
+ "src": 3,
393
+ "dst": 7,
394
+ "length": 148.95
395
+ },
396
+ {
397
+ "id": 30,
398
+ "src": 4,
399
+ "dst": 3,
400
+ "length": 301.07
401
+ },
402
+ {
403
+ "id": 31,
404
+ "src": 2,
405
+ "dst": 0,
406
+ "length": 316.89
407
+ },
408
+ {
409
+ "id": 32,
410
+ "src": 0,
411
+ "dst": 1,
412
+ "length": 293.07
413
+ },
414
+ {
415
+ "id": 33,
416
+ "src": 2,
417
+ "dst": 1,
418
+ "length": 109.85
419
+ },
420
+ {
421
+ "id": 34,
422
+ "src": 3,
423
+ "dst": 1,
424
+ "length": 301.75
425
+ },
426
+ {
427
+ "id": 35,
428
+ "src": 20,
429
+ "dst": 19,
430
+ "length": 216.07
431
+ },
432
+ {
433
+ "id": 36,
434
+ "src": 17,
435
+ "dst": 20,
436
+ "length": 176.12
437
+ },
438
+ {
439
+ "id": 37,
440
+ "src": 17,
441
+ "dst": 18,
442
+ "length": 156.31
443
+ },
444
+ {
445
+ "id": 38,
446
+ "src": 18,
447
+ "dst": 19,
448
+ "length": 130.19
449
+ },
450
+ {
451
+ "id": 39,
452
+ "src": 18,
453
+ "dst": 5,
454
+ "length": 301.14
455
+ },
456
+ {
457
+ "id": 40,
458
+ "src": 5,
459
+ "dst": 17,
460
+ "length": 291.06
461
+ },
462
+ {
463
+ "id": 41,
464
+ "src": 16,
465
+ "dst": 20,
466
+ "length": 421.49
467
+ },
468
+ {
469
+ "id": 42,
470
+ "src": 16,
471
+ "dst": 15,
472
+ "length": 164.76
473
+ },
474
+ {
475
+ "id": 43,
476
+ "src": 15,
477
+ "dst": 17,
478
+ "length": 366.98
479
+ },
480
+ {
481
+ "id": 44,
482
+ "src": 11,
483
+ "dst": 15,
484
+ "length": 271.44
485
+ },
486
+ {
487
+ "id": 45,
488
+ "src": 5,
489
+ "dst": 11,
490
+ "length": 269.07
491
+ },
492
+ {
493
+ "id": 46,
494
+ "src": 5,
495
+ "dst": 2,
496
+ "length": 458.71
497
+ },
498
+ {
499
+ "id": 47,
500
+ "src": 12,
501
+ "dst": 11,
502
+ "length": 137.82
503
+ },
504
+ {
505
+ "id": 48,
506
+ "src": 12,
507
+ "dst": 4,
508
+ "length": 150.68
509
+ },
510
+ {
511
+ "id": 49,
512
+ "src": 4,
513
+ "dst": 2,
514
+ "length": 162.63
515
+ },
516
+ {
517
+ "id": 50,
518
+ "src": 10,
519
+ "dst": 11,
520
+ "length": 89.27
521
+ },
522
+ {
523
+ "id": 51,
524
+ "src": 10,
525
+ "dst": 4,
526
+ "length": 211.39
527
+ },
528
+ {
529
+ "id": 52,
530
+ "src": 13,
531
+ "dst": 15,
532
+ "length": 157.52
533
+ },
534
+ {
535
+ "id": 53,
536
+ "src": 13,
537
+ "dst": 10,
538
+ "length": 179.07
539
+ },
540
+ {
541
+ "id": 54,
542
+ "src": 14,
543
+ "dst": 16,
544
+ "length": 234.56
545
+ },
546
+ {
547
+ "id": 55,
548
+ "src": 13,
549
+ "dst": 14,
550
+ "length": 213.23
551
+ },
552
+ {
553
+ "id": 56,
554
+ "src": 13,
555
+ "dst": 9,
556
+ "length": 509.24
557
+ },
558
+ {
559
+ "id": 57,
560
+ "src": 9,
561
+ "dst": 14,
562
+ "length": 387.89
563
+ },
564
+ {
565
+ "id": 58,
566
+ "src": 10,
567
+ "dst": 6,
568
+ "length": 357.29
569
+ },
570
+ {
571
+ "id": 59,
572
+ "src": 6,
573
+ "dst": 9,
574
+ "length": 331.15
575
+ },
576
+ {
577
+ "id": 60,
578
+ "src": 8,
579
+ "dst": 6,
580
+ "length": 401.17
581
+ },
582
+ {
583
+ "id": 61,
584
+ "src": 9,
585
+ "dst": 8,
586
+ "length": 111.1
587
+ },
588
+ {
589
+ "id": 62,
590
+ "src": 6,
591
+ "dst": 7,
592
+ "length": 188.73
593
+ },
594
+ {
595
+ "id": 63,
596
+ "src": 7,
597
+ "dst": 8,
598
+ "length": 490.04
599
+ },
600
+ {
601
+ "id": 64,
602
+ "src": 7,
603
+ "dst": 3,
604
+ "length": 148.95
605
+ },
606
+ {
607
+ "id": 65,
608
+ "src": 3,
609
+ "dst": 4,
610
+ "length": 301.07
611
+ },
612
+ {
613
+ "id": 66,
614
+ "src": 0,
615
+ "dst": 2,
616
+ "length": 316.89
617
+ },
618
+ {
619
+ "id": 67,
620
+ "src": 1,
621
+ "dst": 0,
622
+ "length": 293.07
623
+ },
624
+ {
625
+ "id": 68,
626
+ "src": 1,
627
+ "dst": 2,
628
+ "length": 109.85
629
+ },
630
+ {
631
+ "id": 69,
632
+ "src": 1,
633
+ "dst": 3,
634
+ "length": 301.75
635
+ }
636
+ ]
637
+ }