File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/main/java/com/thealgorithms/graph Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 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 */
1515public 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+ }
You can’t perform that action at this time.
0 commit comments