Exemple #1
0
        private void AddToIndex(Triple t, TripleTrie index)
        {
            TrieNode <INode, List <Triple> > node = index.MoveToNode(t);

            if (node.Value == null)
            {
                node.Value = new List <Triple>();
            }
            node.Value.Add(t);
        }
Exemple #2
0
        private void RemoveFromIndex(Triple t, TripleTrie index)
        {
            TrieNode <INode, List <Triple> > node = index.Find(t);

            if (node == null)
            {
                return;
            }
            if (node.Value == null)
            {
                return;
            }
            node.Value.Remove(t);
        }