예제 #1
0
        public EdgeEliminationForm(PlaneTSP tsp, PaintManagement pm)
        {
            InitializeComponent();
            MyTSP = tsp;
            MyPM  = pm;

            cPointSize = (int)numericUpDown1.Value;
        }
예제 #2
0
        private void BtnLoad_Click(object sender, EventArgs e)
        {
            MyTSP = new PlaneTSP(FilePath, true);

            lblNumNodes.Text = MyTSP.Graph.NumberNodes.ToString();
            lblNumEdges.Text = MyTSP.Graph.NumberEdges.ToString();

            grpBoxGraph.Enabled          = true;
            grpBoxModel.Enabled          = true;
            grpBoxConvexHulls.Enabled    = true;
            grpBoxSpanningTree.Enabled   = true;
            grpBoxExpandSpanTree.Enabled = true;
            grpBoxTour.Enabled           = true;
        }