Example #1
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);
        }
Example #2
0
 private void buttonCreate_Click(object sender, EventArgs e)
 {
     Control.VertexCount = Convert.ToInt32(numericVertices.Value);
     GraphGrid.CreateMatrix(dataGridGraph);
 }