Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
376 B
0
Indexable
Never
private void button4_Click(object sender, EventArgs e)
        {
            List<string> visitedBFS = new List<string>();
            mygraph.BreadthFirstTraverse(textBox4.Text, ref visitedBFS);

            foreach(string n in visitedBFS)
            {
                textBox4.Text = n;
            }
            //foreach to display visited to text box
        }