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 static void Test_6() { Random r = new Random(); bool[,] z = Class2.Create_Random_Adjancy_Matrix(100, r); int[] b1 = Graph_Functions.Transform_Bool_Matrix_To_Int_Array(z); bool[,] v1 = Graph_Functions.Transform_Int_Array_To_Bool_Matrix(b1); Console.WriteLine("Test_6 Result:" + Graph_Functions.Are_Identical_Matrixes(z, v1)); }
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 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)))); }