Пример #1
0
        private void LoadButton_Click(object sender, EventArgs e)
        {
            G = GraphReader.read(Controls.Find("path", true)[0].Text);
            int n = G.GetVertices().Count();

            for (int i = 1; i <= n; i++)
            {
                for (int j = 1; j <= n; j++)
                {
                    Controls.Find(i + "," + j, true)[0].Text = G.GetArrowWeight(i, j) + "";
                }
            }

            loaded = true;
        }