Data Structures and Algorithms with Object-Oriented Design Patterns in C#
next up previous contents index

Fields

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 gif. It is used to contain the subtrees of the given tree.


next up previous contents index

Bruno Copyright © 2001 by Bruno R. Preiss, P.Eng. All rights reserved.