예제 #1
0
        static void Main(string[] args)
        {
            Dictionary <int, List <int> > input = GraphHelper.Parse(@".\input.txt");
            Graph graph = new Graph(input);

            graph.BFS();
            graph.PrintTree();
        }
예제 #2
0
        static void Main(string[] args)
        {
            int[,] input = GraphHelper.Parse(@".\input.txt");
            Graph graph = new Graph(input);

            graph.BFS();
            graph.PrintTree();
        }