Skip to content

Commit de33a96

Browse files
committed
rm bogus Nodes (queue)
1 parent 49f0dad commit de33a96

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/algorithms/controllers/AStar.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ export default {
308308
chunker.add(3,
309309
(vis, c_nodes_etc) => {
310310
// remove n, add start and end
311-
vis.array.set(c_nodes_etc, 'BFS');
311+
vis.array.set(c_nodes_etc, algNameStr);
312312
vis.array.assignVariable('n', 2, null);
313313
vis.array.assignVariable('end', 2, end + 1);
314314
vis.array.assignVariable('start', 2, start + 1);

src/algorithms/controllers/dijkstra.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ export default {
280280
chunker.add(3,
281281
(vis, c_nodes_etc) => {
282282
// remove n, add start and end
283-
vis.array.set(c_nodes_etc, 'BFS');
283+
vis.array.set(c_nodes_etc, algNameStr);
284284
vis.array.assignVariable('n', 2, null);
285285
vis.array.assignVariable('end', 2, end + 1);
286286
vis.array.assignVariable('start', 2, start + 1);

0 commit comments

Comments
 (0)