Skip to content

Commit

Permalink
Update ParallelAlgoFloyd.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
SergeyKuz1001 authored Dec 8, 2019
1 parent 4b3b2e0 commit cfc194a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Task02/ParallelAlgoFloyd.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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++)
{
Expand Down

0 comments on commit cfc194a

Please sign in to comment.