-
Notifications
You must be signed in to change notification settings - Fork 1
/
slugraph.js
179 lines (175 loc) · 4.13 KB
/
slugraph.js
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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
var AdjList = require('./graph').AdjList;
var adjlist = new AdjList(106);
adjlist.init();
adjlist.addEdge(1,2);
adjlist.addEdge(1,15);
adjlist.addEdge(2,3);
adjlist.addEdge(2,15);
adjlist.addEdge(3,4);
adjlist.addEdge(3,17);
adjlist.addEdge(4,5);
adjlist.addEdge(4,16);
adjlist.addEdge(4,18);
adjlist.addEdge(5,6);
adjlist.addEdge(5,20);
adjlist.addEdge(6,7);
adjlist.addEdge(6,22);
adjlist.addEdge(7,8);
adjlist.addEdge(7,24);
adjlist.addEdge(8,9);
adjlist.addEdge(8,10);
adjlist.addEdge(10,11);
adjlist.addEdge(10,26);
adjlist.addEdge(11,12);
adjlist.addEdge(11,27);
adjlist.addEdge(12,13);
adjlist.addEdge(12,14);
adjlist.addEdge(14,29);
adjlist.addEdge(15,31);
adjlist.addEdge(16,34);
adjlist.addEdge(16,35);
adjlist.addEdge(17,18);
adjlist.addEdge(17,36);
adjlist.addEdge(18,19);
adjlist.addEdge(18,37);
adjlist.addEdge(19,20);
adjlist.addEdge(19,38);
adjlist.addEdge(20,21);
adjlist.addEdge(20,39);
adjlist.addEdge(21,22);
adjlist.addEdge(21,40);
adjlist.addEdge(22,23);
adjlist.addEdge(22,41);
adjlist.addEdge(23,24);
adjlist.addEdge(23,42);
adjlist.addEdge(24,25);
adjlist.addEdge(24,43);
adjlist.addEdge(25,26);
adjlist.addEdge(25,44);
adjlist.addEdge(26,28);
adjlist.addEdge(26,106);
adjlist.addEdge(27,28);
adjlist.addEdge(28,29);
adjlist.addEdge(28,45);
adjlist.addEdge(29,46);
adjlist.addEdge(30,31);
adjlist.addEdge(31,32);
adjlist.addEdge(31,47);
adjlist.addEdge(32,33);
adjlist.addEdge(32,48);
adjlist.addEdge(33,34);
adjlist.addEdge(33,35);
adjlist.addEdge(33,48);
adjlist.addEdge(34,35);
adjlist.addEdge(35,51);
adjlist.addEdge(36,37);
adjlist.addEdge(36,52);
adjlist.addEdge(37,38);
adjlist.addEdge(37,54);
adjlist.addEdge(38,39);
adjlist.addEdge(38,55);
adjlist.addEdge(39,40);
adjlist.addEdge(39,56);
adjlist.addEdge(40,41);
adjlist.addEdge(40,57);
adjlist.addEdge(41,42);
adjlist.addEdge(41,58);
adjlist.addEdge(42,59);
adjlist.addEdge(42,43);
adjlist.addEdge(43,44);
adjlist.addEdge(43,60);
adjlist.addEdge(44,106);
adjlist.addEdge(44,61);
adjlist.addEdge(106,45);
adjlist.addEdge(106,62);
adjlist.addEdge(45,46);
adjlist.addEdge(45,63);
adjlist.addEdge(46,64);
adjlist.addEdge(47,48);
adjlist.addEdge(47,49);
adjlist.addEdge(47,68);
adjlist.addEdge(47,69);
adjlist.addEdge(49,50);
adjlist.addEdge(49,71);
adjlist.addEdge(50,51);
adjlist.addEdge(50,72);
adjlist.addEdge(51,73);
adjlist.addEdge(52,53);
adjlist.addEdge(52,74);
adjlist.addEdge(53,54);
adjlist.addEdge(53,75);
adjlist.addEdge(54,55);
adjlist.addEdge(54,76);
adjlist.addEdge(55,56);
adjlist.addEdge(55,77);
adjlist.addEdge(56,57);
adjlist.addEdge(56,78);
adjlist.addEdge(57,58);
adjlist.addEdge(57,79);
adjlist.addEdge(58,59);
adjlist.addEdge(58,80);
adjlist.addEdge(59,60);
adjlist.addEdge(59,81);
adjlist.addEdge(60,61);
adjlist.addEdge(60,82);
adjlist.addEdge(61,62);
adjlist.addEdge(62,63);
adjlist.addEdge(62,84);
adjlist.addEdge(63,64);
adjlist.addEdge(63,86);
adjlist.addEdge(64,87);
adjlist.addEdge(65,66);
adjlist.addEdge(65,88);
adjlist.addEdge(66,89);
adjlist.addEdge(67,68);
adjlist.addEdge(68,69);
adjlist.addEdge(68,90);
adjlist.addEdge(68,91);
adjlist.addEdge(69,105);
adjlist.addEdge(69,92);
adjlist.addEdge(70,105);
adjlist.addEdge(105,71);
adjlist.addEdge(105,93);
adjlist.addEdge(71,72);
adjlist.addEdge(71,94);
adjlist.addEdge(72,73);
adjlist.addEdge(73,74);
adjlist.addEdge(73,95);
adjlist.addEdge(74,75);
adjlist.addEdge(74,96);
adjlist.addEdge(75,76);
adjlist.addEdge(75,97);
adjlist.addEdge(76,77);
adjlist.addEdge(76,97);
adjlist.addEdge(77,78);
adjlist.addEdge(78,79);
adjlist.addEdge(79,80);
adjlist.addEdge(80,99);
adjlist.addEdge(80,81);
adjlist.addEdge(81,82);
adjlist.addEdge(82,83);
adjlist.addEdge(82,100);
adjlist.addEdge(83,84);
adjlist.addEdge(83,101);
adjlist.addEdge(84,102);
adjlist.addEdge(85,86);
adjlist.addEdge(86,87);
adjlist.addEdge(86,103);
adjlist.addEdge(87,104);
adjlist.addEdge(88,89);
adjlist.addEdge(89,90);
adjlist.addEdge(90,91);
adjlist.addEdge(91,92);
adjlist.addEdge(92,93);
adjlist.addEdge(93,94);
adjlist.addEdge(94,95);
adjlist.addEdge(95,96);
adjlist.addEdge(96,98);
adjlist.addEdge(97,98);
adjlist.addEdge(98,99);
adjlist.addEdge(99,100);
adjlist.addEdge(100,101);
adjlist.addEdge(101,102);
adjlist.addEdge(102,103);
adjlist.addEdge(103,104);
module.exports.SLUgraph = adjlist;