From cfc194a2b5c10013199fdd91b836d18d2a53ee39 Mon Sep 17 00:00:00 2001 From: Kuzivanov Sergey <43182277+SergeyKuz1001@users.noreply.github.com> Date: Sun, 8 Dec 2019 12:04:45 +0300 Subject: [PATCH] Update ParallelAlgoFloyd.cs --- Task02/ParallelAlgoFloyd.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Task02/ParallelAlgoFloyd.cs b/Task02/ParallelAlgoFloyd.cs index 0b40924..55d9724 100644 --- a/Task02/ParallelAlgoFloyd.cs +++ b/Task02/ParallelAlgoFloyd.cs @@ -19,12 +19,12 @@ static void parallelProc(int n, int k, int i) } } - public static int[,] Execute() + public static int[,] Execute(Graph graph) { - int n = GeneralResources.n; + int n = graph.graphAmountVertexes; dist = new int[n, n]; Task[] tasks = new Task[n - 1]; - Array.Copy(GeneralResources.graphMatrix, dist, n * n); + Array.Copy(graph.graphMatrix, dist, n * n); for (int k = 0; k < n; k++) {