Esempio n. 1
0
 public ItemsetNode(Itemset <T> itemset, ItemsetNode <T> parent, SparseIdList sparseIdList, int position)
 {
     Itemset      = itemset;
     Parent       = parent;
     SparseIdList = sparseIdList;
     Position     = position;
 }
Esempio n. 2
0
        /// <summary>
        /// add a node to the Itemset Tree and you neet provide the father node of this insert node
        /// and the itemset of this node and its SIL and the position of this insert node in its father node's
        /// children node
        /// </summary>
        /// <param name="parent"></param>
        /// <param name="itemset"></param>
        /// <param name="sparseIdList"></param>
        /// <param name="position"></param>
        /// <returns></returns>
        public ItemsetNode <T> AddChild(ItemsetNode <T> parent, Itemset <T> itemset, SparseIdList sparseIdList,
                                        int position)
        {
            var newNode = new ItemsetNode <T>(itemset, parent, sparseIdList, position);

            parent.GetChildren.Add(newNode);
            return(newNode);
        }