Exemplo n.º 1
0
        /// <summary>
        /// 3. Написать функцию обхода графа в ширину.
        /// </summary>
        static void Task3()
        {
            // try-catch section
            try
            {
                string filename = "./matrix.txt";

                int lineCount = TotalLines(filename);

                Graphs graph = new Graphs(lineCount, filename);

                TNode <int> stack = new TNode <int>(lineCount);
            }
            catch (InvalidOperationException ex)
            {
                SupportMethods.Pause(ex.Message);
            }

            SupportMethods.Pause();
        }