コード例 #1
0
 private void button2_Click_1(object sender, EventArgs e)
 {
     //string x = (comboBox1.SelectedItem).ToString();
     foreach (var item in grafGlobal.getGraph().Keys)
     {
         graph.FindNode(item).Attr.FillColor = Microsoft.Msagl.Drawing.Color.White;
     }
     if (radioButton1.Checked)
     {
         Dobfs();
     }
     else if (radioButton2.Checked)
     {
         string        x   = comboBox1.SelectedItem.ToString();
         string        y   = comboBox2.SelectedItem.ToString();
         List <string> ret = dodfs(x, y);
         richTextBox1.Text = ret[0];
         richTextBox2.Text = "Nama akun: " + x + " dan " + y + "\n" + ret[1];
     }
     else
     {
     }
     gambar();
 }
コード例 #2
0
ファイル: BFS.cs プロジェクト: zaidannaufal/Tubes_STIMA_2
 public void copyGraf(Graph g1)
 {
     this.graphDict = g1.getGraph();
 }
コード例 #3
0
 public void copyGraph(Graph global)
 {
     this.graphDict = global.getGraph();
 }