Skip to content

Commit 056dba8

Browse files
authoredApr 13, 2018
Add files via upload
1 parent f0c2c38 commit 056dba8

File tree

1 file changed

+17
-35
lines changed

1 file changed

+17
-35
lines changed
 

‎A_Star.ipynb

+17-35
Original file line numberDiff line numberDiff line change
@@ -11,30 +11,18 @@
1111
},
1212
{
1313
"cell_type": "code",
14-
"execution_count": 16,
14+
"execution_count": 25,
1515
"metadata": {},
1616
"outputs": [
1717
{
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"
3826
}
3927
],
4028
"source": [
@@ -251,26 +239,20 @@
251239
},
252240
{
253241
"cell_type": "code",
254-
"execution_count": 17,
242+
"execution_count": 26,
255243
"metadata": {},
256244
"outputs": [
257245
{
258246
"name": "stdout",
259247
"output_type": "stream",
260248
"text": [
261249
"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",
266251
" Vertex {\n",
267-
" id: 1204,\n",
252+
" id: 1,\n",
268253
" neighbors: Set { [Object], [Object] },\n",
269254
" 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"
274256
]
275257
}
276258
],
@@ -297,20 +279,20 @@
297279
},
298280
{
299281
"cell_type": "code",
300-
"execution_count": 24,
282+
"execution_count": 27,
301283
"metadata": {},
302284
"outputs": [
303285
{
304286
"name": "stdout",
305287
"output_type": "stream",
306288
"text": [
307289
"3\n",
308-
"100 100 8\n",
290+
"100 100 0\n",
309291
"100 200 6\n",
310292
"100 500 3\n",
311293
"100 1000 4\n",
312-
"100 5000 3\n",
313-
"100 10000 3\n",
294+
"100 5000 2\n",
295+
"100 10000 2\n",
314296
"100 100000 2\n"
315297
]
316298
}

0 commit comments

Comments
 (0)
Please sign in to comment.