Skip to content

Commit 0cca028

Browse files
committed
DFS_recursive
Not bad for a couple of days of covid brain...
1 parent 3e4fb22 commit 0cca028

File tree

14 files changed

+813
-8
lines changed

14 files changed

+813
-8
lines changed

src/algorithms/controllers/DFS.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -380,6 +380,7 @@ displayedStack, explored, visited, n, parent]
380380
//highlight the edge connecting the neighbor
381381
vis.graph.removeEdgeColor(c_n,c_m);
382382
vis.graph.colorEdge(c_n, c_m, 2);
383+
vis.graph.colorEdge(c_n, c_m, colors.N_M_E);
383384

384385
// add var m; need to color elements again
385386
vis.array.assignVariable('m', 2, c_m + 1);

0 commit comments

Comments
 (0)