From b5fc6440e627b27fbf1cc0478c9d9b66b1935888 Mon Sep 17 00:00:00 2001 From: Kuzivanov Sergey <43182277+SergeyKuz1001@users.noreply.github.com> Date: Sun, 8 Dec 2019 12:06:21 +0300 Subject: [PATCH] Update SequentialAlgoKruskal.cs --- Task02/SequentialAlgoKruskal.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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++)