private void button1_Click(object sender, EventArgs e) { richTextBox1.Clear(); if (Awal.Text == Akhir.Text || Awal.Text == "" || Awal.Text == "NONE") { } else if (Akhir.Text == "NONE") { if (BFSrb.Checked) { a.friendRecommendation(Awal.Text, "BFS", richTextBox1); } else if (DFSrb.Checked) { a.dfsrecommend(Awal.Text, richTextBox1); } } else { if (BFSrb.Checked) { a.friendExplore(Awal.Text, Akhir.Text, "BFS", richTextBox1); } else if (DFSrb.Checked) { a.friendExplore(Awal.Text, Akhir.Text, "DFS", richTextBox1); } } }