Skip to content

Commit ee384ff

Browse files
authored
Added a comment
Displays Vertex from Source
1 parent 4f7a82e commit ee384ff

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Dijkstra.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ int minDistance(int dist[], Boolean que[]) {
2424
return index;
2525
}
2626

27-
void printSolution(int dist[], int n) {
27+
void printSolution(int dist[], int n) // It displays Vertex Distance from Source
28+
{
2829
System.out.println("Vertex Distance from Source");
2930

3031
for (int i = 0; i < V; i++) {

0 commit comments

Comments
 (0)