コード例 #1
0
        partial void test_math_directedEdgeToolStripMenuItem_Click(object sender, EventArgs e)
        {
            string log = "";

            DirectedEdge edge = new DirectedEdge();

            log += "\nEdge: " + edge.ToString();

            edge.Weight = 0.000234;
            log        += "\n\nEdge with weight: " + edge.ToString();

            Node a = new Node(0);
            Node b = new Node(1);

            edge.Configure(a, b);
            log += "\n\nEdge with weight and nodes: " + edge.ToString();

            edge.Redirect();
            log += "\n\nEdge redirected: " + edge.ToString();

            richTextBox.Text = log;
        }