private void button7_Click(object sender, EventArgs e) { Console.WriteLine("FILLOJ EULERI"); GrafAlgoritmet ga = new GrafAlgoritmet(new Grafi(grafi.G)); List <int> Qarku = ga.GrafiEulerit(); if (Qarku != null) { if (Qarku[0] == Qarku[Qarku.Count - 1]) { textBox1.Text = "Graf i Eulerit. Qarku: "; } else { textBox1.Text = "Semi-Graf i Eulerit. Rruga: "; } textBox1.Text += listToString(Qarku); } else { textBox1.Text = "Nuk eshte Graf i Eulerit"; } }
private void button5_Click(object sender, EventArgs e) { Console.WriteLine("FILLOJ BFS"); GrafAlgoritmet ga = new GrafAlgoritmet(grafi); DrawNewGraph(ga.BFS(0)); }
private void button10_Click(object sender, EventArgs e) { GrafAlgoritmet ga = new GrafAlgoritmet(grafi); ga.BackTrackHamiltonian(); }
private void button9_Click(object sender, EventArgs e) { GrafAlgoritmet ga = new GrafAlgoritmet(grafi); ga.NaiveHamiltonian(); }