mirror of
https://github.com/TheAlgorithms/Java.git
synced 2025-07-25 21:44:07 +08:00

committed by
GitHub

parent
b8c1177bc8
commit
d1e75019a7
@ -87,7 +87,7 @@ start vertex, end vertes and weights. Vertices should be labelled with a number
|
|||||||
System.out.println("Negative cycle");
|
System.out.println("Negative cycle");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (neg == 0) // Go ahead and show results of computaion
|
if (neg == 0) // Go ahead and show results of computation
|
||||||
{
|
{
|
||||||
System.out.println("Distances are: ");
|
System.out.println("Distances are: ");
|
||||||
for (i = 0; i < v; i++) System.out.println(i + " " + dist[i]);
|
for (i = 0; i < v; i++) System.out.println(i + " " + dist[i]);
|
||||||
|
Reference in New Issue
Block a user