Ejemplo n.º 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);
            }
        }
Ejemplo n.º 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);
            }
        }