Tup.Mahout4Net.Fpm.PfpGrowth.FPGrowth.FPTree.AddHeaderNext C# (CSharp) Method

AddHeaderNext() public method

public AddHeaderNext ( int attributeValue, int nodeId ) : void
attributeValue int
nodeId int
return void
        public void AddHeaderNext(int attributeValue, int nodeId)
        {
            int index = GetHeaderIndex(attributeValue);
            if (headerTableProperties[index][HT_NEXT] == -1)
            {
                headerTableProperties[index][HT_NEXT] = nodeId;
                headerTableProperties[index][HT_LAST] = nodeId;
            }
            else
            {
                SetNext(headerTableProperties[index][HT_LAST], nodeId);
                headerTableProperties[index][HT_LAST] = nodeId;
            }
        }