|
11 | 11 | },
|
12 | 12 | {
|
13 | 13 | "cell_type": "code",
|
14 |
| - "execution_count": 16, |
| 14 | + "execution_count": 25, |
15 | 15 | "metadata": {},
|
16 | 16 | "outputs": [
|
17 | 17 | {
|
18 |
| - "ename": "SyntaxError", |
19 |
| - "evalue": "Identifier 'Vertex' has already been declared", |
20 |
| - "output_type": "error", |
21 |
| - "traceback": [ |
22 |
| - "evalmachine.<anonymous>:1", |
23 |
| - "\"use strict\";", |
24 |
| - "^", |
25 |
| - "", |
26 |
| - "SyntaxError: Identifier 'Vertex' has already been declared", |
27 |
| - " at evalmachine.<anonymous>:1:1", |
28 |
| - " at ContextifyScript.Script.runInThisContext (vm.js:50:33)", |
29 |
| - " at Object.runInThisContext (vm.js:139:38)", |
30 |
| - " at run ([eval]:1002:15)", |
31 |
| - " at onRunRequest ([eval]:829:18)", |
32 |
| - " at onMessage ([eval]:789:13)", |
33 |
| - " at emitTwo (events.js:126:13)", |
34 |
| - " at process.emit (events.js:214:7)", |
35 |
| - " at emit (internal/child_process.js:772:12)", |
36 |
| - " at _combinedTickCallback (internal/process/next_tick.js:141:11)" |
37 |
| - ] |
| 18 | + "data": { |
| 19 | + "text/plain": [ |
| 20 | + "[Function]" |
| 21 | + ] |
| 22 | + }, |
| 23 | + "execution_count": 25, |
| 24 | + "metadata": {}, |
| 25 | + "output_type": "execute_result" |
38 | 26 | }
|
39 | 27 | ],
|
40 | 28 | "source": [
|
|
251 | 239 | },
|
252 | 240 | {
|
253 | 241 | "cell_type": "code",
|
254 |
| - "execution_count": 17, |
| 242 | + "execution_count": 26, |
255 | 243 | "metadata": {},
|
256 | 244 | "outputs": [
|
257 | 245 | {
|
258 | 246 | "name": "stdout",
|
259 | 247 | "output_type": "stream",
|
260 | 248 | "text": [
|
261 | 249 | "Path:\n",
|
262 |
| - "[ Vertex {\n", |
263 |
| - " id: 1203,\n", |
264 |
| - " neighbors: Set { [Object] },\n", |
265 |
| - " edges: Set { [Object] } },\n", |
| 250 | + "[ Vertex { id: 0, neighbors: Set { [Object] }, edges: Set { [Object] } },\n", |
266 | 251 | " Vertex {\n",
|
267 |
| - " id: 1204,\n", |
| 252 | + " id: 1,\n", |
268 | 253 | " neighbors: Set { [Object], [Object] },\n",
|
269 | 254 | " edges: Set { [Object], [Object] } },\n",
|
270 |
| - " Vertex {\n", |
271 |
| - " id: 1205,\n", |
272 |
| - " neighbors: Set { [Object] },\n", |
273 |
| - " edges: Set { [Object] } } ]\n" |
| 255 | + " Vertex { id: 2, neighbors: Set { [Object] }, edges: Set { [Object] } } ]\n" |
274 | 256 | ]
|
275 | 257 | }
|
276 | 258 | ],
|
|
297 | 279 | },
|
298 | 280 | {
|
299 | 281 | "cell_type": "code",
|
300 |
| - "execution_count": 24, |
| 282 | + "execution_count": 27, |
301 | 283 | "metadata": {},
|
302 | 284 | "outputs": [
|
303 | 285 | {
|
304 | 286 | "name": "stdout",
|
305 | 287 | "output_type": "stream",
|
306 | 288 | "text": [
|
307 | 289 | "3\n",
|
308 |
| - "100 100 8\n", |
| 290 | + "100 100 0\n", |
309 | 291 | "100 200 6\n",
|
310 | 292 | "100 500 3\n",
|
311 | 293 | "100 1000 4\n",
|
312 |
| - "100 5000 3\n", |
313 |
| - "100 10000 3\n", |
| 294 | + "100 5000 2\n", |
| 295 | + "100 10000 2\n", |
314 | 296 | "100 100000 2\n"
|
315 | 297 | ]
|
316 | 298 | }
|
|
0 commit comments