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); }
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); }