Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
101 changes: 55 additions & 46 deletions MyIA.AI.Notebooks/Search/Part1-Foundations/Search-02c-QuikGraph.ipynb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"cells": [
{
Expand Down Expand Up @@ -132,10 +132,10 @@
"shell.execute_reply": "2026-09-01T13:32:55.025888Z"
},
"papermill": {
"duration": 3.340183,
"end_time": "2026-09-01T13:32:55.045262+00:00",
"duration": 1.631957,
"end_time": "2026-09-01T22:40:15.713132",
"exception": false,
"start_time": "2026-09-01T13:32:51.705079+00:00",
"start_time": "2026-09-01T22:40:14.081175",
"status": "completed"
},
"tags": []
Expand All @@ -150,6 +150,7 @@
" The below script needs to be able to find the current output cell; this is an easy method to get it.\r\n",
" </div>\r\n",
" <script type='text/javascript'>\r\n",

" function timeout(ms, promise) {\r\n",
" return new Promise(function (resolve, reject) {\r\n",
" setTimeout(function () {\r\n",
Expand All @@ -159,7 +160,10 @@
" })\r\n",
" }\r\n",
"\r\n",


"\r\n",

"\r\n",
" if (!rootUrl.endsWith('/')) {\r\n",
" rootUrl = `${rootUrl}/`;\r\n",
Expand All @@ -174,6 +178,7 @@
" headers: {\r\n",
" 'Content-Type': 'text/plain'\r\n",
" },\r\n",

" }));\r\n",
"\r\n",
" if (response.status == 200) {\r\n",
Expand All @@ -185,11 +190,13 @@
" }\r\n",
"}\r\n",
"\r\n",


" .then((root) => {\r\n",
" // use probing to find host url and api resources\r\n",
" // load interactive helpers and language services\r\n",
" let dotnetInteractiveRequire = require.config({\r\n",
" context: '23244.Microsoft.DotNet.Interactive.Http.HttpPort',\r\n",
" context: '23748.Microsoft.DotNet.Interactive.Http.HttpPort',\r\n",
" paths:\r\n",
" {\r\n",
" 'dotnet-interactive': `${root}resources`\r\n",
Expand Down Expand Up @@ -233,11 +240,13 @@
" \r\n",
" \r\n",
" require_script.onload = function() {\r\n",

" };\r\n",
"\r\n",
" document.getElementsByTagName('head')[0].appendChild(require_script);\r\n",
"}\r\n",
"else {\r\n",

"}\r\n",
"\r\n",
" </script>\r\n",
Expand Down Expand Up @@ -286,10 +295,10 @@
"shell.execute_reply": "2026-09-01T13:32:55.155635Z"
},
"papermill": {
"duration": 0.106748,
"end_time": "2026-09-01T13:32:55.156018+00:00",
"duration": 0.049102,
"end_time": "2026-09-01T22:40:15.765234",
"exception": false,
"start_time": "2026-09-01T13:32:55.049270+00:00",
"start_time": "2026-09-01T22:40:15.716132",
"status": "completed"
},
"tags": []
Expand Down Expand Up @@ -418,10 +427,10 @@
"shell.execute_reply": "2026-09-01T13:32:56.388404Z"
},
"papermill": {
"duration": 1.211053,
"end_time": "2026-09-01T13:32:56.388763+00:00",
"duration": 0.371381,
"end_time": "2026-09-01T22:40:16.154469",
"exception": false,
"start_time": "2026-09-01T13:32:55.177710+00:00",
"start_time": "2026-09-01T22:40:15.783088",
"status": "completed"
},
"tags": []
Expand Down Expand Up @@ -523,10 +532,10 @@
"shell.execute_reply": "2026-09-01T13:32:57.029687Z"
},
"papermill": {
"duration": 0.635917,
"end_time": "2026-09-01T13:32:57.029993+00:00",
"duration": 0.20453,
"end_time": "2026-09-01T22:40:16.362998",
"exception": false,
"start_time": "2026-09-01T13:32:56.394076+00:00",
"start_time": "2026-09-01T22:40:16.158468",
"status": "completed"
},
"tags": []
Expand Down Expand Up @@ -648,10 +657,10 @@
"shell.execute_reply": "2026-09-01T13:32:57.363419Z"
},
"papermill": {
"duration": 0.318586,
"end_time": "2026-09-01T13:32:57.364064+00:00",
"duration": 0.079237,
"end_time": "2026-09-01T22:40:16.460698",
"exception": false,
"start_time": "2026-09-01T13:32:57.045478+00:00",
"start_time": "2026-09-01T22:40:16.381461",
"status": "completed"
},
"tags": []
Expand Down Expand Up @@ -715,10 +724,10 @@
"shell.execute_reply": "2026-09-01T13:32:57.612585Z"
},
"papermill": {
"duration": 0.240172,
"end_time": "2026-09-01T13:32:57.612884+00:00",
"duration": 0.067557,
"end_time": "2026-09-01T22:40:16.531755",
"exception": false,
"start_time": "2026-09-01T13:32:57.372712+00:00",
"start_time": "2026-09-01T22:40:16.464198",
"status": "completed"
},
"tags": []
Expand Down Expand Up @@ -820,10 +829,10 @@
"shell.execute_reply": "2026-09-01T13:32:57.928334Z"
},
"papermill": {
"duration": 0.296306,
"end_time": "2026-09-01T13:32:57.928753+00:00",
"duration": 0.143777,
"end_time": "2026-09-01T22:40:16.686043",
"exception": false,
"start_time": "2026-09-01T13:32:57.632447+00:00",
"start_time": "2026-09-01T22:40:16.542266",
"status": "completed"
},
"tags": []
Expand Down Expand Up @@ -885,7 +894,7 @@
"// illustrer la CONDITION D'OPTIMALITE de Dijkstra — pour chaque sommet v, son predecesseur\n",
"// est l'unique voisin u tel que GetDistance(u) + poids(u, v) = GetDistance(v). C'est le seul\n",
"// site de la serie a rester manuel ; les autres utilisent l'observateur canonique\n",
"// VertexPredecessorRecorderObserver (cell 17 de ce notebook, Search-15 cell 14, Search-3\n",
"// VertexPredecessorRecorderObserver (cell 17 de ce notebook, Search-02b-NetworkX-Csharp cell 14, Search-3\n",
"// cell 16, Search-2 cell 38), qui encapsule exactement cette condition.\n",
"\n",
"var dijkstra = new DijkstraShortestPathAlgorithm<string, STaggedEdge<string, double>>(\n",
Expand Down Expand Up @@ -917,7 +926,7 @@
" courant = suivant;\n",
" }\n",
" Console.WriteLine($\" {v} : {dist:F2} km ({chemin})\");\n",
"}\n"
"}"
]
},
{
Expand Down Expand Up @@ -953,10 +962,10 @@
"shell.execute_reply": "2026-09-01T13:32:58.510605Z"
},
"papermill": {
"duration": 0.557912,
"end_time": "2026-09-01T13:32:58.511118+00:00",
"duration": 0.143774,
"end_time": "2026-09-01T22:40:16.845671",
"exception": false,
"start_time": "2026-09-01T13:32:57.953206+00:00",
"start_time": "2026-09-01T22:40:16.701897",
"status": "completed"
},
"tags": []
Expand Down Expand Up @@ -1127,10 +1136,10 @@
"shell.execute_reply": "2026-09-01T13:32:59.007302Z"
},
"papermill": {
"duration": 0.448339,
"end_time": "2026-09-01T13:32:59.008334+00:00",
"duration": 0.10034,
"end_time": "2026-09-01T22:40:16.966054",
"exception": false,
"start_time": "2026-09-01T13:32:58.559995+00:00",
"start_time": "2026-09-01T22:40:16.865714",
"status": "completed"
},
"tags": []
Expand Down Expand Up @@ -1348,10 +1357,10 @@
"shell.execute_reply": "2026-09-01T13:32:59.340245Z"
},
"papermill": {
"duration": 0.301549,
"end_time": "2026-09-01T13:32:59.340624+00:00",
"duration": 0.095546,
"end_time": "2026-09-01T22:40:17.073046",
"exception": false,
"start_time": "2026-09-01T13:32:59.039075+00:00",
"start_time": "2026-09-01T22:40:16.977500",
"status": "completed"
},
"tags": []
Expand Down Expand Up @@ -1508,10 +1517,10 @@
"shell.execute_reply": "2026-09-01T13:33:00.041010Z"
},
"papermill": {
"duration": 0.679913,
"end_time": "2026-09-01T13:33:00.041337+00:00",
"duration": 0.150608,
"end_time": "2026-09-01T22:40:17.238660",
"exception": false,
"start_time": "2026-09-01T13:32:59.361424+00:00",
"start_time": "2026-09-01T22:40:17.088052",
"status": "completed"
},
"tags": []
Expand Down Expand Up @@ -1747,10 +1756,10 @@
"shell.execute_reply": "2026-09-01T13:33:00.265426Z"
},
"papermill": {
"duration": 0.199787,
"end_time": "2026-09-01T13:33:00.265718+00:00",
"duration": 0.036303,
"end_time": "2026-09-01T22:40:17.297003",
"exception": false,
"start_time": "2026-09-01T13:33:00.065931+00:00",
"start_time": "2026-09-01T22:40:17.260700",
"status": "completed"
},
"tags": []
Expand Down Expand Up @@ -1817,10 +1826,10 @@
"shell.execute_reply": "2026-09-01T13:33:00.341512Z"
},
"papermill": {
"duration": 0.059949,
"end_time": "2026-09-01T13:33:00.341873+00:00",
"duration": 0.02621,
"end_time": "2026-09-01T22:40:17.337794",
"exception": false,
"start_time": "2026-09-01T13:33:00.281924+00:00",
"start_time": "2026-09-01T22:40:17.311584",
"status": "completed"
},
"tags": []
Expand Down Expand Up @@ -1887,10 +1896,10 @@
"shell.execute_reply": "2026-09-01T13:33:00.469509Z"
},
"papermill": {
"duration": 0.105263,
"end_time": "2026-09-01T13:33:00.469982+00:00",
"duration": 0.027985,
"end_time": "2026-09-01T22:40:17.378598",
"exception": false,
"start_time": "2026-09-01T13:33:00.364719+00:00",
"start_time": "2026-09-01T22:40:17.350613",
"status": "completed"
},
"tags": []
Expand Down Expand Up @@ -1941,4 +1950,4 @@
},
"nbformat": 4,
"nbformat_minor": 5
}
}
Loading
Loading