From c6b46676b4424eb006282ca0cf94741dcf5c4a2a Mon Sep 17 00:00:00 2001 From: Kuzivanov Sergey <43182277+SergeyKuz1001@users.noreply.github.com> Date: Sun, 8 Dec 2019 12:05:54 +0300 Subject: [PATCH] Update SequentialAlgoFloyd.cs --- Task02/SequentialAlgoFloyd.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Task02/SequentialAlgoFloyd.cs b/Task02/SequentialAlgoFloyd.cs index 34087ce..2586ae1 100644 --- a/Task02/SequentialAlgoFloyd.cs +++ b/Task02/SequentialAlgoFloyd.cs @@ -4,11 +4,11 @@ namespace Task02 { public class SequentialAlgoFloyd { - public static int[,] Execute() + public static int[,] Execute(Graph graph) { - int n = GeneralResources.n; + int n = graph.graphAmountVertexes; int[,] dist = new int[n, n]; - Array.Copy(GeneralResources.graphMatrix, dist, n * n); + Array.Copy(graph.graphMatrix, dist, n * n); for (int k = 0; k < n; k++) {