Repository navigation
Commit 8a96072
authored
Fix AttributeError for NQueensProblem in search.ipynb visualization (#1309)
Guard the tree-search visualization helpers (tree_breadth_search_for_vis / tree_depth_search_for_vis) so they work for problems without a graph attribute (e.g. NQueensProblem), fix the tuple unpacking of the visual search results in the NQueens cells, and replace the removed np.float alias with float in plot_NQueens (notebook.py). Fixes #1308.1 parent 814c3d9 commit 8a96072
2 files changed
Lines changed: 18 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1061 | 1061 | | |
1062 | 1062 | | |
1063 | 1063 | | |
1064 | | - | |
| 1064 | + | |
1065 | 1065 | | |
1066 | 1066 | | |
1067 | 1067 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1120 | 1120 | | |
1121 | 1121 | | |
1122 | 1122 | | |
1123 | | - | |
| 1123 | + | |
1124 | 1124 | | |
1125 | 1125 | | |
1126 | 1126 | | |
| |||
1132 | 1132 | | |
1133 | 1133 | | |
1134 | 1134 | | |
1135 | | - | |
| 1135 | + | |
| 1136 | + | |
| 1137 | + | |
| 1138 | + | |
| 1139 | + | |
1136 | 1140 | | |
1137 | 1141 | | |
1138 | 1142 | | |
| |||
1208 | 1212 | | |
1209 | 1213 | | |
1210 | 1214 | | |
1211 | | - | |
| 1215 | + | |
1212 | 1216 | | |
1213 | 1217 | | |
1214 | 1218 | | |
| |||
1220 | 1224 | | |
1221 | 1225 | | |
1222 | 1226 | | |
1223 | | - | |
| 1227 | + | |
| 1228 | + | |
| 1229 | + | |
| 1230 | + | |
1224 | 1231 | | |
1225 | 1232 | | |
1226 | 1233 | | |
| |||
5305 | 5312 | | |
5306 | 5313 | | |
5307 | 5314 | | |
5308 | | - | |
| 5315 | + | |
5309 | 5316 | | |
5310 | 5317 | | |
5311 | 5318 | | |
5312 | 5319 | | |
5313 | 5320 | | |
5314 | | - | |
| 5321 | + | |
| 5322 | + | |
5315 | 5323 | | |
5316 | 5324 | | |
5317 | 5325 | | |
| |||
5361 | 5369 | | |
5362 | 5370 | | |
5363 | 5371 | | |
5364 | | - | |
| 5372 | + | |
5365 | 5373 | | |
5366 | 5374 | | |
5367 | 5375 | | |
5368 | 5376 | | |
5369 | 5377 | | |
5370 | | - | |
| 5378 | + | |
| 5379 | + | |
5371 | 5380 | | |
5372 | 5381 | | |
5373 | 5382 | | |
| |||
0 commit comments