From ccfcfe6f039ce3f6e289d368fbdbf67e227c168c Mon Sep 17 00:00:00 2001 From: Joshua Morris Date: Sat, 27 Nov 2021 01:46:14 -0600 Subject: [PATCH] fix(graph): minor typo in bfs code documentation "bfs*" inline documentation should read "Breadth-first search" Fixes #110 --- src/data-structures/graphs/graph.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/data-structures/graphs/graph.js b/src/data-structures/graphs/graph.js index 02b8d70..5342b6d 100644 --- a/src/data-structures/graphs/graph.js +++ b/src/data-structures/graphs/graph.js @@ -134,7 +134,7 @@ class Graph { } /** - * Depth-first search + * Breadth-first search * Use a queue to visit nodes (FIFO) * @param {Node} first node to start the dfs */