diff --git a/Task02/SequentialAlgoKruskal.cs b/Task02/SequentialAlgoKruskal.cs index 4ab4200..a371dbc 100644 --- a/Task02/SequentialAlgoKruskal.cs +++ b/Task02/SequentialAlgoKruskal.cs @@ -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++)