Skip to content

Commit 75f54f4

Browse files
committed
Added networkx tutorial
1 parent fad4247 commit 75f54f4

File tree

3 files changed

+906
-324
lines changed

3 files changed

+906
-324
lines changed

docs/source/examples/basic-examples.ipynb

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
{
2525
"data": {
2626
"application/vnd.jupyter.widget-view+json": {
27-
"model_id": "0e729f99cbb042f1a5417fdf3da28d55",
27+
"model_id": "d7320c8630754ffba4db333c0191d038",
2828
"version_major": 2,
2929
"version_minor": 0
3030
},
@@ -65,7 +65,7 @@
6565
{
6666
"data": {
6767
"application/vnd.jupyter.widget-view+json": {
68-
"model_id": "15fba247dc2547e2b0f7d43c89d0d95d",
68+
"model_id": "3d3b3baa21644054956157ce1ae531a5",
6969
"version_major": 2,
7070
"version_minor": 0
7171
},
@@ -86,7 +86,7 @@
8686
"\n",
8787
"canvas.pause(0.5)\n",
8888
"\n",
89-
"canvas.node(1).highlight(1.0).size('1.25x').pause(0.5)\n",
89+
"canvas.node(1).highlight().size('1.25x').pause(0.5)\n",
9090
"canvas.edge((1, 2)).traverse().color('blue')\n",
9191
"\n",
9292
"canvas"
@@ -109,7 +109,7 @@
109109
{
110110
"data": {
111111
"application/vnd.jupyter.widget-view+json": {
112-
"model_id": "596c099ad4ff4fc0941bcb02f65c9d86",
112+
"model_id": "6d702cf0a0bc4a85b51f8ed05488ebd6",
113113
"version_major": 2,
114114
"version_minor": 0
115115
},
@@ -160,22 +160,13 @@
160160
"widgets": {
161161
"application/vnd.jupyter.widget-state+json": {
162162
"state": {
163-
"0e729f99cbb042f1a5417fdf3da28d55": {
164-
"model_module": "algorithmx-jupyter",
165-
"model_module_version": "^2.0.0",
166-
"model_name": "AlgorithmxModel",
167-
"state": {
168-
"_model_module_version": "^2.0.0",
169-
"_view_module_version": "^2.0.0",
170-
"events": [
171-
"{\"type\": \"update\", \"queue\": \"default\", \"data\": {\"attributes\": {\"size\": [300, 200]}, \"animation\": {}}}",
172-
"{\"type\": \"update\", \"queue\": \"default\", \"data\": {\"attributes\": {\"nodes\": {\"1\": {\"visible\": true}, \"2\": {\"visible\": true}}}, \"animation\": {}}}",
173-
"{\"type\": \"update\", \"queue\": \"default\", \"data\": {\"attributes\": {\"edges\": {\"1-2\": {\"visible\": true, \"source\": \"1\", \"target\": \"2\"}}}, \"animation\": {}}}"
174-
],
175-
"layout": "IPY_MODEL_6247c4fb9ad944938689c279a22a04bc"
176-
}
163+
"15f7ac161f1b47a6ab17277101697d37": {
164+
"model_module": "@jupyter-widgets/base",
165+
"model_module_version": "1.1.0",
166+
"model_name": "LayoutModel",
167+
"state": {}
177168
},
178-
"15fba247dc2547e2b0f7d43c89d0d95d": {
169+
"3d3b3baa21644054956157ce1ae531a5": {
179170
"model_module": "algorithmx-jupyter",
180171
"model_module_version": "^2.0.0",
181172
"model_name": "AlgorithmxModel",
@@ -187,15 +178,15 @@
187178
"{\"type\": \"update\", \"queue\": \"default\", \"data\": {\"attributes\": {\"nodes\": {\"1\": {\"visible\": true}, \"2\": {\"visible\": true}}}, \"animation\": {}}}",
188179
"{\"type\": \"update\", \"queue\": \"default\", \"data\": {\"attributes\": {\"edges\": {\"1-2\": {\"visible\": true, \"source\": \"1\", \"target\": \"2\"}}}, \"animation\": {}}}",
189180
"{\"type\": \"pause\", \"queue\": \"default\", \"data\": {\"duration\": 0.5}}",
190-
"{\"type\": \"highlight\", \"queue\": \"default\", \"data\": {\"attributes\": {\"nodes\": {\"1\": {\"size\": \"1.25x\"}}}, \"animation\": {\"**\": {\"linger\": 1.0}}}}",
181+
"{\"type\": \"highlight\", \"queue\": \"default\", \"data\": {\"attributes\": {\"nodes\": {\"1\": {\"size\": \"1.25x\"}}}, \"animation\": {}}}",
191182
"{\"type\": \"pause\", \"queue\": \"default\", \"data\": {\"duration\": 0.5}}",
192183
"{\"type\": \"update\", \"queue\": \"default\", \"data\": {\"attributes\": {\"edges\": {\"1-2\": {\"color\": \"blue\"}}}, \"animation\": {\"edges\": {\"1-2\": {\"**\": {\"type\": \"traverse\", \"data\": {\"source\": \"1\"}}}}}}}"
193184
],
194-
"layout": "IPY_MODEL_8f25a8fb45f042ffbc6e84fff2de7485",
185+
"layout": "IPY_MODEL_a171db688a63452081bd4370c1e1a088",
195186
"show_buttons": true
196187
}
197188
},
198-
"596c099ad4ff4fc0941bcb02f65c9d86": {
189+
"6d702cf0a0bc4a85b51f8ed05488ebd6": {
199190
"model_module": "algorithmx-jupyter",
200191
"model_module_version": "^2.0.0",
201192
"model_name": "AlgorithmxModel",
@@ -241,27 +232,36 @@
241232
"{\"type\": \"pause\", \"queue\": \"default\", \"data\": {\"duration\": 0.5}}",
242233
"{\"type\": \"update\", \"queue\": \"default\", \"data\": {\"attributes\": {\"edges\": {\"7-8\": {\"color\": \"green\"}}}, \"animation\": {\"edges\": {\"7-8\": {\"**\": {\"type\": \"traverse\", \"data\": {\"source\": \"7\"}}}}}}}"
243234
],
244-
"layout": "IPY_MODEL_98dfe61c1a7c44a899664e2083f73dd2",
235+
"layout": "IPY_MODEL_15f7ac161f1b47a6ab17277101697d37",
245236
"show_buttons": true
246237
}
247238
},
248-
"6247c4fb9ad944938689c279a22a04bc": {
239+
"92fedf352f32470a9ac6964f57a40bb7": {
249240
"model_module": "@jupyter-widgets/base",
250241
"model_module_version": "1.1.0",
251242
"model_name": "LayoutModel",
252243
"state": {}
253244
},
254-
"8f25a8fb45f042ffbc6e84fff2de7485": {
245+
"a171db688a63452081bd4370c1e1a088": {
255246
"model_module": "@jupyter-widgets/base",
256247
"model_module_version": "1.1.0",
257248
"model_name": "LayoutModel",
258249
"state": {}
259250
},
260-
"98dfe61c1a7c44a899664e2083f73dd2": {
261-
"model_module": "@jupyter-widgets/base",
262-
"model_module_version": "1.1.0",
263-
"model_name": "LayoutModel",
264-
"state": {}
251+
"d7320c8630754ffba4db333c0191d038": {
252+
"model_module": "algorithmx-jupyter",
253+
"model_module_version": "^2.0.0",
254+
"model_name": "AlgorithmxModel",
255+
"state": {
256+
"_model_module_version": "^2.0.0",
257+
"_view_module_version": "^2.0.0",
258+
"events": [
259+
"{\"type\": \"update\", \"queue\": \"default\", \"data\": {\"attributes\": {\"size\": [300, 200]}, \"animation\": {}}}",
260+
"{\"type\": \"update\", \"queue\": \"default\", \"data\": {\"attributes\": {\"nodes\": {\"1\": {\"visible\": true}, \"2\": {\"visible\": true}}}, \"animation\": {}}}",
261+
"{\"type\": \"update\", \"queue\": \"default\", \"data\": {\"attributes\": {\"edges\": {\"1-2\": {\"visible\": true, \"source\": \"1\", \"target\": \"2\"}}}, \"animation\": {}}}"
262+
],
263+
"layout": "IPY_MODEL_92fedf352f32470a9ac6964f57a40bb7"
264+
}
265265
}
266266
},
267267
"version_major": 2,

0 commit comments

Comments
 (0)