CheckIfReachable() public method

public CheckIfReachable ( ) : void
return void
Exemplo n.º 1
0
        public static void Main()
        {
            Console.WriteLine("Building Graph with 800 vertices...");
            Graph MyGraph = new Graph(800); // graph with 800 nodes

            MyGraph.BuildGraph();

            Console.WriteLine("Checking if all vertices are reachable...");
            MyGraph.CheckIfReachable();

            //Console.WriteLine("Printing the Graph...");
            //MyGraph.PrintGraph();

            Console.WriteLine("Deleting a random vertex...");
            MyGraph.DeleteVertex();

            //MyGraph.PrintGraph();

            Console.WriteLine("Done");
            Environment.ExitCode = (0);
            Console.WriteLine("Test Passed");
        }
Exemplo n.º 2
0
        public static int Main()
        {
            TestLibrary.Logging.WriteLine("Building Graph with 800 vertices...");
            Graph MyGraph = new Graph(800);  // graph with 800 nodes

            MyGraph.BuildGraph();

            TestLibrary.Logging.WriteLine("Checking if all vertices are reachable...");
            MyGraph.CheckIfReachable();

            //TestLibrary.Logging.WriteLine("Printing the Graph...");
            //MyGraph.PrintGraph();

            TestLibrary.Logging.WriteLine("Deleting a random vertex...");
            MyGraph.DeleteVertex();

            //MyGraph.PrintGraph();

            TestLibrary.Logging.WriteLine("Done");
            TestLibrary.Logging.WriteLine("Test Passed");
            return(100);
        }
Exemplo n.º 3
0
  public static void Main()
  {
	Console.WriteLine("Building Graph with 800 vertices...");
	Graph MyGraph = new Graph(800);  // graph with 800 nodes
	MyGraph.BuildGraph();  

	Console.WriteLine("Checking if all vertices are reachable...");  
	MyGraph.CheckIfReachable();

	//Console.WriteLine("Printing the Graph...");
	//MyGraph.PrintGraph();

	Console.WriteLine("Deleting a random vertex...");
	MyGraph.DeleteVertex();

	//MyGraph.PrintGraph();
		
	Console.WriteLine("Done");
	Environment.ExitCode = (0);
	Console.WriteLine("Test Passed");
  }
Exemplo n.º 4
0
        public static int Main()
        {
            TestLibrary.Logging.WriteLine("Building Graph with 800 vertices...");
            Graph MyGraph = new Graph(800);  // graph with 800 nodes
            MyGraph.BuildGraph();

            TestLibrary.Logging.WriteLine("Checking if all vertices are reachable...");
            MyGraph.CheckIfReachable();

            //TestLibrary.Logging.WriteLine("Printing the Graph...");
            //MyGraph.PrintGraph();

            TestLibrary.Logging.WriteLine("Deleting a random vertex...");
            MyGraph.DeleteVertex();

            //MyGraph.PrintGraph();

            TestLibrary.Logging.WriteLine("Done");
            TestLibrary.Logging.WriteLine("Test Passed");
            return 100;
        }