Ejemplo n.º 1
0
        public NotReallyBinaryTree <string> GetDefaultDummyTree()
        {
            NotReallyBinaryTree <string> tree =
                new NotReallyBinaryTree <string>("A",
                                                 new TreeNode <string>("B",
                                                                       new TreeNode <string>("D",
                                                                                             new TreeNode <string>("F"))),
                                                 new TreeNode <string>("C",
                                                                       new TreeNode <string>("E",
                                                                                             new TreeNode <string>("G")))
                                                 );

            return(tree);
        }
Ejemplo n.º 2
0
 public NotReallyBinaryTreeManager()
 {
     treeCache = GetDefaultDummyTree();
 }
Ejemplo n.º 3
0
 public NotReallyBinaryTreeManager(NotReallyBinaryTree <string> tree)
 {
     treeCache = tree;
 }