Skip to content

Commit a37e08d

Browse files
authored
Update graphs challenges to add connected constraint (donnemartin#151)
1 parent 7884146 commit a37e08d

8 files changed

+24
-8
lines changed

Diff for: graphs_trees/graph/graph_challenge.ipynb

+3-1
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@
4444
" * Yes\n",
4545
"* If we try to delete a node that doesn't exist, do we just do nothing?\n",
4646
" * Yes\n",
47+
"* Can we assume this is a connected graph?\n",
48+
" * Yes\n",
4749
"* Can we assume the inputs are valid?\n",
4850
" * Yes\n",
4951
"* Can we assume this fits memory?\n",
@@ -278,7 +280,7 @@
278280
"name": "python",
279281
"nbconvert_exporter": "python",
280282
"pygments_lexer": "ipython3",
281-
"version": "3.5.0"
283+
"version": "3.4.3"
282284
}
283285
},
284286
"nbformat": 4,

Diff for: graphs_trees/graph/graph_solution.ipynb

+3-1
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@
4343
" * Yes\n",
4444
"* If we try to delete a node that doesn't exist, do we just do nothing?\n",
4545
" * Yes\n",
46+
"* Can we assume this is a connected graph?\n",
47+
" * Yes\n",
4648
"* Can we assume the inputs are valid?\n",
4749
" * Yes\n",
4850
"* Can we assume this fits memory?\n",
@@ -383,7 +385,7 @@
383385
"name": "python",
384386
"nbconvert_exporter": "python",
385387
"pygments_lexer": "ipython3",
386-
"version": "3.5.0"
388+
"version": "3.4.3"
387389
}
388390
},
389391
"nbformat": 4,

Diff for: graphs_trees/graph_bfs/bfs_challenge.ipynb

+3-1
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@
3838
" * Yes\n",
3939
"* Can we assume we already have Graph and Node classes?\n",
4040
" * Yes\n",
41+
"* Can we assume this is a connected graph?\n",
42+
" * Yes\n",
4143
"* Can we assume the inputs are valid?\n",
4244
" * Yes\n",
4345
"* Can we assume this fits memory?\n",
@@ -206,7 +208,7 @@
206208
"name": "python",
207209
"nbconvert_exporter": "python",
208210
"pygments_lexer": "ipython3",
209-
"version": "3.5.0"
211+
"version": "3.4.3"
210212
}
211213
},
212214
"nbformat": 4,

Diff for: graphs_trees/graph_bfs/bfs_solution.ipynb

+3-1
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@
3737
" * Yes\n",
3838
"* Can we assume we already have Graph and Node classes?\n",
3939
" * Yes\n",
40+
"* Can we assume this is a connected graph?\n",
41+
" * Yes\n",
4042
"* Can we assume the inputs are valid?\n",
4143
" * Yes\n",
4244
"* Can we assume this fits memory?\n",
@@ -244,7 +246,7 @@
244246
"name": "python",
245247
"nbconvert_exporter": "python",
246248
"pygments_lexer": "ipython3",
247-
"version": "3.5.0"
249+
"version": "3.4.3"
248250
}
249251
},
250252
"nbformat": 4,

Diff for: graphs_trees/graph_dfs/dfs_challenge.ipynb

+3-1
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@
3838
" * Yes\n",
3939
"* Can we assume we already have Graph and Node classes?\n",
4040
" * Yes\n",
41+
"* Can we assume this is a connected graph?\n",
42+
" * Yes\n",
4143
"* Can we assume the inputs are valid?\n",
4244
" * Yes\n",
4345
"* Can we assume this fits memory?\n",
@@ -207,7 +209,7 @@
207209
"name": "python",
208210
"nbconvert_exporter": "python",
209211
"pygments_lexer": "ipython3",
210-
"version": "3.5.0"
212+
"version": "3.4.3"
211213
}
212214
},
213215
"nbformat": 4,

Diff for: graphs_trees/graph_dfs/dfs_solution.ipynb

+3-1
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@
3737
" * Yes\n",
3838
"* Can we assume we already have Graph and Node classes?\n",
3939
" * Yes\n",
40+
"* Can we assume this is a connected graph?\n",
41+
" * Yes\n",
4042
"* Can we assume the inputs are valid?\n",
4143
" * Yes\n",
4244
"* Can we assume this fits memory?\n",
@@ -229,7 +231,7 @@
229231
"name": "python",
230232
"nbconvert_exporter": "python",
231233
"pygments_lexer": "ipython3",
232-
"version": "3.5.0"
234+
"version": "3.4.3"
233235
}
234236
},
235237
"nbformat": 4,

Diff for: graphs_trees/graph_path_exists/path_exists_challenge.ipynb

+3-1
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@
3838
" * Yes\n",
3939
"* Can we assume we already have Graph and Node classes?\n",
4040
" * Yes\n",
41+
"* Can we assume this is a connected graph?\n",
42+
" * Yes\n",
4143
"* Can we assume the inputs are valid?\n",
4244
" * Yes\n",
4345
"* Can we assume this fits memory?\n",
@@ -197,7 +199,7 @@
197199
"name": "python",
198200
"nbconvert_exporter": "python",
199201
"pygments_lexer": "ipython3",
200-
"version": "3.5.0"
202+
"version": "3.4.3"
201203
}
202204
},
203205
"nbformat": 4,

Diff for: graphs_trees/graph_path_exists/path_exists_solution.ipynb

+3-1
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@
3737
" * Yes\n",
3838
"* Can we assume we already have Graph and Node classes?\n",
3939
" * Yes\n",
40+
"* Can we assume this is a connected graph?\n",
41+
" * Yes\n",
4042
"* Can we assume the inputs are valid?\n",
4143
" * Yes\n",
4244
"* Can we assume this fits memory?\n",
@@ -240,7 +242,7 @@
240242
"name": "python",
241243
"nbconvert_exporter": "python",
242244
"pygments_lexer": "ipython3",
243-
"version": "3.5.0"
245+
"version": "3.4.3"
244246
}
245247
},
246248
"nbformat": 4,

0 commit comments

Comments
 (0)