You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Graphs/BreadthFirstShortestPath.js
+5-2Lines changed: 5 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,8 @@
1
1
/*
2
-
Breadth-first approach can be applied to determine the shortest path between two nodes in an unweighted graph. It searches the target node among all neighbors of the starting node. Then the process is repeated on the level of the neighbors of the neighbors and so on.
2
+
Breadth-first approach can be applied to determine the shortest path between two nodes
3
+
in an equi-weighted graph. It searches the target node among all neighbors of the
4
+
starting node, then the process is repeated on the level of the neighbors of the
5
+
neighbors and so on.
3
6
(See also: https://en.wikipedia.org/wiki/Breadth-first_search )
4
7
(see also: https://www.koderdojo.com/blog/breadth-first-search-and-shortest-path-in-csharp-and-net-core )
0 commit comments