private void buttonToCount_Click(object sender, EventArgs e) { Graph graph = new Graph(); GraphGrid.FixGraph(dataGridGraph); GraphGrid.WriteMatrix(graph, dataGridGraph); Control.Progress = progressBar1; textBox1.Text = Convert.ToString(Control.GetOstovCount(graph)); progressBar1.Value = 0; }
private void buttonCreateSkeleton_Click(object sender, EventArgs e) { Graph graph = new Graph(); GraphGrid.CreateMatrix(dataGridSkeleton); GraphGrid.FixGraph(dataGridGraph); GraphGrid.WriteMatrix(graph, dataGridGraph); Graph ostov = KruskalAlgorithm.Go(graph, dataGridSkeleton); GraphGrid.WriteTable(ostov, dataGridSkeleton); }