static void step3() { Console.WriteLine("\n\nCrewmate Graph Adjency Matrix --------------------------------------------------------------------------------------------------- \n"); int[,] G_Crewmate = Step3MapImpCrew.getMatrixUsingTxt(14, "GraphCrewMate.txt"); Step3MapImpCrew.displayMatrix(G_Crewmate); int[,] distanceMatrixCrew = Step3MapImpCrew.FloydWarshall(G_Crewmate); Console.WriteLine("\n\nCrewmate Distance Matrix : Time to travel for any pair of rooms\n"); Step3MapImpCrew.displayMatrix(distanceMatrixCrew); Step3MapImpCrew.printDistText(distanceMatrixCrew, Step3MapImpCrew.rooms); Console.WriteLine("\n\nImpostor Graph Adjency Matrix --------------------------------------------------------------------------------------------------- \n"); int[,] G_Impostor = Step3MapImpCrew.getMatrixUsingTxt(15, "GraphImpostor.txt"); Step3MapImpCrew.displayMatrix(G_Impostor); int[,] distanceMatrixImpostor = Step3MapImpCrew.FloydWarshall(G_Impostor); Console.WriteLine("\n\nImpostor Distance Matrix : Time to travel for any pair of rooms\n"); Step3MapImpCrew.displayMatrix(distanceMatrixImpostor); Step3MapImpCrew.printDistText(distanceMatrixImpostor, Step3MapImpCrew.rooms); }
static void step4() { Step4Hamiltonian hamiltonian = new Step4Hamiltonian(); int[,] graph1 = Step3MapImpCrew.getMatrixUsingTxt(14, "hamiltonianGraph.txt"); Step3MapImpCrew.displayMatrix(graph1); Console.WriteLine("\n\nHamiltonian Cycles --------------------------------------------------- "); for (int source = 0; source < 14; source++) { hamiltonian.hamCycle(graph1, source); } Console.WriteLine("\n\nHamiltonian Path --------------------------------------------------- "); for (int source = 0; source < 14; source++) { hamiltonian.hamPath(graph1, source); } }