Skip to content

Commit 5f49288

Browse files
Liam JonesLiam Jones
authored andcommitted
fix graph pseudocode
1 parent 6f7415e commit 5f49288

File tree

7 files changed

+7
-7
lines changed

7 files changed

+7
-7
lines changed

src/algo/BFS.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ export default class BFS extends Graph {
150150

151151
this.codeID = this.addCodeToCanvasBase(this.code, CODE_START_X, CODE_START_Y);
152152

153-
this.animationManager.setAllLayers([0, this.currentLayer]);
153+
this.animationManager.setAllLayers([0, 32, this.currentLayer]);
154154
this.animationManager.startNewAnimation(this.commands);
155155
this.animationManager.skipForward();
156156
this.animationManager.clearHistory();

src/algo/DFS.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ export default class DFS extends Graph {
191191
this.codeID = this.addCodeToCanvasBase(this.recCode, CODE_START_X, CODE_START_Y);
192192
}
193193

194-
this.animationManager.setAllLayers([0, this.currentLayer]);
194+
this.animationManager.setAllLayers([0, 32, this.currentLayer]);
195195
this.animationManager.startNewAnimation(this.commands);
196196
this.animationManager.skipForward();
197197
this.animationManager.clearHistory();

src/algo/Dijkstras.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ export default class Dijkstras extends Graph {
181181
TABLE_START_Y - SMALL_TABLE_ENTRY_HEIGHT,
182182
);
183183

184-
this.animationManager.setAllLayers([0, this.currentLayer]);
184+
this.animationManager.setAllLayers([0, 32, this.currentLayer]);
185185
this.animationManager.startNewAnimation(this.commands);
186186
this.animationManager.skipForward();
187187
this.animationManager.clearHistory();

src/algo/Floyd.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ export default class Floyd extends Graph {
101101
smallGraphCallback() {
102102
if (this.size !== SMALL_SIZE) {
103103
this.animationManager.resetAll();
104-
this.animationManager.setAllLayers([0, this.currentLayer]);
104+
this.animationManager.setAllLayers([0, 32, this.currentLayer]);
105105
this.logicalButton.disabled = false;
106106
this.adjacencyListButton.disabled = false;
107107
this.adjacencyMatrixButton.disabled = false;

src/algo/Graph.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -522,7 +522,7 @@ export default class Graph extends Algorithm {
522522

523523
this.buildAdjMatrix();
524524

525-
this.animationManager.setAllLayers([0, this.currentLayer]);
525+
this.animationManager.setAllLayers([0, 32, this.currentLayer]);
526526
this.animationManager.startNewAnimation(this.commands);
527527
this.animationManager.skipForward();
528528
this.animationManager.clearHistory();

src/algo/Kruskals.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ export default class Kruskals extends Graph {
168168

169169
this.codeID = this.addCodeToCanvasBase(this.code, CODE_START_X, CODE_START_Y);
170170

171-
this.animationManager.setAllLayers([0, this.currentLayer]);
171+
this.animationManager.setAllLayers([0, 32, this.currentLayer]);
172172
this.animationManager.startNewAnimation(this.commands);
173173
this.animationManager.skipForward();
174174
this.animationManager.clearHistory();

src/algo/Prims.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ export default class Prims extends Graph {
139139
);
140140
this.cmd(act.createLabel, this.nextIndex++, 'Priority Queue:', PQ_LABEL_X, PQ_LABEL_Y, 0);
141141

142-
this.animationManager.setAllLayers([0, this.currentLayer]);
142+
this.animationManager.setAllLayers([0, 32, this.currentLayer]);
143143
this.animationManager.startNewAnimation(this.commands);
144144
this.animationManager.skipForward();
145145
this.animationManager.clearHistory();

0 commit comments

Comments
 (0)