N叉树的每一节点度数都相同,为N
using System;
using System.Collections;
namespace DataStructure
{
/// <summary>
/// NaryTree 的摘要说明。-----N叉树
/// </summary>
public class NaryTree:Tree
{
// member variables
protected object key;
protected uint degree;
protected ArrayList treeList=new ArrayList();
//protected uint height=0;//暂时默认为0
//create an empty tree whose attribute of degree is _degree
public NaryTree(uint _degree)
{
//
// TODO: 在此处添加构造函数逻辑
//
this.key=null;
this.degree=_degree;