public static void Log(BinNode <T> rootNode, bool isRedBlackTree, bool showParent) { List <BTreeLogNode <T> > logNodeList = new List <BTreeLogNode <T> >(); GetLogNode(rootNode, null, false, logNodeList, isRedBlackTree); LogBinTree <T> .Log(logNodeList.ToArray(), showParent); }
public static void Log(List <int> list) { HeapLogNode <int>[] arr = new HeapLogNode <int> [list.Count]; for (int i = 0; i < list.Count; ++i) { int value = list[i]; HeapLogNode <int> heapLogNode = new HeapLogNode <int>(value, i); arr[i] = heapLogNode; } LogBinTree <int> .Log(arr); }