diff --git a/DataStructures/Graphs/FloydWarshall.java b/DataStructures/Graphs/FloydWarshall.java index 017d0cd4a..8a4ae5d96 100644 --- a/DataStructures/Graphs/FloydWarshall.java +++ b/DataStructures/Graphs/FloydWarshall.java @@ -14,7 +14,7 @@ public class FloydWarshall { [numberofvertices + 1]; // stores the value of distance from all the possible path form the source // vertex to destination vertex - Arrays.fill(DistanceMatrix, 0); + // The matrix is initialized with 0's by default this.numberofvertices = numberofvertices; }