public bool TryGetValue(bool[,] key, out Type?value) { return(dictionary.TryGetValue( Graph_Functions.Transform_Bool_Matrix_To_Int_Array( Graph_Functions.Transform_From_Any_Isomorphism_To_Single_Same_Isomorphism(key)), out value)); }
public void Add(bool[,] key, Type value) { dictionary.Add( Graph_Functions.Transform_Bool_Matrix_To_Int_Array( Graph_Functions.Transform_From_Any_Isomorphism_To_Single_Same_Isomorphism(key)) , value); }
public Type this[bool[,] key] { get { return(dictionary[ Graph_Functions.Transform_Bool_Matrix_To_Int_Array( Graph_Functions.Transform_From_Any_Isomorphism_To_Single_Same_Isomorphism(key))]); } set { dictionary[ Graph_Functions.Transform_Bool_Matrix_To_Int_Array( Graph_Functions.Transform_From_Any_Isomorphism_To_Single_Same_Isomorphism(key))] = value; } }
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_4() { Random r = new Random(); int n1 = 100; bool[,] Z1 = Class2.Create_Random_Adjancy_Matrix(n1, r); 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 = Compare_Matrices(b1, b2); Console.WriteLine("Test_4 Rasult:" + c1); }
public bool Remove(bool[,] key) { return(dictionary.Remove(Graph_Functions.Transform_Bool_Matrix_To_Int_Array( Graph_Functions.Transform_From_Any_Isomorphism_To_Single_Same_Isomorphism(key)))); }