Skip to content

Commit

Permalink
Update SequentialAlgoKruskal.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
SergeyKuz1001 authored Dec 8, 2019
1 parent c6b4667 commit b5fc644
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Task02/SequentialAlgoKruskal.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@ static bool unionDsu(int x, int y)
return true;
}

public static int Execute()
public static int Execute(Graph graph)
{
int ans = 0;
(int, int, int)[] edges = GeneralResources.graphListEdges;
(int, int, int)[] edges = graph.graphListEdges;
Array.Sort(edges);

dsu = new int[GeneralResources.n];
dsu = new int[graph.graphAmountVertexes];
Array.Fill(dsu, -1);

for (int i = 0; i < edges.Length; i++)
Expand Down

0 comments on commit b5fc644

Please sign in to comment.