-
Notifications
You must be signed in to change notification settings - Fork 0
/
bicimad.html
108 lines (73 loc) · 33.4 KB
/
bicimad.html
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
<html>
<head>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/vis/4.16.1/vis.css" type="text/css" />
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/vis/4.16.1/vis-network.min.js"> </script>
<center>
<h1></h1>
</center>
<!-- <link rel="stylesheet" href="../node_modules/vis/dist/vis.min.css" type="text/css" />
<script type="text/javascript" src="../node_modules/vis/dist/vis.js"> </script>-->
<style type="text/css">
#mynetwork {
width: 1000px;
height: 1000px;
background-color: #ffffff;
border: 1px solid lightgray;
position: relative;
float: left;
}
</style>
</head>
<body>
<div id = "mynetwork"></div>
<script type="text/javascript">
// initialize global variables.
var edges;
var nodes;
var network;
var container;
var options, data;
// This method is responsible for drawing the graph, returns the drawn network
function drawGraph() {
var container = document.getElementById('mynetwork');
// parsing and collecting nodes and edges from the python
nodes = new vis.DataSet([{"betweenness": 0.0, "eigenvector": 0.0578848979091648, "id": 1, "label": 1, "shape": "dot", "size": 2, "title": "ALCALA, CALLE, DE, 2"}, {"betweenness": 0.008341880341880343, "eigenvector": 0.14458207960866662, "id": 41, "label": 41, "shape": "dot", "size": 7, "title": "ATOCHA, CALLE, DE, 56"}, {"betweenness": 0.11071695309809834, "eigenvector": 0.35439678505559824, "id": 175, "label": 175, "shape": "dot", "size": 19, "title": "JAIME EL CONQUISTADOR, CALLE, DE, 30"}, {"betweenness": 0.0, "eigenvector": 0.0578848979091648, "id": 27, "label": 27, "shape": "dot", "size": 2, "title": "JESUS, CALLE, DE, frente 6"}, {"betweenness": 0.10114493602429507, "eigenvector": 0.24664775152627735, "id": 132, "label": 132, "shape": "dot", "size": 11, "title": "SANTA ENGRACIA, CALLE, DE, 168"}, {"betweenness": 0.1040192687149446, "eigenvector": 0.3849280779700005, "id": 135, "label": 135, "shape": "dot", "size": 18, "title": "SAN JUAN DE LA CRUZ, PLAZA, DE, S/N"}, {"betweenness": 0.0, "eigenvector": 0.041112407113359624, "id": 2, "label": 2, "shape": "dot", "size": 1, "title": "MIGUEL MOYA, CALLE, DE, 1"}, {"betweenness": 0.018263288739479206, "eigenvector": 0.049250819646152896, "id": 3, "label": 3, "shape": "dot", "size": 4, "title": "CONDE DEL VALLE DE SUCHIL, PLAZA, DEL, 2"}, {"betweenness": 0.004950340974292258, "eigenvector": 0.11953535793832268, "id": 26, "label": 26, "shape": "dot", "size": 4, "title": "SALESAS, PLAZA, DE LAS, 8"}, {"betweenness": 0.0, "eigenvector": 0.041112407113359624, "id": 35, "label": 35, "shape": "dot", "size": 1, "title": "CORDON, PLAZA, DEL, 1"}, {"betweenness": 0.0068918772392842186, "eigenvector": 0.21487577600471036, "id": 38, "label": 38, "shape": "dot", "size": 8, "title": "SAN FRANCISCO, CARRERA, DE, 1"}, {"betweenness": 0.06533873915501062, "eigenvector": 0.2445805165503669, "id": 42, "label": 42, "shape": "dot", "size": 11, "title": "SANTA ISABEL, CALLE, DE, 32"}, {"betweenness": 0.0, "eigenvector": 0.08576665443024542, "id": 52, "label": 52, "shape": "dot", "size": 2, "title": "SANTA ANA, PLAZA, DE, 9"}, {"betweenness": 0.001552358315805395, "eigenvector": 0.0898885348510968, "id": 56, "label": 56, "shape": "dot", "size": 4, "title": "CARMEN, PLAZA, DEL, 1"}, {"betweenness": 0.07283196261936098, "eigenvector": 0.3299732311587995, "id": 129, "label": 129, "shape": "dot", "size": 14, "title": "JOSE ABASCAL, CALLE, DE, 33"}, {"betweenness": 0.0027266299238537526, "eigenvector": 0.2516578364862545, "id": 133, "label": 133, "shape": "dot", "size": 8, "title": "DULCINEA, CALLE, DE, 3"}, {"betweenness": 0.0, "eigenvector": 0.06972527659623677, "id": 25, "label": 25, "shape": "dot", "size": 2, "title": "CELENQUE, PLAZA, DEL, 1"}, {"betweenness": 0.012540985715653158, "eigenvector": 0.271162848822168, "id": 49, "label": 49, "shape": "dot", "size": 10, "title": "ATOCHA, RONDA, DE, 36"}, {"betweenness": 0.01884341679213473, "eigenvector": 0.020901453310533207, "id": 58, "label": 58, "shape": "dot", "size": 5, "title": "AUGUSTO FIGUEROA, CALLE, DE, 33"}, {"betweenness": 0.0026203073822121444, "eigenvector": 0.03749692954519055, "id": 6, "label": 6, "shape": "dot", "size": 6, "title": "HORTALEZA, CALLE, DE, 63"}, {"betweenness": 0.18078109940208628, "eigenvector": 0.07403595267991522, "id": 149, "label": 149, "shape": "dot", "size": 21, "title": "LA HABANA, PASEO, DE, 42"}, {"betweenness": 0.01392040939659987, "eigenvector": 0.03597049529223361, "id": 157, "label": 157, "shape": "dot", "size": 10, "title": "CASTELLANA, PASEO, DE LA, S/N"}, {"betweenness": 0.02530424954234478, "eigenvector": 0.04585132817303986, "id": 168, "label": 168, "shape": "dot", "size": 9, "title": "SANTA MARIA DE LA CABEZA, PASEO, DE, frente 32"}, {"betweenness": 0.28774372542507803, "eigenvector": 0.1298506703162877, "id": 19, "label": 19, "shape": "dot", "size": 11, "title": "PRIM, CALLE, DE, 4"}, {"betweenness": 0.0, "eigenvector": 0.01049946758302462, "id": 7, "label": 7, "shape": "dot", "size": 2, "title": "HORTALEZA, CALLE, DE, 75"}, {"betweenness": 0.0, "eigenvector": 0.008589654372670298, "id": 8, "label": 8, "shape": "dot", "size": 1, "title": "ALONSO MARTINEZ, PLAZA, DE, 6"}, {"betweenness": 0.0006793206793206794, "eigenvector": 0.02400280762734562, "id": 9, "label": 9, "shape": "dot", "size": 4, "title": "SAN MIGUEL, PLAZA, DE, 9"}, {"betweenness": 0.002546078260363974, "eigenvector": 0.025262560872481785, "id": 59, "label": 59, "shape": "dot", "size": 6, "title": "ESPIRITU SANTO, CALLE, DEL, 30"}, {"betweenness": 0.0, "eigenvector": 0.008589654372670298, "id": 108, "label": 108, "shape": "dot", "size": 1, "title": "MARTIRES CONCEPCIONISTAS, CALLE, DE LAS, 2"}, {"betweenness": 0.0015466015466015467, "eigenvector": 0.021129797626117906, "id": 130, "label": 130, "shape": "dot", "size": 4, "title": "SANTA ENGRACIA, CALLE, DE, 129"}, {"betweenness": 0.025054945054945058, "eigenvector": 0.024068167632291047, "id": 139, "label": 139, "shape": "dot", "size": 7, "title": "JOSE GUTIERREZ ABASCAL, CALLE, DE, S/N"}, {"betweenness": 0.0, "eigenvector": 0.011664473152024431, "id": 13, "label": 13, "shape": "dot", "size": 2, "title": "CONDE DUQUE, CALLE, DEL, 22"}, {"betweenness": 0.0, "eigenvector": 0.008589654372670298, "id": 20, "label": 20, "shape": "dot", "size": 1, "title": "ALCALA, CALLE, DE, 49"}, {"betweenness": 0.003596350739207882, "eigenvector": 0.026502283247253046, "id": 160, "label": 160, "shape": "dot", "size": 5, "title": "COLOMBIA, CALLE, DE, 7"}, {"betweenness": 0.18844217262144433, "eigenvector": 0.06242100504040351, "id": 163, "label": 163, "shape": "dot", "size": 19, "title": "ESPERANZA, PASEO, DE LA, 0,0833333333333333"}, {"betweenness": 0.02210789210789211, "eigenvector": 0.01179543088288482, "id": 164, "label": 164, "shape": "dot", "size": 4, "title": "DELICIAS, PASEO, DE LAS, 94"}, {"betweenness": 0.004239975192356146, "eigenvector": 0.016460782941013836, "id": 169, "label": 169, "shape": "dot", "size": 4, "title": "TOLEDO, CALLE, DE, 181"}, {"betweenness": 0.019097665484220105, "eigenvector": 0.03445768382929182, "id": 161, "label": 161, "shape": "dot", "size": 7, "title": "FLORIDA, PASEO, DE LA, 8"}, {"betweenness": 0.0, "eigenvector": 0.011415464111470139, "id": 30, "label": 30, "shape": "dot", "size": 2, "title": "PAVIA, CALLE, DE, 6"}, {"betweenness": 0.005152043723472295, "eigenvector": 0.018103524519718257, "id": 118, "label": 118, "shape": "dot", "size": 4, "title": "JUAN MARTIN EL EMPECINADO, CALLE, DE, 16"}, {"betweenness": 0.009271604938271604, "eigenvector": 0.03811409398443167, "id": 17, "label": 17, "shape": "dot", "size": 4, "title": "CARLOS CAMBRONERO, PLAZA, DE, 2"}, {"betweenness": 0.021277209459282284, "eigenvector": 0.021372905005851987, "id": 170, "label": 170, "shape": "dot", "size": 3, "title": "ESPERANZA, PASEO, DE LA, 21"}, {"betweenness": 0.000999000999000999, "eigenvector": 0.008158689397982562, "id": 145, "label": 145, "shape": "dot", "size": 3, "title": "JOSE ORTEGA Y GASSET, CALLE, DE, 87"}, {"betweenness": 0.0, "eigenvector": 0.0072420777064004975, "id": 142, "label": 142, "shape": "dot", "size": 1, "title": "CASTELLANA, PASEO, DE LA, S/N"}, {"betweenness": 0.0, "eigenvector": 0.0072420777064004975, "id": 153, "label": 153, "shape": "dot", "size": 1, "title": "GENERAL PERON, AVENIDA, DEL, frente 36"}, {"betweenness": 0.0, "eigenvector": 0.0072420777064004975, "id": 162, "label": 162, "shape": "dot", "size": 1, "title": "OLMOS, PASEO, DE LOS, 28"}, {"betweenness": 0.0, "eigenvector": 0.01017307850261345, "id": 131, "label": 131, "shape": "dot", "size": 2, "title": "BRAVO MURILLO, CALLE, DE, 44"}, {"betweenness": 0.0, "eigenvector": 0.009693613977395744, "id": 156, "label": 156, "shape": "dot", "size": 2, "title": "SOR ANGELA DE LA CRUZ, CALLE, DE, 2"}, {"betweenness": 0.052423593939000104, "eigenvector": 0.02229927475271851, "id": 166, "label": 166, "shape": "dot", "size": 3, "title": "SEGOVIA, CALLE, DE, 21"}, {"betweenness": 0.0, "eigenvector": 7.44376139511217e-48, "id": 10, "label": 10, "shape": "dot", "size": 2, "title": "MARQUES DE LA ENSENADA, CALLE, DEL, 16"}, {"betweenness": 0.0, "eigenvector": 0.028373008074254132, "id": 116, "label": 116, "shape": "dot", "size": 1, "title": "ESPA\u00d1A, PLAZA, DE, S/N"}, {"betweenness": 0.020136926565497988, "eigenvector": 0.031209191031474987, "id": 53, "label": 53, "shape": "dot", "size": 2, "title": "VALENCIA, CALLE, DE, frente 2"}, {"betweenness": 0.21489806552746704, "eigenvector": 0.330569851987831, "id": 57, "label": 57, "shape": "dot", "size": 17, "title": "SANTA CRUZ DE MARCENADO, CALLE, DE, 24"}, {"betweenness": 0.0023321123321123315, "eigenvector": 0.052625850751934815, "id": 55, "label": 55, "shape": "dot", "size": 4, "title": "SAN ILDEFONSO, PLAZA, DE, 8"}, {"betweenness": 0.17963208507358477, "eigenvector": 0.10534585427122398, "id": 90, "label": 90, "shape": "dot", "size": 13, "title": "GOYA, CALLE, DE, 18"}, {"betweenness": 0.001669461999132329, "eigenvector": 0.0338204258405514, "id": 64, "label": 64, "shape": "dot", "size": 6, "title": null}, {"betweenness": 0.008041387184244327, "eigenvector": 0.06077960520931218, "id": 73, "label": 73, "shape": "dot", "size": 5, "title": "ASTROS, PLAZA, DE LOS, S/N"}, {"betweenness": 0.10746118960404677, "eigenvector": 0.024447948794165814, "id": 83, "label": 83, "shape": "dot", "size": 9, "title": "PIO BAROJA, CALLE, DE, 8 B"}, {"betweenness": 0.1006356317674999, "eigenvector": 0.09895898756011792, "id": 84, "label": 84, "shape": "dot", "size": 8, "title": "DOCTOR ESQUERDO, CALLE, DEL, 191"}, {"betweenness": 0.040952380952380955, "eigenvector": 0.027233031405289404, "id": 86, "label": 86, "shape": "dot", "size": 7, "title": "PRADO, PASEO, DEL, S/N"}, {"betweenness": 0.009238820625375248, "eigenvector": 0.035074079807522376, "id": 78, "label": 78, "shape": "dot", "size": 6, "title": "CERRO DE LA PLATA, CALLE, DEL, 2"}, {"betweenness": 0.004653758939473226, "eigenvector": 0.018336155791067954, "id": 79, "label": 79, "shape": "dot", "size": 3, "title": "MENENDEZ PELAYO, AVENIDA, DE, 38"}, {"betweenness": 0.0, "eigenvector": 0.028612869482877144, "id": 174, "label": 174, "shape": "dot", "size": 1, "title": "YESERIAS, PASEO, DE LAS, 8"}, {"betweenness": 0.009465289560527656, "eigenvector": 0.10086914894830883, "id": 45, "label": 45, "shape": "dot", "size": 4, "title": "PUERTA DE TOLEDO, GLORIETA, DE LA, 1"}, {"betweenness": 0.0, "eigenvector": 0.038348443047936095, "id": 31, "label": 31, "shape": "dot", "size": 1, "title": "MAYOR, CALLE, 18"}, {"betweenness": 0.0007967415486212479, "eigenvector": 0.11551023712410247, "id": 128, "label": 128, "shape": "dot", "size": 6, "title": "CEA BERMUDEZ, CALLE, DE, 59"}, {"betweenness": 0.002839118553404267, "eigenvector": 0.06360001046349936, "id": 136, "label": 136, "shape": "dot", "size": 3, "title": "CASTELLANA, PASEO, DE LA, 106"}, {"betweenness": 0.0, "eigenvector": 0.044654247316885796, "id": 34, "label": 34, "shape": "dot", "size": 1, "title": "JACINTO BENAVENTE, PLAZA, DE, S/N"}, {"betweenness": 0.0, "eigenvector": 0.044654247316885796, "id": 50, "label": 50, "shape": "dot", "size": 1, "title": "SANTA ISABEL, CALLE, DE, 57"}, {"betweenness": 0.0, "eigenvector": 0.044654247316885796, "id": 51, "label": 51, "shape": "dot", "size": 1, "title": "EMPERADOR CARLOS V, PLAZA, DEL, 7"}, {"betweenness": 0.0, "eigenvector": 0.12201494721415182, "id": 134, "label": 134, "shape": "dot", "size": 5, "title": "MARIA DE GUZMAN, CALLE, DE, 58"}, {"betweenness": 0.0015316679978334114, "eigenvector": 0.10216299532021815, "id": 48, "label": 48, "shape": "dot", "size": 5, "title": "EMBAJADORES, GLORIETA, DE, 2"}, {"betweenness": 0.0, "eigenvector": 0.03827911801893356, "id": 47, "label": 47, "shape": "dot", "size": 1, "title": "EMBAJADORES, GLORIETA, DE, 7 B"}, {"betweenness": 0.0, "eigenvector": 7.80840068419225e-40, "id": 46, "label": 46, "shape": "dot", "size": 3, "title": "RIBERA DE CURTIDORES, CALLE, DE LA, 28"}, {"betweenness": 0.0, "eigenvector": 4.825857020608745e-40, "id": 62, "label": 62, "shape": "dot", "size": 1, "title": "O\u0027DONNELL, CALLE, DE, 48"}, {"betweenness": 0.045559223031750494, "eigenvector": 0.01889270902534517, "id": 74, "label": 74, "shape": "dot", "size": 6, "title": "MENENDEZ PELAYO, AVENIDA, DE, S/N"}, {"betweenness": 0.020512820512820513, "eigenvector": 0.00287487359344369, "id": 115, "label": 115, "shape": "dot", "size": 2, "title": "MARQUES DE CERRALBO, PLAZA, DEL, S/N"}, {"betweenness": 0.0, "eigenvector": 0.002836182957220849, "id": 126, "label": 126, "shape": "dot", "size": 1, "title": "GENERAL ALVAREZ DE CASTRO, CALLE, DEL, 4"}, {"betweenness": 0.0, "eigenvector": 0.002836182957220849, "id": 127, "label": 127, "shape": "dot", "size": 1, "title": "FERNANDO EL CATOLICO, CALLE, DE, 19"}, {"betweenness": 0.0, "eigenvector": 0.00315925666836968, "id": 66, "label": 66, "shape": "dot", "size": 1, "title": null}, {"betweenness": 0.0, "eigenvector": 0.00315925666836968, "id": 91, "label": 91, "shape": "dot", "size": 1, "title": "HERMOSILLA, CALLE, DE, 73"}, {"betweenness": 0.020512820512820513, "eigenvector": 0.0022215986850499334, "id": 82, "label": 82, "shape": "dot", "size": 2, "title": "LIRA, CALLE, DE LA, frente 2"}, {"betweenness": 0.0, "eigenvector": 0.0002577228824199395, "id": 77, "label": 77, "shape": "dot", "size": 1, "title": "CONDE DE CASAL, PLAZA, DEL, 8"}, {"betweenness": 0.0, "eigenvector": 0.011479952803307665, "id": 75, "label": 75, "shape": "dot", "size": 1, "title": "MENENDEZ PELAYO, AVENIDA, DE, S/N"}, {"betweenness": 0.0, "eigenvector": 0.011479952803307665, "id": 65, "label": 65, "shape": "dot", "size": 1, "title": "ANTONIO MAURA, CALLE, DE, 15"}, {"betweenness": 0.0, "eigenvector": 0.011479952803307665, "id": 88, "label": 88, "shape": "dot", "size": 1, "title": "VELAZQUEZ, CALLE, DE, 73"}, {"betweenness": 0.0, "eigenvector": 0.0003335121697060317, "id": 105, "label": 105, "shape": "dot", "size": 1, "title": "SERRANO, CALLE, DE, 46"}, {"betweenness": 0.0002442002442002442, "eigenvector": 3.252707650434582e-42, "id": 114, "label": 114, "shape": "dot", "size": 2, "title": "QUINTANA, CALLE, DE, 13"}, {"betweenness": 0.0, "eigenvector": 2.3000116368396555e-42, "id": 92, "label": 92, "shape": "dot", "size": 1, "title": "CLAUDIO COELLO, CALLE, DE, 45"}, {"betweenness": 0.0, "eigenvector": 2.3000116368396555e-42, "id": 101, "label": 101, "shape": "dot", "size": 1, "title": "JORGE JUAN, CALLE, DE, 131"}, {"betweenness": 0.0, "eigenvector": 0.0027924627728457287, "id": 154, "label": 154, "shape": "dot", "size": 1, "title": "ORENSE, CALLE, DE, 36"}, {"betweenness": 0.0, "eigenvector": 0.001368537481931652, "id": 171, "label": 171, "shape": "dot", "size": 1, "title": "EMBAJADORES, CALLE, DE, 97"}]);
edges = new vis.DataSet([{"cost": 457, "from": 1, "title": "Cost: 7.617 min.", "to": 41, "weight": 93}, {"cost": 595, "from": 1, "title": "Cost: 9.917 min.", "to": 175, "weight": 144}, {"cost": 270, "from": 41, "title": "Cost: 4.5 min.", "to": 27, "weight": 90}, {"cost": 1386, "from": 41, "title": "Cost: 23.1 min.", "to": 41, "weight": 91}, {"cost": 830, "from": 41, "title": "Cost: 13.833 min.", "to": 132, "weight": 89}, {"cost": 786, "from": 41, "title": "Cost: 13.1 min.", "to": 135, "weight": 84}, {"cost": 451, "from": 41, "title": "Cost: 7.517 min.", "to": 175, "weight": 105}, {"cost": 633, "from": 175, "title": "Cost: 10.55 min.", "to": 2, "weight": 109}, {"cost": 632, "from": 175, "title": "Cost: 10.533 min.", "to": 3, "weight": 90}, {"cost": 648, "from": 175, "title": "Cost: 10.8 min.", "to": 26, "weight": 158}, {"cost": 420, "from": 175, "title": "Cost: 7.0 min.", "to": 27, "weight": 113}, {"cost": 760, "from": 175, "title": "Cost: 12.667 min.", "to": 35, "weight": 86}, {"cost": 611, "from": 175, "title": "Cost: 10.183 min.", "to": 38, "weight": 118}, {"cost": 706, "from": 175, "title": "Cost: 11.767 min.", "to": 42, "weight": 120}, {"cost": 728, "from": 175, "title": "Cost: 12.133 min.", "to": 52, "weight": 84}, {"cost": 714, "from": 175, "title": "Cost: 11.9 min.", "to": 56, "weight": 103}, {"cost": 854, "from": 175, "title": "Cost: 14.233 min.", "to": 129, "weight": 134}, {"cost": 973, "from": 175, "title": "Cost: 16.217 min.", "to": 132, "weight": 160}, {"cost": 1414, "from": 175, "title": "Cost: 23.567 min.", "to": 133, "weight": 85}, {"cost": 1000, "from": 175, "title": "Cost: 16.667 min.", "to": 135, "weight": 147}, {"cost": 532, "from": 175, "title": "Cost: 8.867 min.", "to": 25, "weight": 120}, {"cost": 799, "from": 175, "title": "Cost: 13.317 min.", "to": 49, "weight": 99}, {"cost": 2651, "from": 175, "title": "Cost: 44.183 min.", "to": 175, "weight": 136}, {"cost": 2406, "from": 3, "title": "Cost: 40.1 min.", "to": 3, "weight": 87}, {"cost": 931, "from": 3, "title": "Cost: 15.517 min.", "to": 58, "weight": 94}, {"cost": 2476, "from": 6, "title": "Cost: 41.267 min.", "to": 6, "weight": 293}, {"cost": 723, "from": 6, "title": "Cost: 12.05 min.", "to": 149, "weight": 109}, {"cost": 624, "from": 6, "title": "Cost: 10.4 min.", "to": 157, "weight": 87}, {"cost": 520, "from": 6, "title": "Cost: 8.667 min.", "to": 168, "weight": 84}, {"cost": 742, "from": 6, "title": "Cost: 12.367 min.", "to": 19, "weight": 84}, {"cost": 887, "from": 149, "title": "Cost: 14.783 min.", "to": 7, "weight": 88}, {"cost": 674, "from": 149, "title": "Cost: 11.233 min.", "to": 8, "weight": 88}, {"cost": 624, "from": 149, "title": "Cost: 10.4 min.", "to": 9, "weight": 185}, {"cost": 847, "from": 149, "title": "Cost: 14.117 min.", "to": 19, "weight": 96}, {"cost": 803, "from": 149, "title": "Cost: 13.383 min.", "to": 58, "weight": 153}, {"cost": 906, "from": 149, "title": "Cost: 15.1 min.", "to": 59, "weight": 135}, {"cost": 746, "from": 149, "title": "Cost: 12.433 min.", "to": 108, "weight": 82}, {"cost": 582, "from": 149, "title": "Cost: 9.7 min.", "to": 130, "weight": 182}, {"cost": 1395, "from": 149, "title": "Cost: 23.25 min.", "to": 139, "weight": 111}, {"cost": 535, "from": 149, "title": "Cost: 8.917 min.", "to": 13, "weight": 101}, {"cost": 737, "from": 149, "title": "Cost: 12.283 min.", "to": 20, "weight": 89}, {"cost": 2454, "from": 149, "title": "Cost: 40.9 min.", "to": 149, "weight": 119}, {"cost": 607, "from": 149, "title": "Cost: 10.117 min.", "to": 157, "weight": 82}, {"cost": 616, "from": 149, "title": "Cost: 10.267 min.", "to": 160, "weight": 103}, {"cost": 501, "from": 149, "title": "Cost: 8.35 min.", "to": 163, "weight": 188}, {"cost": 541, "from": 149, "title": "Cost: 9.017 min.", "to": 164, "weight": 89}, {"cost": 732, "from": 149, "title": "Cost: 12.2 min.", "to": 168, "weight": 112}, {"cost": 547, "from": 149, "title": "Cost: 9.117 min.", "to": 169, "weight": 201}, {"cost": 409, "from": 149, "title": "Cost: 6.817 min.", "to": 161, "weight": 91}, {"cost": 524, "from": 157, "title": "Cost: 8.733 min.", "to": 9, "weight": 112}, {"cost": 540, "from": 157, "title": "Cost: 9.0 min.", "to": 30, "weight": 115}, {"cost": 686, "from": 157, "title": "Cost: 11.433 min.", "to": 58, "weight": 115}, {"cost": 401, "from": 157, "title": "Cost: 6.683 min.", "to": 130, "weight": 126}, {"cost": 664, "from": 157, "title": "Cost: 11.067 min.", "to": 118, "weight": 95}, {"cost": 892, "from": 157, "title": "Cost: 14.867 min.", "to": 139, "weight": 90}, {"cost": 381, "from": 157, "title": "Cost: 6.35 min.", "to": 163, "weight": 178}, {"cost": 496, "from": 157, "title": "Cost: 8.267 min.", "to": 169, "weight": 93}, {"cost": 631, "from": 168, "title": "Cost: 10.517 min.", "to": 17, "weight": 84}, {"cost": 717, "from": 168, "title": "Cost: 11.95 min.", "to": 59, "weight": 91}, {"cost": 612, "from": 168, "title": "Cost: 10.2 min.", "to": 19, "weight": 88}, {"cost": 374, "from": 168, "title": "Cost: 6.233 min.", "to": 118, "weight": 128}, {"cost": 453, "from": 168, "title": "Cost: 7.55 min.", "to": 160, "weight": 82}, {"cost": 1757, "from": 168, "title": "Cost: 29.283 min.", "to": 168, "weight": 83}, {"cost": 400, "from": 7, "title": "Cost: 6.667 min.", "to": 169, "weight": 86}, {"cost": 746, "from": 169, "title": "Cost: 12.433 min.", "to": 170, "weight": 106}, {"cost": 550, "from": 9, "title": "Cost: 9.167 min.", "to": 161, "weight": 84}, {"cost": 392, "from": 9, "title": "Cost: 6.533 min.", "to": 163, "weight": 131}, {"cost": 770, "from": 161, "title": "Cost: 12.833 min.", "to": 19, "weight": 114}, {"cost": 407, "from": 161, "title": "Cost: 6.783 min.", "to": 160, "weight": 135}, {"cost": 413, "from": 161, "title": "Cost: 6.883 min.", "to": 145, "weight": 131}, {"cost": 1721, "from": 161, "title": "Cost: 28.683 min.", "to": 161, "weight": 89}, {"cost": 617, "from": 163, "title": "Cost: 10.283 min.", "to": 19, "weight": 111}, {"cost": 504, "from": 163, "title": "Cost: 8.4 min.", "to": 30, "weight": 83}, {"cost": 471, "from": 163, "title": "Cost: 7.85 min.", "to": 59, "weight": 105}, {"cost": 605, "from": 163, "title": "Cost: 10.083 min.", "to": 118, "weight": 145}, {"cost": 701, "from": 163, "title": "Cost: 11.683 min.", "to": 139, "weight": 92}, {"cost": 633, "from": 163, "title": "Cost: 10.55 min.", "to": 142, "weight": 97}, {"cost": 521, "from": 163, "title": "Cost: 8.683 min.", "to": 153, "weight": 129}, {"cost": 589, "from": 163, "title": "Cost: 9.817 min.", "to": 160, "weight": 132}, {"cost": 598, "from": 163, "title": "Cost: 9.967 min.", "to": 162, "weight": 102}, {"cost": 563, "from": 163, "title": "Cost: 9.383 min.", "to": 130, "weight": 87}, {"cost": 447, "from": 163, "title": "Cost: 7.45 min.", "to": 131, "weight": 98}, {"cost": 527, "from": 163, "title": "Cost: 8.783 min.", "to": 156, "weight": 87}, {"cost": 2220, "from": 163, "title": "Cost: 37.0 min.", "to": 163, "weight": 110}, {"cost": 681, "from": 163, "title": "Cost: 11.35 min.", "to": 166, "weight": 103}, {"cost": 651, "from": 163, "title": "Cost: 10.85 min.", "to": 170, "weight": 97}, {"cost": 2554, "from": 10, "title": "Cost: 42.567 min.", "to": 10, "weight": 84}, {"cost": 521, "from": 13, "title": "Cost: 8.683 min.", "to": 160, "weight": 91}, {"cost": 2147, "from": 17, "title": "Cost: 35.783 min.", "to": 17, "weight": 101}, {"cost": 541, "from": 17, "title": "Cost: 9.017 min.", "to": 42, "weight": 82}, {"cost": 504, "from": 42, "title": "Cost: 8.4 min.", "to": 26, "weight": 100}, {"cost": 2582, "from": 42, "title": "Cost: 43.033 min.", "to": 42, "weight": 127}, {"cost": 1038, "from": 42, "title": "Cost: 17.3 min.", "to": 116, "weight": 85}, {"cost": 825, "from": 42, "title": "Cost: 13.75 min.", "to": 132, "weight": 83}, {"cost": 801, "from": 42, "title": "Cost: 13.35 min.", "to": 135, "weight": 126}, {"cost": 1007, "from": 42, "title": "Cost: 16.783 min.", "to": 53, "weight": 91}, {"cost": 584, "from": 42, "title": "Cost: 9.733 min.", "to": 57, "weight": 112}, {"cost": 713, "from": 42, "title": "Cost: 11.883 min.", "to": 129, "weight": 91}, {"cost": 2238, "from": 19, "title": "Cost: 37.3 min.", "to": 19, "weight": 106}, {"cost": 719, "from": 19, "title": "Cost: 11.983 min.", "to": 55, "weight": 122}, {"cost": 665, "from": 19, "title": "Cost: 11.083 min.", "to": 90, "weight": 96}, {"cost": 689, "from": 19, "title": "Cost: 11.483 min.", "to": 132, "weight": 101}, {"cost": 686, "from": 19, "title": "Cost: 11.433 min.", "to": 57, "weight": 83}, {"cost": 571, "from": 55, "title": "Cost: 9.517 min.", "to": 49, "weight": 100}, {"cost": 1977, "from": 55, "title": "Cost: 32.95 min.", "to": 55, "weight": 115}, {"cost": 700, "from": 90, "title": "Cost: 11.667 min.", "to": 64, "weight": 138}, {"cost": 567, "from": 90, "title": "Cost: 9.45 min.", "to": 73, "weight": 94}, {"cost": 515, "from": 90, "title": "Cost: 8.583 min.", "to": 83, "weight": 108}, {"cost": 618, "from": 90, "title": "Cost: 10.3 min.", "to": 84, "weight": 127}, {"cost": 678, "from": 90, "title": "Cost: 11.3 min.", "to": 86, "weight": 144}, {"cost": 1014, "from": 90, "title": "Cost: 16.9 min.", "to": 57, "weight": 83}, {"cost": 933, "from": 90, "title": "Cost: 15.55 min.", "to": 78, "weight": 110}, {"cost": 332, "from": 90, "title": "Cost: 5.533 min.", "to": 79, "weight": 139}, {"cost": 2631, "from": 90, "title": "Cost: 43.85 min.", "to": 90, "weight": 121}, {"cost": 566, "from": 90, "title": "Cost: 9.433 min.", "to": 170, "weight": 88}, {"cost": 528, "from": 90, "title": "Cost: 8.8 min.", "to": 166, "weight": 112}, {"cost": 600, "from": 132, "title": "Cost: 10.0 min.", "to": 25, "weight": 83}, {"cost": 1064, "from": 132, "title": "Cost: 17.733 min.", "to": 49, "weight": 89}, {"cost": 4452, "from": 132, "title": "Cost: 74.2 min.", "to": 132, "weight": 208}, {"cost": 1977, "from": 132, "title": "Cost: 32.95 min.", "to": 135, "weight": 232}, {"cost": 667, "from": 132, "title": "Cost: 11.117 min.", "to": 174, "weight": 122}, {"cost": 1578, "from": 132, "title": "Cost: 26.3 min.", "to": 133, "weight": 83}, {"cost": 719, "from": 26, "title": "Cost: 11.983 min.", "to": 57, "weight": 129}, {"cost": 471, "from": 26, "title": "Cost: 7.85 min.", "to": 45, "weight": 92}, {"cost": 532, "from": 57, "title": "Cost: 8.867 min.", "to": 38, "weight": 152}, {"cost": 388, "from": 57, "title": "Cost: 6.467 min.", "to": 31, "weight": 90}, {"cost": 560, "from": 57, "title": "Cost: 9.333 min.", "to": 49, "weight": 88}, {"cost": 513, "from": 57, "title": "Cost: 8.55 min.", "to": 56, "weight": 91}, {"cost": 2580, "from": 57, "title": "Cost: 43.0 min.", "to": 57, "weight": 173}, {"cost": 728, "from": 57, "title": "Cost: 12.133 min.", "to": 73, "weight": 91}, {"cost": 457, "from": 57, "title": "Cost: 7.617 min.", "to": 128, "weight": 114}, {"cost": 650, "from": 57, "title": "Cost: 10.833 min.", "to": 129, "weight": 125}, {"cost": 780, "from": 57, "title": "Cost: 13.0 min.", "to": 135, "weight": 133}, {"cost": 588, "from": 57, "title": "Cost: 9.8 min.", "to": 136, "weight": 110}, {"cost": 475, "from": 57, "title": "Cost: 7.917 min.", "to": 84, "weight": 95}, {"cost": 504, "from": 57, "title": "Cost: 8.4 min.", "to": 133, "weight": 82}, {"cost": 1215, "from": 34, "title": "Cost: 20.25 min.", "to": 135, "weight": 89}, {"cost": 1437, "from": 135, "title": "Cost: 23.95 min.", "to": 38, "weight": 120}, {"cost": 1036, "from": 135, "title": "Cost: 17.267 min.", "to": 45, "weight": 88}, {"cost": 792, "from": 135, "title": "Cost: 13.2 min.", "to": 49, "weight": 207}, {"cost": 557, "from": 135, "title": "Cost: 9.283 min.", "to": 50, "weight": 95}, {"cost": 443, "from": 135, "title": "Cost: 7.383 min.", "to": 51, "weight": 86}, {"cost": 603, "from": 135, "title": "Cost: 10.05 min.", "to": 52, "weight": 123}, {"cost": 706, "from": 135, "title": "Cost: 11.767 min.", "to": 129, "weight": 150}, {"cost": 652, "from": 135, "title": "Cost: 10.867 min.", "to": 133, "weight": 120}, {"cost": 656, "from": 135, "title": "Cost: 10.933 min.", "to": 134, "weight": 98}, {"cost": 803, "from": 135, "title": "Cost: 13.383 min.", "to": 48, "weight": 86}, {"cost": 3385, "from": 135, "title": "Cost: 56.417 min.", "to": 135, "weight": 255}, {"cost": 2089, "from": 38, "title": "Cost: 34.817 min.", "to": 38, "weight": 135}, {"cost": 779, "from": 38, "title": "Cost: 12.983 min.", "to": 129, "weight": 141}, {"cost": 511, "from": 38, "title": "Cost: 8.517 min.", "to": 134, "weight": 87}, {"cost": 607, "from": 38, "title": "Cost: 10.117 min.", "to": 128, "weight": 93}, {"cost": 571, "from": 129, "title": "Cost: 9.517 min.", "to": 45, "weight": 119}, {"cost": 451, "from": 129, "title": "Cost: 7.517 min.", "to": 47, "weight": 155}, {"cost": 599, "from": 129, "title": "Cost: 9.983 min.", "to": 48, "weight": 109}, {"cost": 547, "from": 129, "title": "Cost: 9.117 min.", "to": 49, "weight": 124}, {"cost": 496, "from": 129, "title": "Cost: 8.267 min.", "to": 84, "weight": 95}, {"cost": 2173, "from": 129, "title": "Cost: 36.217 min.", "to": 129, "weight": 103}, {"cost": 393, "from": 129, "title": "Cost: 6.55 min.", "to": 133, "weight": 85}, {"cost": 407, "from": 129, "title": "Cost: 6.783 min.", "to": 134, "weight": 120}, {"cost": 2166, "from": 134, "title": "Cost: 36.1 min.", "to": 134, "weight": 94}, {"cost": 585, "from": 45, "title": "Cost: 9.75 min.", "to": 78, "weight": 91}, {"cost": 603, "from": 78, "title": "Cost: 10.05 min.", "to": 64, "weight": 228}, {"cost": 2234, "from": 78, "title": "Cost: 37.233 min.", "to": 78, "weight": 131}, {"cost": 571, "from": 78, "title": "Cost: 9.517 min.", "to": 86, "weight": 94}, {"cost": 2744, "from": 46, "title": "Cost: 45.733 min.", "to": 46, "weight": 110}, {"cost": 605, "from": 46, "title": "Cost: 10.083 min.", "to": 62, "weight": 93}, {"cost": 2083, "from": 48, "title": "Cost: 34.717 min.", "to": 48, "weight": 167}, {"cost": 641, "from": 48, "title": "Cost: 10.683 min.", "to": 136, "weight": 84}, {"cost": 2411, "from": 49, "title": "Cost: 40.183 min.", "to": 49, "weight": 97}, {"cost": 634, "from": 49, "title": "Cost: 10.567 min.", "to": 128, "weight": 85}, {"cost": 885, "from": 49, "title": "Cost: 14.75 min.", "to": 133, "weight": 103}, {"cost": 2747, "from": 128, "title": "Cost: 45.783 min.", "to": 128, "weight": 114}, {"cost": 487, "from": 128, "title": "Cost: 8.117 min.", "to": 136, "weight": 85}, {"cost": 564, "from": 53, "title": "Cost: 9.4 min.", "to": 83, "weight": 89}, {"cost": 404, "from": 83, "title": "Cost: 6.733 min.", "to": 74, "weight": 104}, {"cost": 1694, "from": 83, "title": "Cost: 28.233 min.", "to": 83, "weight": 97}, {"cost": 704, "from": 83, "title": "Cost: 11.733 min.", "to": 115, "weight": 141}, {"cost": 335, "from": 83, "title": "Cost: 5.583 min.", "to": 126, "weight": 83}, {"cost": 933, "from": 83, "title": "Cost: 15.55 min.", "to": 166, "weight": 84}, {"cost": 569, "from": 83, "title": "Cost: 9.483 min.", "to": 127, "weight": 84}, {"cost": 2407, "from": 56, "title": "Cost: 40.117 min.", "to": 56, "weight": 92}, {"cost": 2270, "from": 73, "title": "Cost: 37.833 min.", "to": 73, "weight": 97}, {"cost": 1187, "from": 73, "title": "Cost: 19.783 min.", "to": 86, "weight": 112}, {"cost": 2624, "from": 58, "title": "Cost: 43.733 min.", "to": 58, "weight": 211}, {"cost": 2730, "from": 59, "title": "Cost: 45.5 min.", "to": 59, "weight": 131}, {"cost": 472, "from": 59, "title": "Cost: 7.867 min.", "to": 131, "weight": 128}, {"cost": 3534, "from": 64, "title": "Cost: 58.9 min.", "to": 64, "weight": 285}, {"cost": 535, "from": 64, "title": "Cost: 8.917 min.", "to": 79, "weight": 99}, {"cost": 549, "from": 64, "title": "Cost: 9.15 min.", "to": 84, "weight": 121}, {"cost": 682, "from": 79, "title": "Cost: 11.367 min.", "to": 74, "weight": 95}, {"cost": 817, "from": 66, "title": "Cost: 13.617 min.", "to": 86, "weight": 85}, {"cost": 2729, "from": 86, "title": "Cost: 45.483 min.", "to": 86, "weight": 105}, {"cost": 876, "from": 86, "title": "Cost: 14.6 min.", "to": 91, "weight": 82}, {"cost": 2261, "from": 74, "title": "Cost: 37.683 min.", "to": 74, "weight": 94}, {"cost": 705, "from": 74, "title": "Cost: 11.75 min.", "to": 82, "weight": 83}, {"cost": 535, "from": 74, "title": "Cost: 8.917 min.", "to": 84, "weight": 85}, {"cost": 606, "from": 82, "title": "Cost: 10.1 min.", "to": 77, "weight": 94}, {"cost": 580, "from": 84, "title": "Cost: 9.667 min.", "to": 75, "weight": 104}, {"cost": 767, "from": 84, "title": "Cost: 12.783 min.", "to": 65, "weight": 103}, {"cost": 417, "from": 84, "title": "Cost: 6.95 min.", "to": 88, "weight": 100}, {"cost": 314, "from": 115, "title": "Cost: 5.233 min.", "to": 105, "weight": 90}, {"cost": 396, "from": 114, "title": "Cost: 6.6 min.", "to": 92, "weight": 85}, {"cost": 429, "from": 114, "title": "Cost: 7.15 min.", "to": 101, "weight": 82}, {"cost": 678, "from": 118, "title": "Cost: 11.3 min.", "to": 164, "weight": 92}, {"cost": 2867, "from": 133, "title": "Cost: 47.783 min.", "to": 133, "weight": 102}, {"cost": 495, "from": 130, "title": "Cost: 8.25 min.", "to": 156, "weight": 96}, {"cost": 2645, "from": 139, "title": "Cost: 44.083 min.", "to": 139, "weight": 94}, {"cost": 486, "from": 139, "title": "Cost: 8.1 min.", "to": 145, "weight": 88}, {"cost": 535, "from": 139, "title": "Cost: 8.917 min.", "to": 154, "weight": 134}, {"cost": 731, "from": 145, "title": "Cost: 12.183 min.", "to": 164, "weight": 93}, {"cost": 596, "from": 164, "title": "Cost: 9.933 min.", "to": 171, "weight": 90}]);
// adding nodes and edges to the graph
data = {nodes: nodes, edges: edges};
var options = {
"configure": {
"enabled": false
},
"edges": {
"color": {
"inherit": true
},
"smooth": {
"enabled": false,
"type": "continuous"
}
},
"interaction": {
"dragNodes": true,
"hideEdgesOnDrag": false,
"hideNodesOnDrag": false
},
"physics": {
"enabled": true,
"stabilization": {
"enabled": true,
"fit": true,
"iterations": 1000,
"onlyDynamicEdges": false,
"updateInterval": 50
}
}
};
network = new vis.Network(container, data, options);
return network;
}
drawGraph();
</script>
</body>
</html>