Ejemplo n.º 1
0
        private static void Main(string[] args)
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            Driver program = new Driver();

            //Directed edge map:
            /*int[][] map =new int[10][] {
                          new int[3]{1, 2, 3}, new int[1]{2}, new int[2]{3, 4}, new int[3]{4, 5, 6}, new int[2]{6, 7},
                          new int[1]{7}, new int[2]{8, 9}, new int[3]{8, 9, 10}, new int[1]{10}, new int[1]{10}
                       };
            List<DirectedNode> nodes = createRandomNodeList2(11);
            for(int i =0; i < nodes.Count-1; i++)
             {
                 nodes[i].adjnodes = map[i];
             }
             program.BFS(nodes, 11);*/

            // List<node> nodes = createRandomNodeList(11);
            // program.bruteFindFastest(nodes, nodes[0]);

            Form1 form = new Form1();
            Application.Run(form);

            Console.ReadLine();
        }
Ejemplo n.º 2
0
 static void Main(string[] args)
 {
     Driver driver = new Driver();
     driver.run();
 }