Skip to content

Commit 6bfc96c

Browse files
committed
Updated according to checks
1 parent 8ffe287 commit 6bfc96c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main/java/com/thealgorithms/graph/DijkstraAlgorithm.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
* Finds the shortest paths from a source node to all other nodes in a graph using Dijkstra's algorithm.
99
*
1010
* @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.
11+
* @param n The number of nodes in the graph.
12+
* @param source The starting node for finding the shortest path.
1313
* @return An array where the value at each index represents the shortest distance from the source to that node.
1414
*/
1515
public class DijkstraAlgorithm {
@@ -66,4 +66,4 @@ public static void main(String[] args) {
6666
System.out.println("To node " + i + ": " + distances[i]);
6767
}
6868
}
69-
}
69+
}

0 commit comments

Comments
 (0)