Skip to content

Commit 438e8dd

Browse files
authoredNov 30, 2021
Merge pull request #111 from onethirtyfive/fix-graph-bfs-documentation
fix(graph): minor typo in bfs code documentation
2 parents 02d9f48 + ccfcfe6 commit 438e8dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/data-structures/graphs/graph.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ class Graph {
134134
}
135135

136136
/**
137-
* Depth-first search
137+
* Breadth-first search
138138
* Use a queue to visit nodes (FIFO)
139139
* @param {Node} first node to start the dfs
140140
*/

0 commit comments

Comments
 (0)