Data Structures and Algorithms
with Object-Oriented Design Patterns in C# |
The GeneralTree class definition comprises three fields--key, degree, and list. The first, key, represents the root node of the tree. The second, an integer degree, records the degree of the root node of the tree. The third, list, is an instance of the LinkedList class defined in Chapter . It is used to contain the subtrees of the given tree.