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++) {