public static void Test_8() { Random r = new Random(); bool[,] Z1 = Class2.F1(8, 20); bool[,] a1; bool[,] a2; bool[,] b1; bool[,] b2; bool c1; a1 = Class2.Permute(Z1, r); a2 = Class2.Permute(Z1, r); b1 = Graph_Functions.Transform_From_Any_Isomorphism_To_Single_Same_Isomorphism(a1); b2 = Graph_Functions.Transform_From_Any_Isomorphism_To_Single_Same_Isomorphism(a2); c1 = Graph_Functions.Are_Identical_Matrixes(b1, b2); Console.WriteLine("Test_8 Rasult:" + c1); }
public static void Test_7() { Random r = new Random(); Stopwatch t1 = new Stopwatch(); bool[,] F_1_Adjancy_Matrix; F_1_Adjancy_Matrix = Class2.F1(5, 50); bool[,] F_2_Adjancy_Matrix = Class2.Permute(F_1_Adjancy_Matrix, r); t1.Start(); bool is_isomorphic = Graph_Functions.Graph_Isomorphism( Graph_Functions.To_Adjency_Lists_From_Adjency_Matrix(F_1_Adjancy_Matrix), Graph_Functions.To_Adjency_Lists_From_Adjency_Matrix(F_2_Adjancy_Matrix)); long time = t1.ElapsedMilliseconds; Console.WriteLine( "\n\nTest_7" + "\ntime in miliseconds:" + time.ToString().PadLeft(10)); Console.WriteLine("/// " + is_isomorphic); }
public static void Test_1_isomorphic_samples() { Random r = new Random(); Stopwatch t1 = new Stopwatch(); bool[,] F_1_Adjancy_Matrix; F_1_Adjancy_Matrix = Class2.F1(10, 200); bool[,] F_2_Adjancy_Matrix = Class2.Permute(F_1_Adjancy_Matrix, r); t1.Start(); bool is_isomorphic = Graph_Functions.Graph_Isomorphism_V2( F_1_Adjancy_Matrix, F_2_Adjancy_Matrix); long time = t1.ElapsedMilliseconds; Console.WriteLine( "\n\nisomorphic samples" + "\nnumber of nodes:" + F_1_Adjancy_Matrix.GetLength(0).ToString().PadLeft(10) + "\ntime in miliseconds:" + time.ToString().PadLeft(10)); Console.WriteLine("is isomorpfic: " + is_isomorphic); }