Exemple #1
0
        public Map <TKey, TValue> DeepClone()
        {
            var tmp  = new RBTree <Node>();
            var list = array.GetTree();

            foreach (var e in list)
            {
                tmp.Insert(e);
            }
            return(new Map <TKey, TValue>()
            {
                array = tmp
            });
        }
Exemple #2
0
 private string VertexListTest()
 {
     return(tree.GetTree().Count == count ? "passed" : "failer");
 }