예제 #1
0
        private void m_DFSButton_Click(object sender, EventArgs e)
        {
            //Clear graph
            GenerateGraph();
            List <int> path = m_graph.CalculateDFS(m_startPosX + 64 * m_startPosY, m_endPosX + 64 * m_endPosY);

            PaintPath(path);
            m_panel.Refresh();
        }