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(); }
public void copyGraf(Graph g1) { this.graphDict = g1.getGraph(); }
public void copyGraph(Graph global) { this.graphDict = global.getGraph(); }