示例#1
0
        private void onMinDomSetClick(object sender, EventArgs e)
        {
            if (CurrentGraphPanel == null)
            {
                return;
            }

            Graph           g         = CurrentGraphPanel.Graph;
            NumberInputForm inputForm = new NumberInputForm();

            inputForm.ShowDialog();
            if (inputForm.DialogResult == DialogResult.OK)
            {
                GraphAlgorithms.MinimumDominatingSet(g, inputForm.NumValue);
            }
        }
示例#2
0
        private void onMinDomSetClick(object sender, EventArgs e)
        {
            if (CurrentGraphPanel == null)
            {
                return;
            }

            Graph g = CurrentGraphPanel.Graph;
            NumberInputForm inputForm = new NumberInputForm();
            inputForm.ShowDialog();
            if (inputForm.DialogResult == DialogResult.OK)
            {
                GraphAlgorithms.MinimumDominatingSet(g, inputForm.NumValue);
            }
        }