Пример #1
0
 private void startValue1()
 {
     _graph1 = GraphItem.createTestGraph1();
     dataGridView1.DataSource = Matrix.createIncidenceMatrix(_graph1);
     v_count.Text             = _graph1.VertexCount.ToString();
     e_count.Text             = _graph1.EdgeCount.ToString();
     errorLabel.Text          = "";
     richTextBox1.Text        = "";
     vizGraph1();
 }
Пример #2
0
 private void startValue2()
 {
     _graph2 = GraphItem.createTestGraph2();
     dataGridView2.DataSource = Matrix.createIncidenceMatrix(_graph2);
     textBox2.Text            = _graph2.VertexCount.ToString();
     textBox1.Text            = _graph2.EdgeCount.ToString();
     errorLabel.Text          = "";
     richTextBox1.Text        = "";
     vizGraph2();
 }
Пример #3
0
 private void startValue()
 {
     _graph = GraphItem.createTestGraph();
     dataGridView1.DataSource = Matrix.createIncidenceMatrix(_graph);
     v_count.Text             = _graph.VertexCount.ToString();
     e_count.Text             = _graph.EdgeCount.ToString();
     dataGridView2.DataSource = null;
     pictureBox2.Image        = null;
     errorLabel.Text          = "";
     vizGraph();
 }