We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8ffe287 commit 6bfc96cCopy full SHA for 6bfc96c
src/main/java/com/thealgorithms/graph/DijkstraAlgorithm.java
@@ -8,8 +8,8 @@
8
* Finds the shortest paths from a source node to all other nodes in a graph using Dijkstra's algorithm.
9
*
10
* @param adjList The adjacency list representation of the graph where each edge has a weight.
11
- * @param n The number of nodes in the graph.
12
- * @param source The starting node for finding the shortest path.
+ * @param n The number of nodes in the graph.
+ * @param source The starting node for finding the shortest path.
13
* @return An array where the value at each index represents the shortest distance from the source to that node.
14
*/
15
public class DijkstraAlgorithm {
@@ -66,4 +66,4 @@ public static void main(String[] args) {
66
System.out.println("To node " + i + ": " + distances[i]);
67
}
68
69
-}
+}
0 commit comments